If the following was inserted into build.xml, you
would not need to modify the ant shell script to
pass through TOMCAT_HOME and ANT_HOME:
<property environment="userenv"/>
<property name="tomcat.home" value=
"${userenv.TOMCAT_HOME}"/>
<property name="ant.home" value=
"${userenv.ANT_HOME}"/>