<target name="newTestFiles"> <echo>mimetype=${mimetype}</echo> <echo>outDir=${outDir}</echo> <property name="msglevel" value="9"/> <echo>msglevel=${msglevel}</echo> <property name="src" value="."/> <echo>src=${src}</echo> <property name="input" value="foo.fo"/> <echo>input=${input}</echo> <property name="output" value="foo.pdf"/> <echo>output=${output}</echo> <property name="outdir" value="." /> <echo>outdir=${outdir}</echo>
<property name="foDir" value="fo"/> <path id="run-classpath"> <fileset dir="F:/FOP/fop-0.95/src/build"> <include name="*.jar"/> </fileset> </path> <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop" classpathref="run-classpath"/> <fop fofile="${input}" format="${mimetype}" outfile="${output}" messagelevel="${msglevel}" relativebase="true"> <fileset dir="basic"> <include name="**/*.fo"/> </fileset> <fileset dir="footnotes"> <include name="**/*.fo"/> </fileset> <fileset dir="pagination"> <include name="**/*.fo"/> </fileset> <fileset dir="keeps_and_breaks"> <include name="**/*.fo"/> </fileset> <fileset dir="markers"> <include name="**/*.fo"/> </fileset> <fileset dir="region_body"> <include name="**/*.fo"/> </fileset> <fileset dir="tables"> <include name="**/*.fo"/> </fileset> <fileset dir="svg"> <include name="**/*.fo"/> </fileset> <fileset dir="advanced"> <include name="**/giro.fo"/> </fileset> </fop> </target> Vielen Danke Jan, Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Subject: AW: ANT fop task > Date: Fri, 3 Apr 2009 07:04:28 +0200 > From: jan.mate...@rzf.fin-nrw.de > To: user@ant.apache.org > > > I have > > <taskdef name="fop" > > classname="org.apache.fop.tools.anttasks.Fop" > > classpathref="run-classpath"/> > > where Fop class doesnt have main() method > > > A task implementation doesnt have to have a main method. > The tasks 'main' is the > public void execute(); > method. > From the class name I would think that this should be > an Ant task (...anttasks.Fop) - if it has the execute method. > > Manual: http://xmlgraphics.apache.org/fop/0.94/anttask.html > > > > <taskdef name="fop" classname="org.apache.fop.cli.Main" > > classpathref="run-classpath"/> > > does'nt have execute() method > > Maybe (surely) not a task. > From the name I would think it is intended to be started from the > command line. > (...cli.Main: CommandLineInterface MAIN-class) > > > Jan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > _________________________________________________________________ Quick access to your favorite MSN content and Windows Live with Internet Explorer 8. http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A