tool-wrapper-using-launcher.sh 784 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. # -----------------------------------------------------------------------------
  3. #
  4. # Script for running the Catalina tool wrapper using the Launcher
  5. #
  6. # -----------------------------------------------------------------------------
  7. # Resolve links - $0 may be a softlink
  8. PRG="$0"
  9. while [ -h "$PRG" ]; do
  10. ls=`ls -ld "$PRG"`
  11. link=`expr "$ls" : '.*-> \(.*\)$'`
  12. if expr "$link" : '.*/.*' > /dev/null; then
  13. PRG="$link"
  14. else
  15. PRG=`dirname "$PRG"`/"$link"
  16. fi
  17. done
  18. # Get standard environment variables
  19. PRGDIR=`dirname "$PRG"`
  20. if [ -r "$PRGDIR"/setenv.sh ]; then
  21. . "$PRGDIR"/setenv.sh
  22. fi
  23. # Execute the Launcher using the "tool-wrapper" target
  24. exec "$JAVA_HOME"/bin/java -classpath "$PRGDIR" LauncherBootstrap -launchfile catalina.xml -verbose tool-wrapper "$@"