aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/apps/XTCommandLine.java
diff options
context:
space:
mode:
authorfotis <fotis@unknown>2000-06-27 22:14:35 +0000
committerfotis <fotis@unknown>2000-06-27 22:14:35 +0000
commitf11bad903dbef3d04d48b3a219fb0adb139ce953 (patch)
treee941d36bfd0fd6da736eb02c3e42ac84066d1a84 /src/org/apache/fop/apps/XTCommandLine.java
parent7724f41ad6e9e484f9a37b54b6a63fe3cb9c90ef (diff)
downloadxmlgraphics-fop-f11bad903dbef3d04d48b3a219fb0adb139ce953.tar.gz
xmlgraphics-fop-f11bad903dbef3d04d48b3a219fb0adb139ce953.zip
replaces calls of System.err.println etc. with calls to the new MessageHandler methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193441 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/apps/XTCommandLine.java')
-rw-r--r--src/org/apache/fop/apps/XTCommandLine.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/org/apache/fop/apps/XTCommandLine.java b/src/org/apache/fop/apps/XTCommandLine.java
index 71e4d4a97..c52f68816 100644
--- a/src/org/apache/fop/apps/XTCommandLine.java
+++ b/src/org/apache/fop/apps/XTCommandLine.java
@@ -54,6 +54,7 @@ package org.apache.fop.apps;
import org.apache.fop.render.pdf.PDFRenderer;
import org.apache.fop.fo.StandardElementMapping;
import org.apache.fop.svg.SVGElementMapping;
+import org.apache.fop.messaging.MessageHandler;
// James Clark
import com.jclark.xsl.sax.XSLProcessor;
@@ -92,17 +93,17 @@ public class XTCommandLine extends CommandLine {
*/
public static void main(String[] args) {
String version = Version.getVersion();
- System.err.println(version);
+ MessageHandler.errorln(version);
if (args.length != 3) {
- System.err.println("usage: java org.apache.fop.apps.XTCommandLine xml-file xsl-stylesheet pdf-file");
+ MessageHandler.errorln("usage: java org.apache.fop.apps.XTCommandLine xml-file xsl-stylesheet pdf-file");
System.exit(1);
}
Parser parser = createParser();
if (parser == null) {
- System.err.println("ERROR: Unable to create SAX parser");
+ MessageHandler.errorln("ERROR: Unable to create SAX parser");
System.exit(1);
}
@@ -122,7 +123,7 @@ public class XTCommandLine extends CommandLine {
driver.format();
driver.render();
} catch (Exception e) {
- System.err.println("FATAL ERROR: " + e.getMessage());
+ MessageHandler.errorln("FATAL ERROR: " + e.getMessage());
System.exit(1);
}
}