Revision 1688 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/doc/pager.groovy

pager.groovy (revision 1688)
476 476
			//writer.write("</html>");
477 477
			//writer.close();
478 478
			closeMultiWriter();
479
			if (parser != null) parser.close();
480
			if (inputData != null) inputData.close();
479 481
		} catch(Exception e) { 
480 482
			println "Error while processing ${infile} at "+parser.getLocation().getLineNumber()+": "+e
481 483
			org.txm.utils.logger.Log.printStackTrace(e); 
482
			pagedWriter.close(); }
484
			pagedWriter.close();
485
			if (parser != null) parser.close();
486
			if (inputData != null) inputData.close();
487
		 }
483 488
	}
484 489
}

Also available in: Unified diff