cancel
Showing results for 
Search instead for 
Did you mean: 

ant is creating ${env.APP_TOMCAT_HOME} dirs

bwakkie
Champ in-the-making
Champ in-the-making
while running ant after setting the environment variables…

export JAVA_HOME=/usr/lib/jvm/java-6-sun/
export TOMCAT_HOME=/home/bwakkie/dev/apache-tomcat-6.0.20/
export APP_TOMCAT_HOME=$TOMCAT_HOME
export CATALINA_HOME=$TOMCAT_HOME
export VIRTUAL_TOMCAT_HOME=/home/bwakkie/dev/apache-virtual-tomcat-6.0.20/

… and executing in the svn root…

ant build-tomcat

I get a strange error:
BUILD FAILED
/home/bwakkie/source/svn/Alfresco/root/build.xml:617: Directory does not exist:/home/bwakkie/source/svn/Alfresco/root/${env.TOMCAT_HOME}/lib

Whats wrong here?

I also checked http://wiki.alfresco.com/wiki/Install_Tomcat6 to see if it solves things as I use tomcat6 but it didn't.
2 REPLIES 2

donpimpom
Champ in-the-making
Champ in-the-making
I've the same problem, how you solved it?

vignesh_sabapat
Champ in-the-making
Champ in-the-making
Hi

I have faced the same issue. And for me the problem comes when i set environment variables as normal user and running ant with root privileges (sudo ant build). For me the problem got resolved by setting the environment variables under root (switch to root and set it). Then i issued sudo ant build and got the build successful. Try it out Smiley Happy Smiley Happy