Short question:

Should a property I set in a preGoal retain it's value for the goal itself
and if not how can I achieve this?

Long version:

I have a turbine app that I am in the process of mavenizing.

With ant I had a number of targets for building deployment targets for
different servers (the servers use different servlet names as well as other
properties that I filter as part of the build process).

I am attempting to do the same thing with maven, but the approach I am
taking is not working.

I have env1.properties and env2.properties that define the base directory to
which I want the webapp to be generated.

I have a pregoal name="war.webapp" that reads the appropriate env?properties
file (depending on a property I set at the command line) and then sets
maven.war.build.dir to a value that is computed from a property obtained
from the env?properties file.

My problem is that even though an echo at the end of the preGoal shows the
property set to the value I desire, it clearly doesn't have this value in
the goal itself.

Is there a way to make this work, or alternatively a better approach to what
I am attempting to do?

Thanks,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to