ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morgan Fletcher <morgan.fletc...@provato.com>
Subject Property set inside target that should be passed over
Date Sat, 14 Oct 2000 23:55:02 GMT
I've got a target that looks like this:

  <target name="prepare_compiler" if="usebcj">
  	<property name="bcj"
value="${provato.home}/../tools/jbuilder3/bin/bcj.exe"/>
  	<available property="bcj_available" file="${bcj}"/>
  </target>

If the property usebcj is not set, the properties bcj and bcj_available get
set anyway:

 +Target: prepare_compiler
   +Task: property Setting project property: bcj ->
d:\depots\eng\main\components/../tools/jbuilder3/bin/bcj.exe    
   +Task: available Setting project property: bcj_available -> true 

Shouldn't the if="usebcj" condition cause those properties to not be set? If
that's not the case, how would I conditionally set the two properties, based
on the existence of usebcj?

We're using 1.1. 

Thanks,

morgan

Mime
View raw message