ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Lyon" <>
Subject if and unless
Date Wed, 01 Aug 2001 15:16:39 GMT

Quick question, and I apologize in advance if this has been asked before:
can a single target or task have both an "if" *and* an "unless" attribute to
control conditional execution? I wasn't clear from the documentation if
using "if" and "unless" was an either/or proposition, and found no clear
answer in the archives either. I'm hoping to be able to be able to have a
task conditionally execute based on an available property being detected
within the buildfile and an additional property being detected which is
passed in from an external file. My use cases/test cases
seem to suggest two conditionals can't be used within a single task, but I
wanted to ask the list as a sanity check, as it's quite possible my xml is
crap. Any insight would be greatly appreciated.



View raw message