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

TSImporter.groovy (revision 2080)
65 65
			
66 66
			if (xmlFiles.size() > 1) {
67 67
				println "Error, the source directory contains more than one TIGER XML file ?"
68
				isSuccessful = false;
68
				isSuccessFul = false;
69 69
				return;
70 70
			}
71 71
			if (xmlFiles.size() == 0) {
72 72
				println "Error no XML file found in $sourceDirectory directory"
73
				isSuccessful = false;
73
				isSuccessFul = false;
74 74
				return;
75 75
			}
76 76
			println "No TIGER XML 'main.xml' file found. Using $xmlFiles as TIGER XML source file "
......
85 85
			
86 86
			if (xmlFiles.size() == 0) {
87 87
				println "Error no XML file found in $master file"
88
				isSuccessful = false;
88
				isSuccessFul = false;
89 89
				return;
90 90
			}
91 91
		}
......
106 106
		
107 107
		if (!ApplyXsl2.processImportSources(tsXSLFile, xmltxmSrcDir, tokenizedDir)) {
108 108
			println "Error while applying TS XSL file to $xmltxmSrcDir"
109
			isSuccessful = false;
109
			isSuccessFul = false;
110 110
			return;
111 111
		}
112 112

  
113
		File[] files = tokenizedDir.listFiles(IOUtils.FILTER_HIDDEN);
113
		File[] files = tokenizedDir.listFiles(IOUtils.HIDDENFILE_FILTER);
114 114
		if (files == null || files.length == 0) {
115 115
			println "Error while applying TS XSL file to $xmltxmSrcDir is empty"
116
			isSuccessful = false;
116
			isSuccessFul = false;
117 117
			return;
118 118
		}
119 119

  
......
121 121
		if (!doInjectMetadataStep()) return;
122 122

  
123 123
		File txmdDir = new File(module.getBinaryDirectory(),"txm");
124
		isSuccessFul = txmdDir.listFiles(IOUtils.FILTER_HIDDEN).size() > 0
124
		isSuccessFul = txmdDir.listFiles(IOUtils.HIDDENFILE_FILTER).size() > 0
125 125
	}
126 126
}

Also available in: Unified diff