ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: property does not change
Date Tue, 06 Aug 2002 10:34:46 GMT
Properties are immutable, but you can work around what you are trying to 
do with <antcall> which is more along the lines of what your doing 
anyway.  Set up your <exec> stuff inside a target, and call it with 
<antcall> changing the value of ${project} for each call.

	Erik


Tibor Strausz wrote:
> Hi i have the following problem:
> i have the following task i would like to use the same proeprty name
> "project" and redivine it. I read in the documentation that thats not
> posible :-(
> is there work around other then using different name each time??
> 
> 
> thnx
> tibi
> 
> <!--=========================================-->
> <!--=BUILD:
> Installers\CustomActions\VC\TDSDialogValidation\TDSDialogValidation.dsp=-->
> <!--=========================================-->
>   <target name="TDSDialogValidation"
> description="Installers\CustomActions\VC\TDSDialogValidation\TDSDialogValida
> tion.dsp">
>     <property name="project"
> value="Installers\CustomActions\VC\TDSDialogValidation\TDSDialogValidation.d
> sp"/>      <echo>Make: ${project}</echo>
>     <exec executable="${msdevExe}">
>       <arg line="'${srcDir}\${project}' /MAKE 'TDSDialogValidation - Win32
> Unicode Release' /REBUILD /OUT '${logDir}\TDSDialogValidation.log'"/>
>     </exec>
>   </target>
> <!--=========================================-->
> <!--=BUILD: Installers\CustomActions\VC\TDSMSMQ\TDSMSMQ.dsp=-->
> <!--=========================================-->
>   <target name="TDSMSMQ"
> description="Installers\CustomActions\VC\TDSMSMQ\TDSMSMQ.dsp">
>     <property name="project"
> value="Installers\CustomActions\VC\TDSMSMQ\TDSMSMQ.dsp"/>      <echo>Make: ${project}</echo>
>     <exec executable="${msdevExe}">
>       <arg line="'${srcDir}\${project}' /MAKE 'TDSMSMQ - Win32 Unicode
> Release' /REBUILD /OUT '${logDir}\TDSMSMQ.log'"/>
>     </exec>
>   </target>
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 



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


Mime
View raw message