diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-05-15 15:44:54 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-05-15 15:44:54 +0000 |
commit | 10830eaae2955766378369b8d1bcc0e6963b9b7f (patch) | |
tree | 595d0d162d94eda17062d4d13710378930b7ac7f /test/files/jvm/mkAnnotationsJar.sh | |
parent | fbf991833d5ec0d9890ac1e7df9f53209e313552 (diff) | |
download | scala-10830eaae2955766378369b8d1bcc0e6963b9b7f.tar.gz scala-10830eaae2955766378369b8d1bcc0e6963b9b7f.tar.bz2 scala-10830eaae2955766378369b8d1bcc0e6963b9b7f.zip |
1.4-related cleanup and reorganization.
Removed a bunch of now useless 1.4 code, merged
back jvm5-specific partest tests into the
general jvm tests, documentation updates.
Diffstat (limited to 'test/files/jvm/mkAnnotationsJar.sh')
-rwxr-xr-x | test/files/jvm/mkAnnotationsJar.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/files/jvm/mkAnnotationsJar.sh b/test/files/jvm/mkAnnotationsJar.sh new file mode 100755 index 0000000000..0cd5e631a7 --- /dev/null +++ b/test/files/jvm/mkAnnotationsJar.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +############################################################################## +# Author : Nikolay Mihaylov +# Revision: $Id$ +############################################################################## + +############################################################################## +# variables + +OBJDIR=./classes + +if [ -z "${JAVA_HOME}" ]; then + echo "environment variable JAVA_HOME is undefined." + exit +fi + +JAVAC=${JAVA_HOME}/bin/javac +JAVAC_OPTIONS="-source 1.5 -target 1.5" + +JAR=${JAVA_HOME}/bin/jar + +############################################################################## +# commands + +mkdir -p ${OBJDIR} +${JAVAC} ${JAVAC_OPTIONS} -d ${OBJDIR} SourceAnnotation.java NestedAnnotations.java +${JAR} cf ../lib/annotations.jar -C ${OBJDIR} . +rm -rf ${OBJDIR} |