Revision 966 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xtz/XTZImporter.groovy

XTZImporter.groovy (revision 966)
102 102
		this.skipDoTokenizeStep = module.getParameters().getSkipTokenization()
103 103

  
104 104
		//prepare metadata if any
105
		File allmetadatafile = new File(inputDirectory, "metadata.csv");
105
		File allmetadatafile = Metadatas.findMetadataFile(inputDirectory);
106 106
		if (allmetadatafile.exists()) {
107
			File copy = new File(binDir, "metadata.csv")
107
			File copy = new File(binDir, allmetadatasfile.getName())
108 108
			if (!FileCopy.copy(allmetadatafile, copy)) {
109 109
				println "Error: could not create a copy of the metadata file "+allmetadatafile.getAbsoluteFile();
110 110
				return;

Also available in: Unified diff