问题
I have tried to use "if-then-else" condition inside junit element in a build.xml file and I am getting the following error while trying to build.
junit doesn't support the nested "if" element
Is there a work around for this issue?
回答1:
Since Ant 1.9.1 which has been released this week, you can put if
and unless
attributes on arbitrary Ant tasks.
See http://ant.apache.org/manual/ifunless.html
来源:https://stackoverflow.com/questions/16739652/using-if-condition-inside-junit-element-in-apache-ant-script