Skip to content

Commit

Permalink
Made it actually work :-)
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9722 72102866-910b-0410-8b05-ffd578937521
  • Loading branch information
Nicola Pero committed Apr 27, 2001
1 parent 698d48d commit fa68150
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions java-executable.template
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@
#
tool=$0

#
# The directory we are in
#
tool_dir=`dirname $tool`

#
# The java class to execute - harcoded when the template is intalled
# by java-tool.make
# by java-tool.make.
#
java_obj_file=JAVA_OBJ_FILE

#
# Check that the java class exists
#
full_java_obj_file=`dirname $tool`${java_obj_file}
full_java_obj_file=${tool_dir}/Java/${java_obj_file}.class

if [ -z "$full_java_obj_file" ]; then
if [ ! -f "$full_java_obj_file" ]; then
echo "$tool: Installation problem: Can't find java class $java_obj_file !"
exit 1
fi
Expand Down Expand Up @@ -84,6 +89,10 @@ else
fi
fi

if ( echo ${CLASSPATH} | grep -v "\./" >/dev/null ); then
CLASSPATH="$CLASSPATH:./"
fi

export CLASSPATH

#
Expand All @@ -101,5 +110,6 @@ fi
#
# Run java on the object file
#
cd ${tool_dir}/Java
exec $java_vm $java_obj_file "$@"

0 comments on commit fa68150

Please sign in to comment.