我有一个ANT构建文件,其中包含以下行:
<java classname="arq.sparql" fork="true" outputproperty="javaresult" errorproperty="javaerror">
Run Code Online (Sandbox Code Playgroud)
现在,我要添加条件以使属性'javaerror'的构建失败不为空。所以我有这样写的条件:
<fail message="${javaerror}">
<condition>
<not>
<equals javaerror=""/>
</not>
</condition>
</fail>
Run Code Online (Sandbox Code Playgroud)
但这没有用,请您帮忙。
亲切的问候
ant ×1