ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer Noack" <rai...@noacks.net>
Subject RE: properties not being reset
Date Thu, 28 Apr 2005 15:00:34 GMT
Properties are immutuable.

You can use the <property>'s prefix-attribute to read the file the second
(or first/or both) time.

Cheers

Rainer

> -----Original Message-----
> From: George Dibi [mailto:George.Dibi@intervoice.com] 
> Sent: Thursday, April 28, 2005 4:25 PM
> To: Ant Users List
> Subject: properties not being reset
> 
> 
> 
> All;
> 
> Scenario:
> First I set the properties info...
> 
> 
> The content of build_isoft36.properties initially set to:
> 
> #build_env
> BUILD_VIEW=ccadm_isoft36
> label.product=isoft36
> IVCOMMONVOB_VER=2.1
> IVCOMMONVOB_BLD=003
> ------------------------------------------------------
> 
> <project name="ISOFTPRG" default="init" basedir=".">
> 
> <property name="build.isoft36.properties" 
> value="build_isoft36.properties"/>
> <property file="${build.isoft36.properties}"/>
> 
> 
> <!--/////////////////////////////////////-->
>   <target name="isoft36">
> 	  <echo>
>              Labeling, please wait... 
> 	  </echo>
> 	  <exec executable="${ant.common.dir}/createProcess.exe">
> 		  <arg value="${basedir}"/>
> 		  <arg value="${perl.bin.dir}"/>
> 		  <arg value="${lbl.perl.target}"/>
> 		  <arg value="${label.product}"/>
> 	  </exec>
>            <property file="${build.isoft36.properties}"/>
>   </target>
> <!--/////////////////////////////////////-->
> 
> The thing is after target isoft36 is executed, the 
> build_isoft36.properties is changed to:
> -----------------------------------------------
> #build_env
> BUILD_VIEW=ccadm_isoft36
> label.product=isoft36
> IVCOMMONVOB_VER=2.2.1
> IVCOMMONVOB_BLD=004
> ------------------------------------------------
> 
> Then I go ahead and run the next target:
> ---------------------------------------------------
> <target name="ivcommon_isoft" depends="clean">
> 	  <echo>
>              Building ivcommon... 
> 	     ${drive} ${BUILD_VIEW} ${IVCOMMONVOB_VER} 
> ${IVCOMMONVOB_BLD}
> 	  </echo>
> 	  <exec executable="${ant.common.dir}/createProcess.exe"
> resultproperty="ivcommonResult">
>                <arg line="${basedir} ${perl.bin.dir} 
> ${ivc.perl.target} ${drive} ${BUILD_VIEW} ${IVCOMMONVOB_VER} 
> ${IVCOMMONVOB_BLD}"/>
> ----------------------------------------------------------
> 
> The problem is that the values get reset during that 
> transition. But my variables do not get set with new values I 
> am trying to for the next target ivcommon_isoft. Does anybody 
> know how to resolve this issue, I can use the help.
> 
> Thanks
> George 
> 
> 
> 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
> 


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


Mime
View raw message