CVS: jfor/src/org/jfor/jfor/main CmdLineConverter.java,1.8,1.9
Phil Chu <[email protected]> Fri, 02 Jan 2004 16:42:02 -0800
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/src/org/jfor/jfor/main
In directory sc8-pr-cvs1:/tmp/cvs-serv32368
Modified Files:
CmdLineConverter.java
Log Message:
Convert input namestring to FileReader before passing to InputSource(). Fixes problems with absolute pathnames in Windows, and is a bit more symmetric with output file handling, anyway.
Index: CmdLineConverter.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/main/CmdLineConverter.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** CmdLineConverter.java 24 Sep 2002 10:12:11 -0000 1.8
--- CmdLineConverter.java 3 Jan 2004 00:42:00 -0000 1.9
***************
*** 67,70 ****
--- 67,73 ----
// $Id$
// $Log$
+ // Revision 1.9 2004/01/03 00:42:00 philipchu
+ // Convert input namestring to FileReader before passing to InputSource(). Fixes problems with absolute pathnames in Windows, and is a bit more symmetric with output file handling, anyway.
+ //
// Revision 1.8 2002/09/24 10:12:11 bdelacretaz
// V0.7.2dev-e - uses Apache logkit for more precise and configurable logging
***************
*** 121,134 ****
final String rtfOutput = args[1];
! JForLogConfig.configure();
m_logger.info("Creating input and output objects...");
! final InputSource input = new InputSource(xslInput);
final Writer output = new BufferedWriter(new FileWriter(rtfOutput));
// Used by relative image path.
! setUserDir (new File (xslInput).getCanonicalFile().getParent ());
!
m_logger.info("Converting XSL:FO file '" + xslInput + "' to RTF output '" + rtfOutput + "'...");
new Converter(input,output,Converter.createConverterOption ());
m_logger.info("Done writing RTF output '" + rtfOutput + "'.");
// Used by relative image path.
--- 124,138 ----
final String rtfOutput = args[1];
! JForLogConfig.configure();
m_logger.info("Creating input and output objects...");
!
! final InputSource input = new InputSource(new FileReader(xslInput));
final Writer output = new BufferedWriter(new FileWriter(rtfOutput));
// Used by relative image path.
! setUserDir (new File (xslInput).getCanonicalFile().getParent ());
m_logger.info("Converting XSL:FO file '" + xslInput + "' to RTF output '" + rtfOutput + "'...");
new Converter(input,output,Converter.createConverterOption ());
+
m_logger.info("Done writing RTF output '" + rtfOutput + "'.");
// Used by relative image path.
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click