Revision 1688 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xmltxmpara/compiler.groovy

compiler.groovy (revision 1688)
323 323
			}
324 324
			
325 325
			output.close();
326
			parser.close();
326
			if (parser != null) parser.close();
327
			if (inputData != null) inputData.close();
327 328
		}
328
		catch (XMLStreamException ex) {
329
		catch (Exception ex) {
329 330
			System.out.println(ex);
331
			if (parser != null) parser.close();
332
			if (inputData != null) inputData.close();
330 333
			return false;
331 334
		}
332
		catch (IOException ex) {
333
			System.out.println("IOException while parsing " + inputData);
334
			return false;
335
		}
336 335
		return true;
337 336
	}
338 337
	

Also available in: Unified diff