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

XTZDefaultPagerStep.groovy (revision 1688)
574 574
				}
575 575
			}
576 576
			closeMultiWriter();
577
			if (parser != null) parser.close();
578
			if (inputData != null) inputData.close();
577 579
		} catch(Exception e) {
578 580
			println "** Fail to build $infile edition: $e at "+parser.getLocation()
579 581
			println "** resulting file: $outfile"
580 582
			println "** Stax stack: "+pagedWriter.getTagStack()
581 583
			e.printStackTrace();
582 584
			pagedWriter.close()
585
			if (parser != null) parser.close();
586
			if (inputData != null) inputData.close();
583 587
			return false;
584 588
		}
585 589
		return true;

Also available in: Unified diff