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 Weiqi Gao <we...@networkusa.net> on 2001/08/22 01:38:28 UTC

A better shell script for running FOP

Hi,

I have adapted the shell script that Ant uses to run itself into a shell
script that can be used to run FOP.

I have attached the 'fop' script.  This can potentially be a nice
replacement for the fop.sh script that FOP currently uses.

Benefit of this script:

1. For users of FOP that uses it as a command line utility, as in
   fop -fo myfile.fo -pdf myfile.pdf
there is no need to mess around with the CLASSPATH.  Simply add
/path/to/FOP-0.20.1 into the PATH, or create a symbolic like this:
   ln -s /path/to/Fop-0.20.1/fop /usr/bin/fop
and the fop command will simply work.

2. The ant script works with Cygwin, even if you install FOP into a
directory with a space in its name, like "C:\Program Files".  I haven't
tested it but it should work.

3. It brings in all jar files in the $FOP_HOME/lib directory.  So in the
future, there's no need to modify the fop script when some new library
is added to $FOP_HOME/lib.

-- 
Weiqi Gao
weiqigao@networkusa.net

Re: A better shell script for running FOP

Posted by Keiron Liddle <ke...@aftexsw.com>.
On Wed, 22 Aug 2001 01:38:28 Weiqi Gao wrote:
> Hi,
> 
> I have adapted the shell script that Ant uses to run itself into a shell
> script that can be used to run FOP.
> 
> I have attached the 'fop' script.  This can potentially be a nice
> replacement for the fop.sh script that FOP currently uses.
> 
> Benefit of this script:
> 
> 1. For users of FOP that uses it as a command line utility, as in
>    fop -fo myfile.fo -pdf myfile.pdf
> there is no need to mess around with the CLASSPATH.  Simply add
> /path/to/FOP-0.20.1 into the PATH, or create a symbolic like this:
>    ln -s /path/to/Fop-0.20.1/fop /usr/bin/fop
> and the fop command will simply work.
> 
> 2. The ant script works with Cygwin, even if you install FOP into a
> directory with a space in its name, like "C:\Program Files".  I haven't
> tested it but it should work.
> 
> 3. It brings in all jar files in the $FOP_HOME/lib directory.  So in the
> future, there's no need to modify the fop script when some new library
> is added to $FOP_HOME/lib.

This new fop.sh script has been committed, seems to be significantly better
than what was there before.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org