CVS: jfor/src/org/jfor/jfor/main CmdLineConverter.java,1.6,1.7

Bertrand Delacretaz <[email protected]> Thu, 15 Aug 2002 08:16:12 -0700
Newsgroups gmane.text.xml.jfor.cvs
Message-ID <[email protected]>
Update of /cvsroot/jfor/jfor/src/org/jfor/jfor/main
In directory usw-pr-cvs1:/tmp/cvs-serv21775/org/jfor/jfor/main

Modified Files:
	CmdLineConverter.java 
Log Message:
bug corrected, no error message was printed if parser classes were missing



Index: CmdLineConverter.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/main/CmdLineConverter.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** CmdLineConverter.java	12 Jul 2002 08:08:31 -0000	1.6
--- CmdLineConverter.java	15 Aug 2002 15:16:09 -0000	1.7
***************
*** 65,68 ****
--- 65,71 ----
  // $Id$
  // $Log$
+ // Revision 1.7  2002/08/15 15:16:09  bdelacretaz
+ // bug corrected, no error message was printed if parser classes were missing
+ //
  // Revision 1.6  2002/07/12 08:08:31  bdelacretaz
  // License changed to jfor Apache-style license
***************
*** 98,103 ****
  	throws Exception
  	{
! 		try
! 		{
  			if(args.length < 2) {
  				System.err.println("Usage: CmdLineConverter <xsl:fo input file> <rtf output file>");
--- 101,107 ----
  	throws Exception
  	{
! 		try {
! 			System.err.println(JForVersionInfo.getLongVersionInfo());
!                         
  			if(args.length < 2) {
  				System.err.println("Usage: CmdLineConverter <xsl:fo input file> <rtf output file>");
***************
*** 110,113 ****
--- 114,118 ----
  			final String rtfOutput = args[1];
  
+ 			System.err.println("Creating input and output objects...");
  			final InputSource input = new InputSource(xslInput);
  			final Writer output = new BufferedWriter(new FileWriter(rtfOutput));
***************
*** 116,120 ****
  			setUserDir (new File (xslInput).getCanonicalFile().getParent ());
  
- 			System.err.println(JForVersionInfo.getLongVersionInfo());
  			System.err.println("Converting XSL:FO file '" + xslInput + "' to RTF output '" + rtfOutput + "'...");
  			new Converter(input,output,Converter.createConverterOption ());
--- 121,124 ----
***************
*** 122,136 ****
  			// Used by relative image path.
  			setUserDir (userDir);
! 		}
! 		catch (Exception e)
! 		{
! 			//e.printStackTrace ();
  			System.out.println (e);
  		}
! 		finally
! 		{
! 			// Has to be for complete finishing after jpeg creation
! 			System.exit (0);
! 		}
  	}
  
--- 126,134 ----
  			// Used by relative image path.
  			setUserDir (userDir);
!                         
! 		} catch (Exception e) {
  			System.out.println (e);
  		}
!                 System.exit (0);
  	}
  



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390