Revision 966 tmp/org.txm.tigersearch.rcp/groovy/org/txm/importer/tigersearch/TSImporter.groovy

TSImporter.groovy (revision 966)
25 25
		File binDir = module.getBinaryDirectory();
26 26
		
27 27
		//prepare metadata if any
28
		File allmetadatafile = new File(inputDirectory, "metadata.csv");
28
		File allmetadatafile = Metadatas.findMetadataFile(inputDirectory);
29 29
		println allmetadatafile
30 30
		if (allmetadatafile.exists()) {
31
			File copy = new File(binDir, "metadata.csv")
31
			File copy = new File(binDir, allmetadatasfile.getName())
32 32
			if (!FileCopy.copy(allmetadatafile, copy)) {
33 33
				println "Error: could not create a copy of the metadata file "+allmetadatafile.getAbsoluteFile();
34 34
				return;

Also available in: Unified diff