Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 13381d75d67ffe2e5359fb12f7794ba5 > files > 28

tomcat5-5.5.31-14.mga3.src.rpm

#!/bin/sh
# Small script that will refresh all tomcat jar repositories
# (c) Nicolas Mailhot, JPackage project 2003
# $Id$

if [ -z "$CATALINA_HOME" ]; then
    . @@@TCCONF@@@/tomcat5.conf
fi

if [ -z "$CATALINA_BASE" ]; then
    CATALINA_BASE="$CATALINA_HOME"
fi

# Load JAVA_HOME
[ -z "$JAVA_HOME" ] && JAVA_HOME=/usr/lib/jvm/java

export JAVA_HOME

# Relink tomcat jar repositories
for repository in $CATALINA_HOME/common/lib $CATALINA_HOME/common/endorsed \
                  $CATALINA_HOME/server/lib $CATALINA_BASE/shared/lib ; do
    rebuild-jar-repository $repository
done

for webapp in $(find $CATALINA_BASE/webapps -mindepth 1 -maxdepth 2 -type d) ; do
    [ -d "$webapp/WEB-INF/lib" ] && rebuild-jar-repository $webapp/WEB-INF/lib
done