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:[EMAIL PROTECTED] 
> Sent: Thursday, April 28, 2005 6:01 PM
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED] 
> 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:[EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to