ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: tomcat.home
Date Fri, 09 Mar 2001 10:27:57 GMT
b. thym <> wrote:

> But ant doesn't recognize my tomcat.home. I set it correctly in the
> environment.

Ant properties and OS environment variables have no relation - at
least not by default. You could invoke Ant using
-Dtomcat.home=${TOMCAT_HOME} of %TOMCAT_HOME% depending on the OS.

If you are using Ant 1.3, you can achieve what you want by

<property environment="env" />
<property name="deploy.home" value="${env.TOMCAT_HOME}/webapps/${}"/>


View raw message