Ant trouble with environment variables on Ubuntu

Posted by Inaimathi on Stack Overflow See other posts from Stack Overflow or by Inaimathi
Published on 2010-04-13T12:22:08Z Indexed on 2010/04/14 0:53 UTC
Read the original article Hit count: 571

Having some trouble with with ant reading environment variables in Ubuntu 9.10.

Specifically, the build tasks my company uses has a token like ${env.CATALINA_HOME] in the main build.xml. I set CATALINA_HOME to the correct value in /etc/environment, ~/.pam_environment and (just to be safe) my .bashrc. I can see the correct value when I run printenv from bash, or when I eval (getenv "CATALINA_HOME") in emacs. Ant refuses to build to the correct directory though; instead I get a folder named ${env.CATALINA_HOME} in the same directory as my build.xml.

Any idea what's happening there, and/or how to fix it?

© Stack Overflow or respective owner

Related posts about ubuntu

Related posts about environment-variables