Revision 966 tmp/org.txm.groovy.core/src/groovy/org/txm/test/InjectMetadataCSV.groovy

InjectMetadataCSV.groovy (revision 966)
4 4
def txmfilesdir = new File("C:\\Documents and Settings\\alavrent\\xml\\metadata")
5 5
def outdir = new File("C:\\Documents and Settings\\alavrent\\xml\\metadata\\meta")
6 6
outdir.mkdir()
7
def allmetadatasfile = new File("C:\\Documents and Settings\\alavrent\\xml\\metadata\\metadata.csv");
7
def allmetadatasfile = Metadatas.findMetadataFile(new File("C:\\Documents and Settings\\alavrent\\xml\\metadata"));
8 8
println "-- INJECT METADATA - from csv file: "+allmetadatasfile+" in directory: "+txmfilesdir
9 9
def metadatas = new Metadatas(allmetadatasfile, "UTF-8", ",","\"", 1)
10 10
if(metadatas != null)

Also available in: Unified diff