Revision 1688 tmp/org.txm.core/src/java/org/txm/scripts/importer/XMLTXM2WTC.groovy

XMLTXM2WTC.groovy (revision 1688)
384 384
			}
385 385
			//output.write("</txmcorpus>\n");
386 386
			output.close();
387
			parser.close();
387
			if (parser != null) parser.close();
388
		if (inputData != null) inputData.close();
388 389
		} catch (Exception ex) {
389 390
			println "Error while parsing $url : "+ex
390 391
			ex.printStackTrace();
392
			if (parser != null) parser.close();
393
			if (inputData != null) inputData.close();
391 394
			return false;
392 395
		}
393 396
		return true;

Also available in: Unified diff