How to write task?
my maven.xml :
<preGoal name="java:compile">
<!---->
<ant:taskdef name="enhance" classname="com.riflexo.jcredo.ant.Enhancer">
<ant:classpath>
<ant:pathelement location="${build.lib}/jcredo.jar"/>
<ant:pathelement location="${build.lib}/jdo1_0.jar"/>
<ant:pathelement location="${build.lib}/jta-spec1_0_1.jar"/>
<ant:pathelement location="${build.lib}/bcel-fix.jar"/>
<ant:pathelement location="${build.lib}/Regex.jar"/>
</ant:classpath>
</ant:taskdef>
</preGoal>
<postGoal name="java:compile">
<u:attainGoal name="enhance" />
</postGoal>
but failed
Element... enhance
Line...... 69
Column.... 80
java.lang.ExceptionInInitializerError
Total time: 25 seconds
How to define an ant task and execute ant task in maven?
Brett Porter <[EMAIL PROTECTED]> wrote:
Start here:
http://maven.apache.org/reference/user-guide.html#maven.xml
You can pretty much paste your ant code into maven.xml, add the necessary
project/goal tags around it, and away you go.
- Brett
> -----Original Message-----
> From: jun cai [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 11 September 2003 1:53 PM
> To: [EMAIL PROTECTED]
> Subject: How to add ant taskdef in maven.
>
>
> Before I use maven to publish my project ,I use ant to bulid
> my project.such as:
>
>
>
>
>
>
>
>
>
>
>
>
> > destinationPath="${build.classes}"/>
>
>
>
> How to define task in maven?
>
> thanks.
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
>
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software