From ab1b1399dab55e254746e8fc365a2a98b1313fa0 Mon Sep 17 00:00:00 2001 From: hjp Date: Mon, 23 May 2005 09:04:32 +0000 Subject: [PATCH] Look for tomcat, ant and open-xchange. --- .zjava | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.zjava b/.zjava index 08e8b84..8de42d9 100644 --- a/.zjava +++ b/.zjava @@ -7,7 +7,7 @@ do if [ -d "$i/bin" ] then PATH=$(apppath "$i/bin") - export JAVA_HOME=bin + export JAVA_HOME=$i break; fi done @@ -34,3 +34,33 @@ done export CLASSPATH=$NEW_PATH +for i in /usr/local/tomcat +do + if [ -d "$i" ] + then + export CATALINA_HOME="$i" + export TOMCAT_HOME="$i" + PATH=$(apppath "$i/bin") + break; + fi +done + +for i in /usr/local/ant +do + if [ -d "$i" ] + then + export ANT_HOME="$i" + PATH=$(apppath "$i/bin") + break; + fi +done + +for i in /usr/local/openxchange +do + if [ -d "$i" ] + then + export OX_HOME="$i" + PATH=$(apppath "$i/bin" "$i/sbin") + break; + fi +done