gmazza 2004/04/14 15:57:10 Modified: examples/embedding/java/embedding ExampleDOM2PDF.java ExampleFO2PDF.java ExampleObj2PDF.java ExampleObj2XML.java ExampleSVG2PDF.java ExampleXML2FO.java ExampleXML2PDF.java Log: Used standard Java exception-printing method "printStackTrace(PrintStream)" instead of Avalon equivalent. Revision Changes Path 1.6 +3 -5 xml-fop/examples/embedding/java/embedding/ExampleDOM2PDF.java Index: ExampleDOM2PDF.java =================================================================== RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleDOM2PDF.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ExampleDOM2PDF.java 1 Apr 2004 23:24:57 -0000 1.5 +++ ExampleDOM2PDF.java 14 Apr 2004 22:57:10 -0000 1.6 @@ -33,9 +33,6 @@ import org.w3c.dom.Node; import org.w3c.dom.Text; -//Avalon -import org.apache.avalon.framework.ExceptionUtil; - // Commons-Logging import org.apache.commons.logging.impl.SimpleLog; @@ -141,8 +138,9 @@ app.convertDOM2PDF(foDoc, pdffile); System.out.println("Success!"); + } catch (Exception e) { - System.err.println(ExceptionUtil.printStackTrace(e)); + e.printStackTrace(System.err); System.exit(-1); } } 1.6 +1 -4 xml-fop/examples/embedding/java/embedding/ExampleFO2PDF.java Index: ExampleFO2PDF.java =================================================================== RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleFO2PDF.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ExampleFO2PDF.java 1 Apr 2004 23:24:57 -0000 1.5 +++ ExampleFO2PDF.java 14 Apr 2004 22:57:10 -0000 1.6 @@ -27,9 +27,6 @@ //SAX import org.xml.sax.InputSource; -//Avalon -import org.apache.avalon.framework.ExceptionUtil; - // Commons-Logging import org.apache.commons.logging.impl.SimpleLog; @@ -113,7 +110,7 @@ System.out.println("Success!"); } catch (Exception e) { - System.err.println(ExceptionUtil.printStackTrace(e)); + e.printStackTrace(System.err); System.exit(-1); } } 1.6 +1 -4 xml-fop/examples/embedding/java/embedding/ExampleObj2PDF.java Index: ExampleObj2PDF.java =================================================================== RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleObj2PDF.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ExampleObj2PDF.java 1 Apr 2004 23:24:57 -0000 1.5 +++ ExampleObj2PDF.java 14 Apr 2004 22:57:10 -0000 1.6 @@ -32,9 +32,6 @@ import javax.xml.transform.stream.StreamSource; import javax.xml.transform.sax.SAXResult; -//Avalon -import org.apache.avalon.framework.ExceptionUtil; - // Commons-Logging import org.apache.commons.logging.impl.SimpleLog; @@ -127,7 +124,7 @@ System.out.println("Success!"); } catch (Exception e) { - System.err.println(ExceptionUtil.printStackTrace(e)); + e.printStackTrace(System.err); System.exit(-1); } } 1.4 +1 -4 xml-fop/examples/embedding/java/embedding/ExampleObj2XML.java Index: ExampleObj2XML.java =================================================================== RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleObj2XML.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ExampleObj2XML.java 27 Feb 2004 17:34:50 -0000 1.3 +++ ExampleObj2XML.java 14 Apr 2004 22:57:10 -0000 1.4 @@ -30,9 +30,6 @@ import javax.xml.transform.Result; import javax.xml.transform.stream.StreamResult; -//Avalon -import org.apache.avalon.framework.ExceptionUtil; - import embedding.model.ProjectMember; import embedding.model.ProjectTeam; @@ -118,7 +115,7 @@ System.out.println("Success!"); } catch (Exception e) { - System.err.println(ExceptionUtil.printStackTrace(e)); + e.printStackTrace(System.err); System.exit(-1); } } 1.4 +1 -4 xml-fop/examples/embedding/java/embedding/ExampleSVG2PDF.java Index: ExampleSVG2PDF.java =================================================================== RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleSVG2PDF.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ExampleSVG2PDF.java 27 Feb 2004 17:34:50 -0000 1.3 +++ ExampleSVG2PDF.java 14 Apr 2004 22:57:10 -0000 1.4 @@ -24,9 +24,6 @@ import java.io.InputStream; import java.io.OutputStream; -//Avalon -import org.apache.avalon.framework.ExceptionUtil; - //Batik import org.apache.batik.transcoder.Transcoder; import org.apache.batik.transcoder.TranscoderException; @@ -104,7 +101,7 @@ System.out.println("Success!"); } catch (Exception e) { - System.err.println(ExceptionUtil.printStackTrace(e)); + e.printStackTrace(System.err); System.exit(-1); } } 1.4 +1 -4 xml-fop/examples/embedding/java/embedding/ExampleXML2FO.java Index: ExampleXML2FO.java =================================================================== RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleXML2FO.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ExampleXML2FO.java 27 Feb 2004 17:34:50 -0000 1.3 +++ ExampleXML2FO.java 14 Apr 2004 22:57:10 -0000 1.4 @@ -32,9 +32,6 @@ import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; -//Avalon -import org.apache.avalon.framework.ExceptionUtil; - /** * This class demonstrates the conversion of an XML file to an XSL-FO file * using JAXP (XSLT). @@ -103,7 +100,7 @@ System.out.println("Success!"); } catch (Exception e) { - System.err.println(ExceptionUtil.printStackTrace(e)); + e.printStackTrace(System.err); System.exit(-1); } } 1.7 +1 -4 xml-fop/examples/embedding/java/embedding/ExampleXML2PDF.java Index: ExampleXML2PDF.java =================================================================== RCS file: /home/cvs/xml-fop/examples/embedding/java/embedding/ExampleXML2PDF.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ExampleXML2PDF.java 1 Apr 2004 23:24:57 -0000 1.6 +++ ExampleXML2PDF.java 14 Apr 2004 22:57:10 -0000 1.7 @@ -32,9 +32,6 @@ import javax.xml.transform.stream.StreamSource; import javax.xml.transform.sax.SAXResult; -//Avalon -import org.apache.avalon.framework.ExceptionUtil; - // Commons-Logging import org.apache.commons.logging.impl.SimpleLog; @@ -112,7 +109,7 @@ System.out.println("Success!"); } catch (Exception e) { - System.err.println(ExceptionUtil.printStackTrace(e)); + e.printStackTrace(System.err); System.exit(-1); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]