|
|
Choosing A Webhost: |
svn commit: r379770 - /lenya/trunk/lenya.sh: msg#00186cms.lenya.cvs
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'
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r379769 - /lenya/trunk/build.properties, michi |
|---|---|
| Next by Date: | svn commit: r379771 - /lenya/trunk/src/targets/message-build.xml, michi |
| Previous by Thread: | svn commit: r379769 - /lenya/trunk/build.properties, michi |
| Next by Thread: | svn commit: r379771 - /lenya/trunk/src/targets/message-build.xml, michi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |