You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Vincent Hennebert <vi...@anyware-tech.com> on 2008/07/11 12:01:24 UTC
Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli:
CommandLineOptions.java InputHandler.java Main.java
Hi Jeremias,
> Author: jeremias
> Date: Thu Jul 10 12:47:12 2008
> New Revision: 675698
>
> URL: http://svn.apache.org/viewvc?rev=675698&view=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: FOP CLI
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Jeremias Maerki wrote:
> 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.
I find it more worrisome that there there are a commons-cli v1
and a commons-cli v2 which are incompatible, and I'm not sure
whether v2 will make it to release this time (although it looks
better now than the last try).
J.Pietschmann
Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli: CommandLineOptions.java InputHandler.java Main.java
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
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=675698&view=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
Posted by "Peter B. West" <li...@pbw.id.au>.
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/>
Re: svn commit: r675698 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/cli:
CommandLineOptions.java InputHandler.java Main.java
Posted by Max Berger <ma...@berger.name>.
-----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=675698&view=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
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
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=675698&view=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