ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Dibi" <George.D...@intervoice.com>
Subject RE: properties not being reset
Date Fri, 29 Apr 2005 14:08:30 GMT
This is what the problem was.

Thanks 

-----Original Message-----
From: Rainer Noack [mailto:rainer@noacks.net] 
Sent: Thursday, April 28, 2005 3:03 PM
To: 'Ant Users List'
Subject: RE: properties not being reset

Try something like this:

> > <project name="ISOFTPRG" default="init" basedir=".">
> > 
> > <property name="build.isoft36.properties"
> > value="build_isoft36.properties"/>
> > <property file="${build.isoft36.properties}" prefix="old."/>
> > 
> > 
> > <!--/////////////////////////////////////-->
> >   <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="${old.label.product}"/>
> > 	  </exec>
> >            <property file="${build.isoft36.properties}"
prefix="new."/>
> >   </target>
> > <target name="ivcommon_isoft" depends="clean">
> > 	  <echo>
> >              Building ivcommon... 
> > 	     ${drive} ${new.BUILD_VIEW} ${new.IVCOMMONVOB_VER}
> > ${new.IVCOMMONVOB_BLD}
> > 	  </echo>
> > 	  <exec executable="${ant.common.dir}/createProcess.exe"
> > resultproperty="ivcommonResult">
> >                <arg line="${basedir} ${perl.bin.dir} 
> > ${ivc.perl.target} ${drive} ${new.BUILD_VIEW} ${new.IVCOMMONVOB_VER}

> > ${new.IVCOMMONVOB_BLD}"/>


> -----Original Message-----
> From: George Dibi [mailto:George.Dibi@intervoice.com] 
> Sent: Thursday, April 28, 2005 6:01 PM
> To: rainer@noacks.net
> Subject: RE: properties not being reset
> 
> 
> What do you mean by prefix-attribute I am a little new to ant.
> 
> -----Original Message-----
> From: Rainer Noack [mailto:rainer@noacks.net] 
> Sent: Thursday, April 28, 2005 10:01 AM
> To: 'Ant Users List'
> Subject: RE: properties not being reset
> 
> 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
> 
> 
> 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


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