<?xml version="1.0" encoding="UTF-8"?>
<!--
basedir="."表示当前路径(相对于build.xml),可以省略
在myeclipse中ant是可以调试的
-->
<project name="myAntProject" default="package" basedir=".">
<property name="hello" value="hello123"></property>
<property name="world" value="world123"></property>
<target name="init"/>
<target name="preprocess" depends="init">
<mkdir dir="${hello}"/>
<mkdir dir="${world}"/>
</target>
<target name="compile" depends="init,preprocess"/>
<target name="package" depends="compile"/>
</project>