Using “if” condition inside junit element in apache ant script [closed]

て烟熏妆下的殇ゞ 提交于 2020-01-07 05:11:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!