You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/03/08 11:54:43 UTC
svn commit: r384178 - /lenya/trunk/configure.sh
Author: michi
Date: Wed Mar 8 02:54:41 2006
New Revision: 384178
URL: http://svn.apache.org/viewcvs?rev=384178&view=rev
Log:
check on JAVA_HOME and some notes added
Modified:
lenya/trunk/configure.sh
Modified: lenya/trunk/configure.sh
URL: http://svn.apache.org/viewcvs/lenya/trunk/configure.sh?rev=384178&r1=384177&r2=384178&view=diff
==============================================================================
--- lenya/trunk/configure.sh (original)
+++ lenya/trunk/configure.sh Wed Mar 8 02:54:41 2006
@@ -21,22 +21,31 @@
else
S=':'
fi
+
+# ----- Check JAVA_HOME
+JAVA_HOME="$JAVA_HOME"
+if [ "$JAVA_HOME" = "" ];then
+ echo "ERROR: No JAVA_HOME set yet!"
+ echo " Have you installed JDK 1.4.2 or higher?"
+ echo ""
+ echo "NOTE: Apache Lenya does not work properly with JDK 1.5!"
+ exit 1
+fi
# ----- Ignore system CLASSPATH variable
OLD_CLASSPATH="$CLASSPATH"
unset CLASSPATH
CLASSPATH="`echo tools/configure/build/classes | tr ' ' $S`"
export CLASSPATH
-#echo "$CLASSPATH"
+#echo "DEBUG: $CLASSPATH"
DEFAULT_UI_TYPE=cmd
UI_TYPE=$1
if [ "$UI_TYPE" = "" ];then
UI_TYPE=$DEFAULT_UI_TYPE
fi
-#echo $UI_TYPE
+#echo "DEBUG: $UI_TYPE"
-echo "WARNING: This shell script has not been finished yet! Use at own risk ;-)"
PWD=`pwd`
if [ "$UI_TYPE" = "cmd" ];then
@@ -44,10 +53,16 @@
elif [ "$UI_TYPE" = "gui" ]; then
java org.apache.lenya.config.ConfigureGUI $PWD
else
- echo "No such User Interface: $UI_TYPE"
+ echo "ERROR: No such User Interface: $UI_TYPE"
exit 1
fi
ERR=$?
+
+echo ""
+echo "NOTE (for the advanced user): You might want to edit the local.* files manually, because there are often more parameters, than the ones which were presented!"
+
+echo ""
+echo "NOTE: Build Lenya now by running ./build.sh!"
# ----- Restore CLASSPATH
CLASSPATH="$OLD_CLASSPATH"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org