That is, will calling the following target when testSetupDone evaluates to false, execute the targets in dependency chain?
<target name="-runTestsIfTestSetupDone" if="testSetupDone" depends="-runTests" />
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, the dependencies are executed before the conditions get evaluated.
From the Ant manual:
Here is an example:
The property
testSetupDoneis set within the target independs, and the output is:Target
-runTestsis executed, even thoughtestSetupDoneis not set at this moment.runTestsIfTestSetupDoneis executed afterwards, sodependis evaluated beforeif.