Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli: CommandLineOptions.java InputHandler.java Main.java

2008-07-11 Thread Vincent Hennebert
Hi Jeremias,

 Author: jeremias
 Date: Thu Jul 10 12:47:12 2008
 New Revision: 675698
 
 URL: http://svn.apache.org/viewvc?rev=675698view=rev
 Log:
 Added support for piping:
 - input from stdin (-imagein not supported)
 - output to stdout
 
 Syntax: fop -xml # -xsl mystylesheet.xsl -pdf #
 (reads the XML from stdin and sends the generated PDF to stdout)

The de facto standard in the Unix world is to use ‘-’ to specify stdin
or stdout:
fop -xml - -xsl mystylesheet.xsl -pdf -

No objection if I change the code accordingly?

Thanks,
Vincent


Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli: CommandLineOptions.java InputHandler.java Main.java

2008-07-11 Thread Jeremias Maerki
Hi Vincent

Certainly not, but you'll probably have to do a few more changes to the
command-line parser to be able to use the -. You'll see. ;-)

On 11.07.2008 12:01:24 Vincent Hennebert wrote:
 Hi Jeremias,
 
  Author: jeremias
  Date: Thu Jul 10 12:47:12 2008
  New Revision: 675698
  
  URL: http://svn.apache.org/viewvc?rev=675698view=rev
  Log:
  Added support for piping:
  - input from stdin (-imagein not supported)
  - output to stdout
  
  Syntax: fop -xml # -xsl mystylesheet.xsl -pdf #
  (reads the XML from stdin and sends the generated PDF to stdout)
 
 The de facto standard in the Unix world is to use ‘-’ to specify stdin
 or stdout:
 fop -xml - -xsl mystylesheet.xsl -pdf -
 
 No objection if I change the code accordingly?
 
 Thanks,
 Vincent




Jeremias Maerki



Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli: CommandLineOptions.java InputHandler.java Main.java

2008-07-11 Thread Max Berger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vincent,

it may (or may not) make sense to move to commons-cli:

http://commons.apache.org/cli/introduction.html

which addresses this (and other problems) very well, but this would mean
a lot more work.

Max

Jeremias Maerki schrieb:
 Hi Vincent
 
 Certainly not, but you'll probably have to do a few more changes to the
 command-line parser to be able to use the -. You'll see. ;-)
 
 On 11.07.2008 12:01:24 Vincent Hennebert wrote:
 Hi Jeremias,

 Author: jeremias
 Date: Thu Jul 10 12:47:12 2008
 New Revision: 675698

 URL: http://svn.apache.org/viewvc?rev=675698view=rev
 Log:
 Added support for piping:
 - input from stdin (-imagein not supported)
 - output to stdout

 Syntax: fop -xml # -xsl mystylesheet.xsl -pdf #
 (reads the XML from stdin and sends the generated PDF to stdout)
 The de facto standard in the Unix world is to use ‘-’ to specify stdin
 or stdout:
 fop -xml - -xsl mystylesheet.xsl -pdf -

 No objection if I change the code accordingly?

 Thanks,
 Vincent
 
 
 
 
 Jeremias Maerki
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkh3RCUACgkQ+Gr+4pk71JyASACfc9j+U87JiPH36L8ApBWvn9p2
myUAnR3Ac7DXQqXPIy6xrrwEKnkkVQAh
=eiDz
-END PGP SIGNATURE-


Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli: CommandLineOptions.java InputHandler.java Main.java

2008-07-11 Thread Jeremias Maerki
commons-cli is quite nice. I use it in Barcode4J. It could simplify the
cli package a bit but would add a new dependency. Not sure if it's worth
it.

On 11.07.2008 13:29:43 Max Berger wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Vincent,
 
 it may (or may not) make sense to move to commons-cli:
 
 http://commons.apache.org/cli/introduction.html
 
 which addresses this (and other problems) very well, but this would mean
 a lot more work.
 
 Max
 
 Jeremias Maerki schrieb:
  Hi Vincent
  
  Certainly not, but you'll probably have to do a few more changes to the
  command-line parser to be able to use the -. You'll see. ;-)
  
  On 11.07.2008 12:01:24 Vincent Hennebert wrote:
  Hi Jeremias,
 
  Author: jeremias
  Date: Thu Jul 10 12:47:12 2008
  New Revision: 675698
 
  URL: http://svn.apache.org/viewvc?rev=675698view=rev
  Log:
  Added support for piping:
  - input from stdin (-imagein not supported)
  - output to stdout
 
  Syntax: fop -xml # -xsl mystylesheet.xsl -pdf #
  (reads the XML from stdin and sends the generated PDF to stdout)
  The de facto standard in the Unix world is to use ‘-’ to specify stdin
  or stdout:
  fop -xml - -xsl mystylesheet.xsl -pdf -
 
  No objection if I change the code accordingly?
 
  Thanks,
  Vincent
  
  
  
  
  Jeremias Maerki
  
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkh3RCUACgkQ+Gr+4pk71JyASACfc9j+U87JiPH36L8ApBWvn9p2
 myUAnR3Ac7DXQqXPIy6xrrwEKnkkVQAh
 =eiDz
 -END PGP SIGNATURE-




Jeremias Maerki



Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli: CommandLineOptions.java InputHandler.java Main.java

2008-07-11 Thread Peter B. West

I can recommend it.

Max Berger wrote:

Vincent,

it may (or may not) make sense to move to commons-cli:

http://commons.apache.org/cli/introduction.html

which addresses this (and other problems) very well, but this would mean
a lot more work.

Max



--
Peter B. West http://cv.pbw.id.au/
Folio http://defoe.sourceforge.net/folio/