Revision 966 tmp/org.txm.groovy.core/src/groovy/org/txm/macroproto/XMLText2MetadataCSVMacro.groovy

XMLText2MetadataCSVMacro.groovy (revision 966)
7 7
import org.txm.rcp.swt.widget.parameters.*
8 8

  
9 9
import org.txm.importer.*
10
import org.txm.metadatas.Metadatas
10 11

  
11 12
// BEGINNING OF PARAMETERS
12 13

  
......
47 48
println "XPATH queries: $xpaths"
48 49

  
49 50
if (metadataFile == null)
50
	metadataFile = new File(srcDirectory, "metadata.csv")
51
	metadataFile = Metadatas.findMetadataFile(srcDirectory)
51 52

  
52 53
def writer = metadataFile.newWriter("UTF-8")
53 54
println "Creating file: $metadataFile"

Also available in: Unified diff