You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Build Admin <bu...@gmail.com> on 2007/02/21 16:17:42 UTC

Maven 1.x for ANT taskdef usage

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>

Re: Maven 1.x for ANT taskdef usage

Posted by Arnaud HERITIER <ah...@gmail.com>.
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 <bu...@gmail.com> 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>
>