incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: Development with Eclipse and Tomcat
Date Sun, 06 Apr 2008 18:40:39 GMT
> I'm including the script, in case anyone finds it interesting.  You  
> would probably need to tweak it to your setup.

Dang, looks like it was stripped.  Here's a cut-n-paste version.

#!/bin/sh
#
#  A very simple installer script which restarts tomcat as well.
#

JAVA_VERSION=1.5
JSPWIKI_DIR=$HOME/Projects/JSPWiki/

webapp="JSPWiki"

private=1

case "$1" in
     3)
     TOMCAT_HOME=$HOME/Java/jakarta-tomcat-3.2.3
     shift
     ;;

     4)
     TOMCAT_HOME=$HOME/Java/jakarta-tomcat-4.1.18
     shift
     ;;

     5.0)
     TOMCAT_HOME=$HOME/Java/jakarta-tomcat-5.0.28
     JAVA_VERSION=1.4
     shift
     ;;

     *)
     TOMCAT_HOME=$HOME/Java/apache-tomcat-5.5.16

     ;;

esac

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ 
$JAVA_VERSION/Home/
#TOMCAT_HOME=$HOME/Java/jakarta-tomcat-5.0.28

$TOMCAT_HOME/bin/shutdown.sh

ant $@ clean
ant $@ war

rm -rf $TOMCAT_HOME/webapps/$webapp
cp /tmp/jalkanen/JSPWiki/install/*.war $TOMCAT_HOME/webapps

cd $TOMCAT_HOME/webapps
rm -rf $webapp
mkdir $webapp
cd $webapp
jar xf ../JSPWiki.war

echo "JSPWiki Release is `java -cp ${TOMCAT_HOME}/webapps/${webapp}/ 
WEB-INF/lib/JSPWiki.jar com.ecyrd.jspwiki.Release`"

#cp -r $HOME/Projects/JSPWiki/src/webdocs/images/godiagram images/

#
#  Copy private things.
#
if [ $private -eq 1 ]
then
     cp -v $JSPWIKI_DIR/jspwiki.properties $TOMCAT_HOME/webapps/ 
$webapp/WEB-INF/
     cp -v $JSPWIKI_DIR/jspwiki.policy $TOMCAT_HOME/webapps/$webapp/ 
WEB-INF/
     cp -v $JSPWIKI_DIR/jspwiki.jaas $TOMCAT_HOME/webapps/$webapp/WEB- 
INF/
     cp -v $JSPWIKI_DIR/web.xml $TOMCAT_HOME/webapps/$webapp/WEB-INF/
     cp -v $JSPWIKI_DIR/filters.xml $TOMCAT_HOME/webapps/$webapp/WEB- 
INF/classes/
#    cp -vr $HOME/Projects/FCKEditor/ $TOMCAT_HOME/webapps/JSPWiki/ 
scripts/fckeditor
fi

#export DYLD_LIBRARY_PATH=/Applications/jprofiler4/bin/macos
#export DYLD_LIBRARY_PATH=/usr/local/apr/lib

export CATALINA_OPTS="-Xmx512m"
#export JAVA_OPTS=-XrunpiAgent:server=enabled
#export JAVA_OPTS="-Xint -agentlib:jprofilerti=port=8849  - 
Xbootclasspath/a:/Applications/jprofiler4/bin/agent.jar"
export CATALINA_OPTS="-Dcom.sun.management.jmxremote - 
Dcom.sun.management.jmxremote.authenticate=false -Xmx512m -Xms256m"

#export CATALINA_OPTS="-Djava.security.policy=${HOME}/Java/ 
jspwiki.policy ${CATALINA_OPTS}"
#export CATALINA_OPTS="-Djava.security.policy=${TOMCAT_HOME}/webapps/ 
$webapp/WEB-INF/jspwiki.policy ${CATALINA_OPTS}"
#export CATALINA_OPTS="-Djava.security.auth.login.config==$ 
{TOMCAT_HOME}/webapps/$webapp/WEB-INF/jspwiki.jaas ${CATALINA_OPTS}"
#export CATALINA_OPTS="-Djava.security.policy=${HOME}/Documents/ 
Eclipse/JSPWiki-head/etc/jspwiki.policy ${CATALINA_OPTS}"

#cp ${HOME}/Java/jspwiki.policy $TOMCAT_HOME/webapps/JSPWiki/WEB-INF/

#$TOMCAT_HOME/bin/startup_jprofiler.sh
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ 
1.6/Home/
#rm -f $TOMCAT_HOME/webapps/$webapp/WEB-INF/lib/jmxri.jar
$TOMCAT_HOME/bin/catalina.sh jpda start
#$TOMCAT_HOME/bin/catalina.sh start

echo "Done - now browse to http://localhost:8080/JSPWiki/"

Mime
View raw message