使用“如果”的junit元件内部条件中的apache ant脚本[关闭](Using “if” co

2019-10-18 04:18发布

我试图在build.xml文件使用JUnit元素里面的“IF-THEN-ELSE”的条件,我收到以下错误而试图建立。

JUnit的不支持嵌套“如果”元素

有没有解决有关此问题?

Answer 1:

由于蚂蚁1.9.1已经于本周发布,你可以把ifunless在任意Ant任务属性。

见http://ant.apache.org/manual/ifunless.html



文章来源: Using “if” condition inside junit element in apache ant script [closed]