Comment Comment by bokchoi As of Ant 1.9.1, you can use 'if' and 'unless' attributes on any task or element in a target. I stopped using Ant a long time ago, but this was a pleasant discovery when I had to pick up an old Ant based project recently.https://ant.apache.org/manual/ifunless.html parent bokchoi 11 months ago
https://ant.apache.org/manual/ifunless.html