Revision 966 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xml/xmlLoader.groovy

xmlLoader.groovy (revision 966)
147 147
if (srcfiles != null)
148 148
	for (int i = 0 ; i < srcfiles.size() ; i++) {// check XML format, and copy file into binDir
149 149
		File f = srcfiles.get(i)
150
		if (f.getName().equals("import.xml") || f.getName().equals("metadata.csv") || f.getName().endsWith(".properties")) {
150
		if (f.getName().equals("import.xml") || f.getName().matches("metadata\.....?") || f.getName().endsWith(".properties")) {
151 151
			srcfiles.remove(i);
152 152
			i--;
153 153
			continue;
......
185 185
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }
186 186
if (allmetadatasfile.exists()) {
187 187
	println " Metadata file found: "+allmetadatasfile
188
	File copy = new File(binDir, "metadata.csv")
188
	File copy = new File(binDir, allmetadatasfile.getName())
189 189
	if (!FileCopy.copy(allmetadatasfile, copy)) {
190 190
		println "Error: could not create a copy of metadata file "+allmetadatasfile.getAbsoluteFile();
191 191
		return;

Also available in: Unified diff