ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Strausz <Tibor.Stra...@tridion.com>
Subject how can i use a property to enable/disable a general target
Date Mon, 12 Aug 2002 09:40:12 GMT

hi,

main question: how can i use a property to enable/disable a general target.

i have a general target which i execute from a main target with antcall with
differnet param's
like so:
    <antcall target="RunBat">
      <param name="project" value="Shared\TDSDefines\BuildTypeLib.bat"/>  
    </antcall>
this is ok ;-)

now i have a build.properties in which the user can define if he want st
build the different steps
like so:
  <property name="BuildTypeLib" value="yes"/>

how can i use this property so that the general RunBat will only build if
${BuildTypeLib} == true

if can't use <traget name="RunBat" if="${BuildTypeLib}"/> because its a
general task (and the if only looks at if the BuildTypeLib is defined and
not if its true/yes/on but thats a minor problem which i can work arround
;-)

thnx

tibi

--
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