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. 蚂蚁和yuicompressor
- 3. 在蚂蚁
- 4. 蚂蚁副本
- 5. 蚂蚁metricstask.jar
- 6. 与蚂蚁JARring
- 7. 蚂蚁在Eclipse
- 8. 从蚂蚁
- 9. 从蚂蚁
- 10. 蚂蚁IncludeTask
- 11. 蚂蚁运行
- 12. 退房蚂蚁
- 13. 使用蚂蚁
- 14. 使用蚂蚁
- 15. 蚂蚁MailLogger问题
- 16. 蚂蚁对财产
- 17. 蚂蚁检测FreeBSD
- 18. 试图用蚂蚁
- 19. 如何在蚂蚁
- 20. 未能与蚂蚁
- 21. 蚂蚁mkdir失败
- 22. 蚂蚁attrib问题
- 23. 蚂蚁和水银
- 24. 建筑与蚂蚁
- 25. 蚂蚁:我如何在interate所有子文件夹和蚂蚁
- 26. 我如何准备蚂蚁的contrib-0.3.jar蚂蚁的contrib
- 27. 从蚂蚁调用多个蚂蚁目标
- 28. 蚂蚁和蚂蚁节点之间有什么区别?
- 29. 蚂蚁构建失败 - 因为蚂蚁忘记属性?
- 30. 蚂蚁和蚂蚁之间的区别是干净的吗?