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/02/22 14:50:47 UTC

svn commit: r379770 - /lenya/trunk/lenya.sh

Author: michi
Date: Wed Feb 22 05:50:46 2006
New Revision: 379770

URL: http://svn.apache.org/viewcvs?rev=379770&view=rev
Log:
Jetty ports are configurable for shell script

Modified:
    lenya/trunk/lenya.sh

Modified: lenya/trunk/lenya.sh
URL: http://svn.apache.org/viewcvs/lenya/trunk/lenya.sh?rev=379770&r1=379769&r2=379770&view=diff
==============================================================================
--- lenya/trunk/lenya.sh (original)
+++ lenya/trunk/lenya.sh Wed Feb 22 05:50:46 2006
@@ -89,6 +89,9 @@
 
 if [ "$LENYA_HOME" = "" ] ; then
   LENYA_HOME='.'
+  # TODO: Make it startable from any directory
+  #LENYA_HOME=`dirname $0`
+  #echo "LENYA_HOME: $LENYA_HOME"
 fi
 
 if [ "$LENYA_WEBAPP_HOME" = "" ] ; then
@@ -107,13 +110,24 @@
   LENYA_LIB="$LENYA_WEBAPP_HOME/WEB-INF/lib"
 fi
 
+
+# Set Jetty Port
+if [ -f local.build.properties ] ; then
+  JETTY_PORT=`grep web.app.server.jetty.port $LENYA_HOME/local.build.properties | grep -v "#" | sed -e 's/web\.app\.server\.jetty\.port=//'`
+fi
 if [ "$JETTY_PORT" = "" ] ; then
-  JETTY_PORT='8888'
+  JETTY_PORT=`grep web.app.server.jetty.port $LENYA_HOME/build.properties | grep -v "#" | sed -e 's/web\.app\.server\.jetty\.port=//'`
 fi
+echo "INFO: Jetty Port is $JETTY_PORT"
 
+# Set Jetty Admin Port
+if [ -f local.build.properties ] ; then
+  JETTY_ADMIN_PORT=`grep web.app.server.jetty.admin.port $LENYA_HOME/local.build.properties | grep -v "#" | sed -e 's/web\.app\.server\.jetty\.admin\.port=//'`
+fi
 if [ "$JETTY_ADMIN_PORT" = "" ] ; then
-  JETTY_ADMIN_PORT='8889'
+  JETTY_ADMIN_PORT=`grep web.app.server.jetty.admin.port $LENYA_HOME/build.properties | grep -v "#" | sed -e 's/web\.app\.server\.jetty\.admin\.port=//'`
 fi
+echo "INFO: Jetty Admin Port is $JETTY_ADMIN_PORT"
 
 if [ "$JAVA_DEBUG_ARGS" = "" ] ; then
   JAVA_DEBUG_ARGS='-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org