What is your problem ? It doesn't work ?

Have a look at the code of our plugins :
http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/
for several plugins (checkstyle, clover, ..) we use ant taskdef in the
scripts (plugin.jelly)

Arnaud

On 2/21/07, Build Admin <[EMAIL PROTECTED]> wrote:

Friends Can anyone help me how to use ANT taskdef in maven 1.x?
Please show me the changes required in the following maven.xml.

<path id="project.class.path">
<path refid="maven.dependency.classpath"/>
<pathelement path="${basedir}/extra-libs/j2ee.jar"/>
<pathelement path="${maven.src.dir}\main\webapp\lib"/>
</path>
<postGoal name="java:compile">
<ant:taskdef name="ant-taskdef" classname="org.jboss.aop.ant.AopC"
classpathref="project.class.path">
<ant:classpath>
<ant:path refid="maven.dependency.classpath" />
</ant:classpath>
</ant:taskdef>
<ant:ant-taskdef srcgendir="${maven.build.dest}" >
<ant:classpath>
<ant:pathelement location="${maven.build.dest}" />
<aoppath path="${maven.build.dest}\jboss-aop.xml" />
</ant:classpath>
</ant:ant-taskdef>
</postGoal>

Reply via email to