From ffcdea2610bf7ca44f23f32de998b65f1db17bb9 Mon Sep 17 00:00:00 2001 From: Dylan Carlson Date: Sat, 24 May 2003 10:24:49 +0000 Subject: this actually works now. :/ --- dev-java/jswat/files/digest-jswat-2.17 | 1 - dev-java/jswat/files/digest-jswat-2.17-r1 | 1 + dev-java/jswat/files/jswat2 | 45 +++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) delete mode 100644 dev-java/jswat/files/digest-jswat-2.17 create mode 100644 dev-java/jswat/files/digest-jswat-2.17-r1 create mode 100644 dev-java/jswat/files/jswat2 (limited to 'dev-java/jswat/files') diff --git a/dev-java/jswat/files/digest-jswat-2.17 b/dev-java/jswat/files/digest-jswat-2.17 deleted file mode 100644 index aa5ca6c524bf..000000000000 --- a/dev-java/jswat/files/digest-jswat-2.17 +++ /dev/null @@ -1 +0,0 @@ -MD5 49d9959b7d70113afb6d43b92d137615 jswat-src-2.17.tar.gz 1579760 diff --git a/dev-java/jswat/files/digest-jswat-2.17-r1 b/dev-java/jswat/files/digest-jswat-2.17-r1 new file mode 100644 index 000000000000..aa5ca6c524bf --- /dev/null +++ b/dev-java/jswat/files/digest-jswat-2.17-r1 @@ -0,0 +1 @@ +MD5 49d9959b7d70113afb6d43b92d137615 jswat-src-2.17.tar.gz 1579760 diff --git a/dev-java/jswat/files/jswat2 b/dev-java/jswat/files/jswat2 new file mode 100644 index 000000000000..9c4ceae42a0b --- /dev/null +++ b/dev-java/jswat/files/jswat2 @@ -0,0 +1,45 @@ +#!/bin/sh +# jswat Launch Script +# Author: Dylan Carlson +# May 2003 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jswat/files/jswat2,v 1.1 2003/05/24 10:24:45 absinthe Exp $ + +JSWAT_VER="2.17" + +JAVA_HOME=`/usr/bin/java-config --jdk-home` +if [ -z "${JAVA_HOME}" ] ; then + JAVA_HOME=`/usr/bin/java-config --jre-home` +fi +CLASSPATH="${JAVA_HOME}/lib/tools.jar:`/usr/bin/java-config --classpath=jswat-${JSWAT_VER}`:${CLASSPATH}" + +if [ ! -f ${JAVA_HOME}/bin/java ] ; then + echo " " + echo "I tried using the following Java Runtime:" + echo "${JAVA_HOME}/bin/java" + echo " " + echo "Java Runtime missing. Please run java-config(1) and ensure" + echo "your environment is configured properly." + exit 1 +else + echo " " + echo "Using Java Runtime:" + echo "${JAVA_HOME}/bin/java" + echo " " + echo "Using CLASSPATH:" + echo "${CLASSPATH}" + echo " " +fi + +# Make sure we're using 1.4 JDK + +if [ -z `echo ${JAVA_HOME} | grep "1.4"` ] ; then + echo "!!! JDK 1.4 is required for this version of " + echo "!!! jswat (${JSWAT_VER}). " + echo "!!! " + echo "!!! Please run java-config(1) and configure " + echo "!!! your system to use a 1.4 or later JDK. " + echo " " + exit 1 +fi + +${JAVA_HOME}/bin/java com.bluemarsh.jswat.Main $@ -- cgit v1.2.3-65-gdbad