You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Anderson <be...@gmail.com> on 2004/11/19 18:46:32 UTC

pom properties after the fact [was: do something...]

Sorry about the chattiness today.  I think I've finally nailed down my
actual question.
In the previous thread I commented on how I can change properties
after the fact that build on each other.  For instance:

qb.name=Tommy Maddox
best.qb.ever=${qb.name}
qb.name=Ben Roethlisberger

now best.qb.ever is "Ben Roethlisberger"

however, I don't see this behavior for project.xml(pom) properties:

project.properties
--------------------------
best.qb.ever=Tommy Maddox

project.xml
-----------------
    <sourceDirectory>${best.qb.ever}</sourceDirectory>

maven.xml
----------------
  <goal name="test2">
    <j:set var="best.qb.ever" value="Ben Roethlisberger"/>
    <ant:echo>pom.build.sourceDirectory: ${pom.build.sourceDirectory}</ant:echo>

This outputs as:
...Tommy Maddox

Is there any way to get the above behavior to occur in the example
below?  If not, I'll need to make the changes suggested in the
previous thread and I'll stop polluting this list ;-)
Thanks,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org