root/trunk/pfixcore/refresh.sh

Revision 3916, 0.9 kB (checked in by mtld, 3 months ago)

added webapp build mode, webapp reloading support, Spring-ApplicationContext? reloading support, Tomcat startup-configuration

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2
3 #####################################################################
4 # WebappAdminClient script for Spring-ApplicationContext refreshing #
5 #####################################################################
6
7 PFX_USAGE="Usage: $0 <project>|<host> ..."
8
9 if [ `dirname $0` != "." ]
10 then
11   echo "Script has to be started directly from within its owning directory!"
12   exit 1
13 fi
14
15 if [ $# -lt 1 ]
16 then
17   echo "Missing arguments! You must specify at least one project or host!"
18   echo "$PFX_USAGE"
19   exit 1
20 fi
21
22 PFX_DIR=`pwd`
23 PFX_PID=`ps --format "pid cmd" -C java | grep "\-Dcatalina.home=$PFX_DIR/projects/servletconf" | sed "s/ *\([0-9]\+\) \+.*/\1/"`
24
25 if [ -z $PFX_PID ]
26 then
27   echo "Can't find Java process using the ps command!"
28   exit 2
29 fi
30
31 PFX_LIBS=`find $PFX_DIR lib -name "*pfixcore*.jar" -printf "%p:"`
32 java -cp build:$PFX_LIBS org.pustefixframework.admin.WebappAdminClient -p $PFX_PID -c refresh $*
Note: See TracBrowser for help on using the browser.