equal
deleted
inserted
replaced
31 # Command-line usage: sh basic.sh /path/to/build |
31 # Command-line usage: sh basic.sh /path/to/build |
32 |
32 |
33 if [ -z "$TESTJAVA" ]; then |
33 if [ -z "$TESTJAVA" ]; then |
34 if [ $# -lt 1 ]; then exit 1; fi |
34 if [ $# -lt 1 ]; then exit 1; fi |
35 TESTJAVA="$1"; shift |
35 TESTJAVA="$1"; shift |
|
36 COMPILEJAVA="${TESTJAVA}" |
36 TESTSRC="`pwd`" |
37 TESTSRC="`pwd`" |
37 TESTCLASSES="`pwd`" |
38 TESTCLASSES="`pwd`" |
38 fi |
39 fi |
39 |
40 |
40 JAVA="$TESTJAVA/bin/java" |
41 JAVA="$TESTJAVA/bin/java" |
41 JAR="$TESTJAVA/bin/jar" |
42 JAR="$COMPILEJAVA/bin/jar" |
42 |
43 |
43 OS=`uname -s` |
44 OS=`uname -s` |
44 case "$OS" in |
45 case "$OS" in |
45 SunOS | Darwin ) |
46 SunOS | Darwin ) |
46 SEP=':' ;; |
47 SEP=':' ;; |
66 >$JARD/META-INF/services/FooService |
67 >$JARD/META-INF/services/FooService |
67 cp $TESTCLASSES/FooProvider$n.class $JARD |
68 cp $TESTCLASSES/FooProvider$n.class $JARD |
68 if [ $n = 3 ]; then |
69 if [ $n = 3 ]; then |
69 cp $TESTCLASSES/FooService.class $JARD |
70 cp $TESTCLASSES/FooService.class $JARD |
70 fi |
71 fi |
71 (cd $JARD; "$JAR" -cf ../p$n.jar *) |
72 (cd $JARD; "$JAR" ${TESTTOOLVMOPTS} -cf ../p$n.jar *) |
72 done |
73 done |
73 |
74 |
74 mv p3.jar $EXTD |
75 mv p3.jar $EXTD |
75 |
76 |
76 cp $TESTCLASSES/Load.class $TESTD |
77 cp $TESTCLASSES/Load.class $TESTD |