How do I pass properties that may be undefined through <antcall> without
having them expanded to a string such as '${x}' (which evaluates to true)?

A possible solution may be to use <reference> rather than <parameter>, but I
am not sure how this would work in the example below.

 <target
  name="all"
 >
  <uptodate
   property="alpha.skip"
   srcfile="${alpha.source}"
   targetfile="${alpha.output}"
  />
  <antcall target="xml">
   <param name="xml.source" location="${alpha.source}"/>
   <param name="xml.output" location="${alpha.output}"/>
   <param name="xml.skip" value="${alpha.skip}"/>
  </antcall>
  ...
</target>

 <target
  name="xml"
  unless="xml.skip"
 >
  <!-- Never executed! -->
 </target>


--
Eric Jain


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to