ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morgan Fletcher <>
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"
  	<available property="bcj_available" file="${bcj}"/>

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



View raw message