Revision 966 tmp/org.txm.core/src/java/org/txm/importer/XMLText2TXTCSV.groovy

XMLText2TXTCSV.groovy (revision 966)
1 1
package org.txm.importer
2 2

  
3
import org.txm.metadatas.Metadatas
4

  
3 5
File dir = new File("/home/mdecorde/xml/voeux/split_xml")
4 6
File outdir = new File("/home/mdecorde/xml/voeux/split_txtcsv")
5 7
println "1) xml -> txt + write metadata.csv"
6 8
outdir.deleteDir()
7 9
outdir.mkdir()
8
File metadatafile = new File(outdir, "metadata.csv")
10
File metadatafile = Metadatas.findMetadataFile(outdir)
9 11
String csvString = ""
10 12

  
11 13
def files = dir.listFiles()

Also available in: Unified diff