Re: Default and Propeties based on a Prefix supplied with ant command
Tuesday, September 21, 2004 12:40 PM
I think your answer solves the exactly the opposite problem .
I would like to be able to specify env.id as part of ant command, and retreive the properties with the env.id prefix (if available) otherwise use default properties values as defined in the properties file:
Here is the proprty file build.properties
# start of properties file
# end of properties file
Here is the target I would like to execute:
ant -Denv.id=ext use
Should result in
I could do this by writin an ant atrger that removes the prefixes and sets the property. Is there any way to avoid writing an additional nat task.