You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2007/03/02 13:45:52 UTC
Passing variables to antrun plugin
Hi all,
A while back I stumbled upon a description of how to pass maven variables
through the antrun plugin into an ant build script. Now that I need the
functionality, I cannot find the description again.
Nothing I can find in the antrun plugin docs at
http://maven.apache.org/plugins/maven-antrun-plugin/ describes how to do
this (that I can find).
More specifically, I want the ant script to have access to the
${pom.version} variable.
Does anyone have a link to a howto on how to do this?
Regards,
Graham
--
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Passing variables to antrun plugin
Posted by Siegfried Goeschl <si...@it20one.at>.
Hi Graham,
we use this to pass an environment variable
<tasks>
<ant antfile="${basedir}/build.xml" target="configure">
<property name="maven.test.skip" value="${maven.test.skip}" />
</ant>
</tasks>
but you can also use the antlib for maven if you would like to acess
more information from the pom
Cheers,
Siegfried Goeschl
Graham Leggett wrote:
> Hi all,
>
> A while back I stumbled upon a description of how to pass maven variables
> through the antrun plugin into an ant build script. Now that I need the
> functionality, I cannot find the description again.
>
> Nothing I can find in the antrun plugin docs at
> http://maven.apache.org/plugins/maven-antrun-plugin/ describes how to do
> this (that I can find).
>
> More specifically, I want the ant script to have access to the
> ${pom.version} variable.
>
> Does anyone have a link to a howto on how to do this?
>
> Regards,
> Graham
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org