Hello:
I'm attempting to use the anttask supplied in fop.jar...I have used the
example from the docs to come up with a taskdef and task like so:
taskdef name=fop
classname=org.apache.fop.tools.anttasks.Fop
classpath
pathelement location=${dir.fop}\build\fop.jar/
pathelement
location=${dir.fop}\avalon-framework-cvs-20020806.jar/
pathelement location=${dir.fop}\batik.jar/
/classpath
/taskdef
target name=generate-pdf
fop format=application/pdf
fofile=${dir.fop.fo}\${fo_filename}-${date}.fo
outfile=${dir.fop.output}\${fo_filename}-${date}.pdf /
/target
...but I get the following build error:
BUILD FAILED
file:E:/CM/Projects/NEW_BUILD_PROCESS/EDS_Build/Integration/fop/docGen.xml:2
0: taskdef class org.apache.fop.tools.anttasks.Fop cannot be found
The jars are in the directories as specified above. Developing environment:
WinXP, j2se 1.4.2, Ant 1.5.3, FOP 0.20.5.
Thanks,
-Will
-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 10:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Ant Task
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.6only_with_tag=fop-0_20_2-maintaincontent-type=text/vn
d.viewcvs-markup
http://cvs.apache.org/viewcvs.cgi/xml-fop/docs/examples/build.xml?rev=1.20o
nly_with_tag=fop-0_20_2-maintaincontent-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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]