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

srcmfLoader.groovy (revision 2080)
92 92
txmDir.deleteDir();
93 93
txmDir.mkdirs();
94 94
// copy txm files
95
List<File> srcfiles = txmSrcDir.listFiles(IOUtils.FILTER_HIDDEN);
95
List<File> srcfiles = txmSrcDir.listFiles(IOUtils.HIDDENFILE_FILTER);
96 96
for (File f : srcfiles) {// check XML format, and copy file into binDir
97 97
	if (f.getName().equals("import.xml") || f.getName().matches("metadata\\.....?") || f.getName().endsWith(".properties"))
98 98
		continue;
......
102 102
		println "Won't process file "+f;
103 103
	}
104 104
}
105
if (txmDir.listFiles(IOUtils.FILTER_HIDDEN) == null) {
105
if (txmDir.listFiles(IOUtils.HIDDENFILE_FILTER) == null) {
106 106
	println "No txm file to process"
107 107
	return;
108 108
}
109 109

  
110
List<File> filelist = txmDir.listFiles(IOUtils.FILTER_HIDDEN);
110
List<File> filelist = txmDir.listFiles(IOUtils.HIDDENFILE_FILTER);
111 111
Collections.sort(filelist);
112 112

  
113 113
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }
......
164 164
File tigerDir = new File(binDir, "tiger");
165 165
tigerDir.mkdir();
166 166
File master = new File(tigerSrcDir, "master.xml");
167
File txmSrcFile = txmSrcDir.listFiles(IOUtils.FILTER_HIDDEN)[0]; // only one text file 
167
File txmSrcFile = txmSrcDir.listFiles(IOUtils.HIDDENFILE_FILTER)[0]; // only one text file 
168 168

  
169 169
// Run SRCMF cmd line corpus import script 
170 170
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }

Also available in: Unified diff