Think of antrun as being roughly equivalent to http://ant.apache.org/manual/CoreTasks/ant.html
i.e. it forks a new process. The new process has no means of (via intra-process-communication) affecting the maven build. You could use the properties-maven-plu...@mojo to read in the property from a file that your antrun task creates. Alternatively, AFAIK, this is why Kohsuke created antrun-extended... but I do not think that antrun-extended is either a "good thing" or "the maven way" -Stephen 2009/9/10 David Gallardo <da...@gallardo.org> > > Well, I don't mean to sound ungrateful for such a frank response, but, why > not? > > @D > > > Stephen Connolly-2 wrote: > > > > no > > > > Sent from my [rhymes with myPod] ;-) > > > > On 10 Sep 2009, at 04:55, David Gallardo <da...@gallardo.org> wrote: > > > >> > >> I want to use an antrun task to set a property (say in the prepare- > >> resources > >> phase) that I use later in another mojo, (say in the packaging > >> phase, to set > >> a header in my jar manifest). > >> > >> I haven't had any luck with this--is this supposed work? > >> > >> @D > >> -- > >> View this message in context: > >> > http://www.nabble.com/Passing-property-from-antrun-task-to-maven--tp25376867p25376867.html > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/Passing-property-from-antrun-task-to-maven--tp25376867p25378997.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >