一般来说,在 ant 的build 文件中可以使用下面的方法定义变量<property name="dist.dir" value="dist"/>
<property name="dist.dir" value="dist"/>