<!-- 指定环境变量参数为:SystemVariable -->
<property environment="SystemVariable" />
<!-- 将tomcat.home指向环境变量TOMCAT_HOME指向的路径 -->
<property name="tomcat.home" value="${SystemVariable.TOMCAT_HOME}" />
<target name="display">
<echo message="${tomcat.home}" />
<mkdir dir="${tomcat.home}/test"/>
</target>