root/tags/release-0.13.4/pfixcore/refresh.sh

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