The FOP ant task is org.apache.fop.tools.anttasks.Fop. You can find the
source in the source distribution or in CVS. The relative path to this
file is src/org/apache/fop/tools/anttasks/Fop.java.

For a use sample go to the directory docs/examples (relative to the
directory where you've installed the FOP distribution) and look at
build.xml there.

To define the task in ant, make sure fop.jar is in the classpath and
include the following tag:

<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"/>

To run the task do something like the following:
<fop format="application/pdf" outdir="${referenceDir}" basedir="./fo">
        <fileset dir="${foDir}">
                <include name="**/*.fo"/>
        </fileset>
</fop>

Here are the links to CVS to these files.
http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/tools/anttasks/Fop.java?rev=1.14.2.6&only_with_tag=fop-0_20_2-maintain&content-type=text/vnd.viewcvs-markup
http://cvs.apache.org/viewcvs.cgi/xml-fop/docs/examples/build.xml?rev=1.20&only_with_tag=fop-0_20_2-maintain&content-type=text/vnd.viewcvs-markup

I hope this helps.

On 20.11.2002 17:15:19 Howard Miller wrote:
> Thanks,
> 
> but..... I'm not sure where you are pointing me to for these files. Please 
> excuse my obvious ignorance.
> 
> Howard
> 
> On Wednesday 20 November 2002 16:11, Jeremias Maerki wrote:
> > There is one in org.apache.fop.tools. Look at docs/examples/build.xml on
> > how to use it. Seems like we should document it....
> >
> > On 20.11.2002 16:56:32 Howard Miller wrote:
> > > Hi,
> > >
> > > I can feel a FTFM coming on, but... Is there an existing Ant task for
> > > FOP. Have had a good dig around but can't find anything.


Jeremias Maerki

Reply via email to