The first one seems indeed to be an ant task, and so doesn't require a
main() method.  You have to use the task that you have defined.

The second one is a Main, that you can invoke using the java task.  If you
want, you can build a fop task based on it by defining a macrodef that
contains the java invocation.

Gilles Scokart


2009/4/2 Martin Gainty <mgai...@hotmail.com>

>
> has Anyone been able to get fop ant task to work Here are 2 classes from
> fop.jar 2211KB 09/15/2008
> I have
> <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"
> classpathref="run-classpath"/>
> where Fop class doesnt have main() method
>
> <taskdef name="fop" classname="org.apache.fop.cli.Main"
> classpathref="run-classpath"/>
> does'nt have execute() method
>
> as a fallback I can exec it..but was wondering if the fop exec interface
> was already written?
>
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung / Disclaimer and confidentiality note
> 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.
> This message is confidential and may be privileged. If you are not the
> intended recipient, we kindly ask you to  please inform the sender. Any
> unauthorised dissemination or copying hereof is prohibited. This message
> serves for information purposes only and shall not have any legally binding
> effect. Given that e-mails can easily be subject to manipulation, we can not
> accept any liability for the content provided.
>
>
>
>
>
> _________________________________________________________________
> Rediscover HotmailĀ®: Get e-mail storage that grows with you.
>
> http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
>

Reply via email to