Ant trouble with environment variables on Ubuntu
Posted
by Inaimathi
on Super User
See other posts from Super User
or by Inaimathi
Published on 2010-04-13T12:22:08Z
Indexed on
2010/04/13
12:33 UTC
Read the original article
Hit count: 402
Having some trouble with with ant reading environment variables in Ubuntu 9.1.
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?
© Super User or respective owner