You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Howard Miller <ho...@udcf.gla.ac.uk> on 2002/11/20 16:56:32 UTC

Ant Task

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.

Many thanks 
-- 
Howard Miller
GUIDE
University of Glasgow
T: +44 (0)141 330 3269

Re: Ant Task

Posted by Howard Miller <ho...@udcf.gla.ac.uk>.
What a star!

Thanks very much.... you've saved me quite a bit of time there! More help than 
I was expecting!!

Howard

On Wednesday 20 November 2002 16:23, Jeremias Maerki wrote:
> 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/v
>nd.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

-- 
Howard Miller
GUIDE
University of Glasgow
T: +44 (0)141 330 3269

Re: Ant Task

Posted by Jeremias Maerki <de...@greenmail.ch>.
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


Re: Ant Task

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Howard Miller wrote:
> Thanks,
> 
> but..... I'm not sure where you are pointing me to for these files. Please 
> excuse my obvious ignorance.

It's only in the source release.
If you don't want to download then you can find it here:
http://cvs.apache.org/viewcvs.cgi/xml-fop/docs/examples/build.xml?rev=1.20&content-type=text/vnd.viewcvs-markup


Christian


Re: Ant Task

Posted by Howard Miller <ho...@udcf.gla.ac.uk>.
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

-- 
Howard Miller
GUIDE
University of Glasgow
T: +44 (0)141 330 3269

Re: Ant Task

Posted by Jeremias Maerki <de...@greenmail.ch>.
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