jsvnlook revision b1dce270ec218b8ad86ce6d745d295da038a5c88
561N/ABASEDIR=`dirname $0`/..
561N/ABASEDIR=`(cd "$BASEDIR"; pwd)`
1339N/A
561N/Acygwin=false;
561N/Adarwin=false;
919N/Acase "`uname`" in
919N/A CYGWIN*) cygwin=true ;;
919N/A Darwin*) darwin=true
919N/A if [ -z "$JAVA_VERSION" ] ; then
919N/A JAVA_VERSION="CurrentJDK"
919N/A else
919N/A echo "Using Java version: $JAVA_VERSION"
919N/A fi
919N/A if [ -z "$JAVA_HOME" ] ; then
919N/A JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
919N/A fi
919N/A ;;
919N/Aesac
919N/A
919N/Aif [ -z "$JAVA_HOME" ] ; then
919N/A if [ -r /etc/gentoo-release ] ; then
919N/A JAVA_HOME=`java-config --jre-home`
561N/A fi
561N/Afi
561N/A
561N/A# For Cygwin, ensure paths are in UNIX format before anything is touched
561N/Aif $cygwin ; then
561N/A [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
970N/A [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
970N/Afi
970N/A
970N/A# If a specific java binary isn't specified search for the standard 'java' binary
561N/Aif [ -z "$JAVACMD" ] ; then
1043N/A if [ -n "$JAVA_HOME" ] ; then
561N/A if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
911N/A # IBM's JDK on AIX uses strange locations for the executables
1043N/A JAVACMD="$JAVA_HOME/jre/sh/java"
1043N/A else
911N/A JAVACMD="$JAVA_HOME/bin/java"
1339N/A fi
1339N/A else
1339N/A JAVACMD=`which java`
561N/A fi
561N/Afi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly."
echo " We cannot execute $JAVACMD"
exit 1
fi
if [ -z "$SVNKIT_LIB" ]
then
SVNKIT_LIB="$BASEDIR"/lib
fi
CLASSPATH="$BASEDIR/conf"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/svnkit-1.8.5.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/sequence-library-1.0.2.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/antlr-runtime-3.4.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/sqljet-1.1.10.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jna-3.5.2.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/platform-3.5.2.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/trilead-ssh2-1.0.0-build217.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jsch.agentproxy.core-0.0.7.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jsch.agentproxy.usocket-jna-0.0.7.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jsch.agentproxy.usocket-nc-0.0.7.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jsch.agentproxy.sshagent-0.0.7.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jsch.agentproxy.pageant-0.0.7.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jsch.agentproxy.connector-factory-0.0.7.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/jsch.agentproxy.svnkit-trilead-ssh2-0.0.7.jar"
CLASSPATH=$CLASSPATH:"$SVNKIT_LIB/svnkit-cli-1.8.5.jar"
LOGGING_PROPERTIES_PATH="$BASEDIR/conf/logging.properties"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$HOME" ] && HOME=`cygpath --path --windows "$HOME"`
[ -n "$BASEDIR" ] && BASEDIR=`cygpath --path --windows "$BASEDIR"`
[ -n "$REPO" ] && REPO=`cygpath --path --windows "$REPO"`
[ -n "$LOGGING_PROPERTIES_PATH" ] && REPO=`cygpath --path --windows "$LOGGING_PROPERTIES_PATH"`
fi
EXTRA_JVM_ARGUMENTS="-Djava.util.logging.config.file=$LOGGING_PROPERTIES_PATH -Dsun.io.useCanonCaches=false"
exec "$JAVACMD" $JAVA_OPTS \
$EXTRA_JVM_ARGUMENTS \
-classpath "$CLASSPATH" \
org.tmatesoft.svn.cli.SVNLook \
"$@"