1
Q
蚂蚁减法
A
回答
2
您可以尝试使用此示例:
<scriptdef name="intCompare" language="javascript">
<attribute name="leftside"/>
<attribute name="rightside"/>
<attribute name="diff"/>
<![CDATA[
var leftSide = attributes.get("leftside");
var rightSide = attributes.get("rightside");
project.setProperty(attributes.get("diff"), leftSide-rightSide);
]]>
</scriptdef>
<target name="test">
<intCompare leftside="555" rightside="9" diff="deviation"/>
<echo message="The difference is: ${deviation}"/>
</target>
1
使用常规任务
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="build.path"/>
<groovy>
properties["greater"] = properties["x"] > properties["y"]
</groovy>
相关问题
- 1. 无法下蚂蚁
- 2. 蚂蚁
- 3. 蚂蚁
- 4. 蚂蚁无法找到一个蚂蚁类(DateUtils),而建设
- 5. 蚂蚁:蚂蚁如何找到属性setter方法属性
- 6. 蚂蚁无法导入R.java
- 7. 无法为蚂蚁项目
- 8. 在蚂蚁
- 9. 从蚂蚁
- 10. 与蚂蚁JARring
- 11. 蚂蚁metricstask.jar
- 12. 使用蚂蚁
- 13. 使用蚂蚁
- 14. 蚂蚁在Eclipse
- 15. 蚂蚁调用
- 16. 从蚂蚁
- 17. 蚂蚁 - 从罐
- 18. 删除蚂蚁
- 19. 蚂蚁副本
- 20. 使用蚂蚁
- 21. 蚂蚁IncludeTask
- 22. 检查蚂蚁
- 23. 蚂蚁和yuicompressor
- 24. 使用蚂蚁
- 25. 蚂蚁运行
- 26. 退房蚂蚁
- 27. 调试蚂蚁UnsupportedClassVersionError
- 28. 如何从蚂蚁
- 29. 蚂蚁和大于
- 30. 如何在蚂蚁