Hello Luke,

Thank You for the help. I see that props can be written out and read
back in and this has to be done explicitly to get the altered values
back from ant.

By the way I tried using profiles and I was able to accomplish the
separation I needed for my compile time variables based on any maven
command line input so I went that way for now. But I really needed to
know on principle if passing back from ant to maven could be done or
not and it seems that it would be a very manual task :(

On Fri, Aug 20, 2010 at 7:16 AM, lukewpatterson
<lukewpatter...@gmail.com> wrote:
>
> ... more background info, trying to be more accurate and complete this time,
> if anyone sees anything that should be clarified, please jump in ...
>
>
> antrun is able to see property value changes during an <execution> run
> because of two things:
>
> * it is manually pulling xml out of its own configuration section [1], and
> resolving the expressions it each time it comes across them during ant
> execution
> * during the run, the properties are ant properties (initialized with
> corresponding maven property values), and don't get written back to maven
> properties unless you explicitly do so [2]
>
>
> other plugins typically wouldn't be doing this, and instead rely on whatever
> is passed in from the container, the stuff passed in from the container is
> whatever is seen in help:effective-pom (things explicitly declared in
> configuration sections) plus resolutions of default values (if the default
> values contain expressions, they are evaluated right before the plugin runs)
>
>
>
> [1]
> http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java?view=markup
> (line 457 is a interesting spot)
> [2]
> http://maven.40175.n5.nabble.com/Exporting-Ant-properties-to-Maven-td510023.html#a510117
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Shuttling-Property-Values-between-Maven-and-Ant-tp2641670p2642018.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

Reply via email to