Both the awt renderer and the print renderer output some spurious error messages to the logger.
I've worked out a corrections for both of these minor annoyances. I'm not sure these are the ~right~ solutions, but they work. btw: There seems to be a problem (line endings?) with fop.app.PrintStarter.java - If I make a single character change in the file, diff reports that the whole thing changed ;-( The actual diff is appended below for AWTStarter, a ~description~ of the change to PrintStarter follow below that.... Index: xml- fop/src/org/apache/fop/apps/AWTStarter.java =================================================================== RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/apps/AWTStarter.java,v retrieving revision 1.9.2.4 diff -u -r1.9.2.4 AWTStarter.java --- xml- fop/src/org/apache/fop/apps/AWTStarter.java 4 Jul 2002 12:00:25 -0000 1.9.2.4 +++ xml- fop/src/org/apache/fop/apps/AWTStarter.java 18 Nov 2002 23:13:30 -0000 @@ -93,7 +93,7 @@ renderer.setProgressListener(frame); renderer.setComponent(frame); driver = new Driver(); - driver.setLogger(log); + driver.setLogger(new ConsoleLogger(ConsoleLogger.LEVEL_INFO)); if (errorDump) { driver.setErrorDump(true); } description of change to PrintStarter.java The run() method should look like this: public void run() throws FOPException { Driver driver = new Driver(); if (errorDump) { driver.setErrorDump(true); } // String version = Version.getVersion(); // removed // MessageHandler.errorln(version); // removed driver.setLogger (new ConsoleLogger(ConsoleLogger.LEVEL_INFO)) ; log.info (Version.getVersion()) ; etc. etc.
Ralph, fop.app.PrintStarter.java is one of the files that Bernard D'Havé noted as having line ending problems in Bug 14626. I am about to clean up all of the *source files* that he mentioned (thanks to perl).
Created attachment 3896 [details] patch added as attachement (now that lf's are fixed in PrintStarter.java)
Now that LF's are fixed in PrintStarter, I resubmitted patches to both sources as an attachment.
Committed, thanks.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed