ant is creating ${env.APP_TOMCAT_HOME} dirs
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2009 09:35 AM
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.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2010 04:56 PM
I've the same problem, how you solved it?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2011 02:22 AM
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
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


