ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Dibi" <George.D...@intervoice.com>
Subject Properties manipulation
Date Thu, 19 May 2005 17:03:15 GMT
All,

Can someone help figure this out?

Xml file
<property name="build.stdapps.properties"
value="build_stdapps.properties"/>
<property file="${build.stdapps.properties}" prefix="old."/>
----------------------------------------------------------------

Content of build_stdapps.properties is below.

BUILD_VIEW=ccadm_cmlab178_ld2 
label.product=stdapps 
XADEVVOB_VER=1.0
XADEVVOB_BLD=016
-----------------------------------------------------------------
Stdapps is passed as commend line argument
For example: ant -buildfile xyz.xml -Dold.label.product=stdapps
targetname

Is there a way to pass the -Dold.label.product value to either
"build.stdapps.properties" i.e. "build.${old.label.product}.propertes",
how about the ${build.stdapps.properties}?

I appreciate your help
Thanks


This e-mail transmission may contain information that is proprietary, privileged and/or confidential
and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention
or disclosure by any person other than the intended recipient or the intended recipient's
designees is strictly prohibited. If you are the intended recipient, you must treat the information
in confidence and in accordance with all laws related to the privacy and confidentiality of
such information.  If you are not the intended recipient or their designee, please notify
the sender immediately by return e-mail and delete all copies of this email, including all
attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message