Revision 1688 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xtz/XTZCompilerStep.groovy

XTZCompilerStep.groovy (revision 1688)
256 256
			}
257 257

  
258 258
			output.close();
259
			parser.close();
259
			if (parser != null) parser.close();
260
		if (inputData != null) inputData.close();
260 261
		} catch (Exception ex) {
261 262
			System.out.println("Exception while parsing " + inputData+" of Text "+textname+" : "+ex);
262 263
			File errorDir = null
......
268 269
			} catch(Exception eCopy) {
269 270
				println "Error while moving "+xmlFile+" to "+errorDir+" : "+eCopy
270 271
			}
272
			if (parser != null) parser.close();
273
			if (inputData != null) inputData.close();
271 274
			return false;
272 275
		}
273 276
		return true;

Also available in: Unified diff