/** * Set the file which is generated from the output * @param name The output file name */ public void setFile(String name) throws IOException { this.closeOutput = true; setXmlOutput( XMLOutput.createXMLOutput(new FileOutputStream(name)) ); } }
public void run() { try { getBody().run(newContext, xmlOutput); if (closeOutput) { xmlOutput.close(); } else { xmlOutput.flush(); } } catch (Exception e) { if (log.isErrorEnabled()) log.error("error running thread tag", e); } } }
public void run() { try { getBody().run(newContext, xmlOutput); if (closeOutput) { xmlOutput.close(); } else { xmlOutput.flush(); } } catch (Exception e) { if (log.isErrorEnabled()) log.error("error running thread tag", e); } } }
/** * Set the file which is generated from the output * @param name The output file name */ public void setFile(String name) throws IOException { this.closeOutput = true; setXmlOutput( XMLOutput.createXMLOutput(new FileOutputStream(name)) ); } }
public void run() { try { getBody().run(newContext, xmlOutput); if (closeOutput) { xmlOutput.close(); } else { xmlOutput.flush(); } } catch (Exception e) { if (log.isErrorEnabled()) log.error("error running thread tag", e); } } }
/** * Set the file which is generated from the output * @param name The output file name */ public void setFile(String name) throws IOException { this.closeOutput = true; setXmlOutput( XMLOutput.createXMLOutput(new FileOutputStream(name)) ); } }
public void run() { try { getBody().run(newContext, xmlOutput); if (closeOutput) { xmlOutput.close(); } else { xmlOutput.flush(); } } catch (Exception e) { if (log.isErrorEnabled()) log.error("error running thread tag", e); } } }
/** * Set the file which is generated from the output * @param name The output file name */ public void setFile(String name) throws IOException { this.closeOutput = true; setXmlOutput( XMLOutput.createXMLOutput(new FileOutputStream(name)) ); } }