~james-page/ubuntu/natty/tomcat6/fix-662588

« back to all changes in this revision

Viewing changes to bin/setclasspath.sh

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Claude, Ludovic Claude, Jason Brittain
  • Date: 2010-02-09 23:06:51 UTC
  • mfrom: (2.2.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100209230651-qiv9397g7txhrh99
Tags: 6.0.24-1
[ Ludovic Claude ]
* New upstream version
* Update the POM files for the new version of Tomcat
* Bump up Standards-Version to 3.8.4
* Refresh patches deploy-webapps-build-xml.patch and var_loaders.patch
* Remove patch fix_context_name.patch as it has been applied upstream
* Fix the installation of servlet-api-2.5.jar: the jar
  goes to /usr/share/java as in older versions (6.0.20-2)
  and links to the jar are added to /usr/share/maven-repo
* Moved NEWS.Debian into README.Debian
* Add a link from /usr/share/doc/tomcat6-common/README.Debian to
  /usr/share/doc/tomcat6/README.Debian to include a minimum of
  documentation in the tomcat6 package and add some useful notes. 
  (Closes: #563937, #563939)
* Remove poms from the Debian packaging, use upstream pom files

[ Jason Brittain ]
* Fixed a bug in the init script: When a start fails, the PID file was
  being left in place.  Now the init script makes sure it is deleted.
* Fixed a packaging bug that results in the ROOT webapp not being properly
  installed after an uninstall, then a reinstall.
* control: Corrected a couple of comments (no functional change).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# -----------------------------------------------------------------------------
19
19
#  Set CLASSPATH and Java options
20
20
#
21
 
#  $Id: setclasspath.sh 758165 2009-03-25 07:22:44Z mturk $
 
21
#  $Id: setclasspath.sh 795037 2009-07-17 10:52:16Z markt $
22
22
# -----------------------------------------------------------------------------
23
23
 
24
 
# First clear out the user classpath
25
 
CLASSPATH=
26
 
 
27
24
# Make sure prerequisite environment variables are set
28
25
if [ -z "$JAVA_HOME" -a -z "$JRE_HOME" ]; then
29
26
  # Bugzilla 37284 (reviewed).
59
56
fi
60
57
 
61
58
# If we're running under jdb, we need a full jdk.
62
 
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
 
59
if [ "$1" = "debug" ] ; then
63
60
  if [ "$os400" = "true" ]; then
64
61
    if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/javac ]; then
65
62
      echo "The JAVA_HOME environment variable is not defined correctly"
101
98
  JAVA_ENDORSED_DIRS="$BASEDIR"/endorsed
102
99
fi
103
100
 
104
 
# Set standard CLASSPATH
105
 
if [ "$1" = "javac" ] ; then
106
 
  if [ ! -f "$JAVA_HOME"/lib/tools.jar ]; then
107
 
    echo "Can't find tools.jar in JAVA_HOME"
108
 
    echo "Need a JDK to run javac"
109
 
    exit 1
110
 
  fi
111
 
fi
112
 
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
113
 
  if [ -f "$JAVA_HOME"/lib/tools.jar ]; then
114
 
    CLASSPATH="$JAVA_HOME"/lib/tools.jar
115
 
  fi
116
 
fi
117
 
 
118
101
# OSX hack to CLASSPATH
119
102
JIKESPATH=
120
103
if [ `uname -s` = "Darwin" ]; then
131
114
if [ "$os400" != "true" ]; then
132
115
  _RUNJDB="$JAVA_HOME"/bin/jdb
133
116
fi
134
 
_RUNJAVAC="$JAVA_HOME"/bin/javac