Wednesday, January 27, 2010

Jettys missing

Jetty comes with a very nice Password encrypting command. Unfortunately, there is no to call it, and you have to manually find out where it is defined. Also, the documentation is for Jetty 6 only, and the names of the classes and libraries have changed in Jetty 7.

Here is the missing for Jetty 7:


# look for JETTY_HOME
if [ -z "$JETTY_HOME" ] 
  cd $(dirname "$0")
  cd - > /dev/null
  JETTY_HOME_1=$(dirname "$JETTY_HOME_1")

java -cp $JETTY_HOME/lib/jetty-http-7.0.1.v20091125.jar:\
$JETTY_HOME/lib/jetty-util-7.0.1.v20091125.jar \ $*

Please note that the JETTY_HOME detection is also changed from the original jetty shell scripts to be more sane.

No comments:

Post a Comment