使用"若"在Apache Ant的脚本junit的元素内部条件 [英] Using "if" condition inside junit element in apache ant script

查看:195
本文介绍了使用"若"在Apache Ant的脚本junit的元素内部条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾尝试在一个build.xml文件使用IF-THEN-ELSE状态的JUnit元素内,我收到以下错误而试图建立。

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不支持嵌套如果元素

有一个变通此问题?

推荐答案

由于蚂蚁1.9.1已经于本周发布,你可以把如果除非属性的任意Ant任务。

Since Ant 1.9.1 which has been released this week, you can put if and unless attributes on arbitrary Ant tasks.

请参阅 http://ant.apache.org/manual/ifunless.html

这篇关于使用"若"在Apache Ant的脚本junit的元素内部条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆