File tomcat6-6.0.jspc of Package tomcat6.import5619

#!/bin/sh

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -----------------------------------------------------------------------------
# Script to run the Jasper "offline JSP compiler"
#   - mvyskocil reworked for SUSE tomcat6 package - see
#   https://bugzilla.novell.com/show_bug.cgi?id=653586
#
# $Id: jspc.sh 565193 2007-08-12 22:53:10Z markt $
# -----------------------------------------------------------------------------
 
PRGDIR=/usr/share/tomcat6/bin
EXECUTABLE=jasper.sh

# Check that target executable exists
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
  echo "Cannot find $PRGDIR/$EXECUTABLE"
  echo "This file is needed to run this program"
  exit 1
fi

if [ "$1" = "debug" ]; then
  shift
  exec "$PRGDIR"/"$EXECUTABLE" debug "$@"
else
  exec "$PRGDIR"/"$EXECUTABLE" jspc "$@"
fi
openSUSE Build Service is sponsored by