Revision 966 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xmltxm/xmltxmLoader.groovy

xmltxmLoader.groovy (revision 966)
111 111
println "Copying XML-TXM files..."
112 112
List<File> srcfiles = srcDir.listFiles();
113 113
for (File f : srcfiles) {// check XML format, and copy file into binDir
114
	if (f.isHidden() || f.getName().equals("import.xml") || f.getName().equals("metadata.csv") || f.getName().endsWith(".properties"))
114
	if (f.isHidden() || f.getName().equals("import.xml") || f.getName().matches("metadata\.....?") || f.getName().endsWith(".properties"))
115 115
		continue;
116 116
	if (ValidateXml.test(f)) {
117 117
		FileCopy.copy(f, new File(txmDir, f.getName()));

Also available in: Unified diff