有人可以告诉构建脚本从哪里获取$ env变量值吗?在ant构建脚本中找不到任何内容。
<if>
<or>
<equals arg1="${env}" arg2="test"/>
<equals arg1="${env}" arg2="dev"/>
</or>
<then>
答案 0 :(得分:0)
该脚本可能设计为使用其他属性运行。例如,从命令行,例如:
ant -Denv=test