Revision 1726 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xtz/XTZCompiler.groovy

XTZCompiler.groovy (revision 1726)
185 185
			String concat = name+":"+structsProf.get(name); // append the depth
186 186
			for (String attributeName : structs.get(name)) // append the attributes
187 187
				concat += "+"+attributeName.toLowerCase();
188
				
188
			
189 189
			if (structs.get(name).size() == 0) {
190 190
				concat += "+n";
191 191
			} else {
......
217 217
		println " Structures: "+sargs
218 218
		File allcqpFile = new File(cqpDirectory, "all.cqp");
219 219
		allcqpFile.delete()
220
		try {		
220
		try {
221 221
			if (!CwbEncode.concat(cqpFiles, allcqpFile)) {
222 222
				println "Fail to write the master cqp file: "+allcqpFile
223 223
				return false;
224 224
			}
225
						
225
			
226 226
			if (!cwbEn.run(outputDirectory.getAbsolutePath() + "/$corpusname",
227 227
					allcqpFile.getAbsolutePath(),
228 228
					regPath, pAttributes, sAttributes, false)) {
......
258 258
			
259 259
			// remove milestones from CWB registry and data files
260 260
			FixMilestoneDeclarations fm = new FixMilestoneDeclarations(
261
				new File(regPath), new File(outputDirectory.getAbsolutePath(), corpusname));			
261
				new File(regPath), new File(outputDirectory.getAbsolutePath(), corpusname));
262 262
			if (!fm.process()) {
263 263
				println "Fail to verify&fix milestone declarations"
264 264
				return false

Also available in: Unified diff