Revision 966 tmp/org.txm.tigersearch.rcp/groovy/org/txm/importer/srcmf/srcmfLoader.groovy

srcmfLoader.groovy (revision 966)
103 103
// copy txm files
104 104
List<File> srcfiles = txmSrcDir.listFiles();
105 105
for (File f : srcfiles) {// check XML format, and copy file into binDir
106
	if (f.getName().equals("import.xml") || f.getName().equals("metadata.csv") || f.getName().endsWith(".properties"))
106
	if (f.getName().equals("import.xml") || f.getName().matches("metadata\.....?") || f.getName().endsWith(".properties"))
107 107
		continue;
108 108
	if (ValidateXml.test(f)) {
109 109
		FileCopy.copy(f, new File(txmDir, f.getName()));

Also available in: Unified diff