Ah crap, beat me too it....what he said! :D! I use ant-contrib too for
other projects as well (exactly for the foreach target).
-aps
On 12/5/06, Haroon Rafique <[EMAIL PROTECTED]> wrote:
On Today at 11:30am, MAUGM=>Morgovsky, Alexander (US - Glen Mills)...:
AM> I am trying to create an Ant task using the maven-antrun-plugin in
AM> Maven 2. I would like to use the optional task foreach. In Ant, I
AM> did this by declaring the Ant-Contrib jar in a taskdef object in the
AM> build.xml. How may I do this in Maven 2? Thanks.
AM>
AM>
I have the following in the <dependencies> section of my pom
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>0.6</version>
<scope>provided</scope>
</dependency>
then in my maven-antrun-plugin <tasks> section, I have the following:
<configuration>
<tasks>
<taskdef
resource="net/sf/antcontrib/antcontrib.properties"
classpathref="maven.compile.classpath"/>
......
</tasks>
</configuration>
Hope this helps.
--
Haroon Rafique
<[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson