test/java/lang/ClassLoader/getdotresource.sh

Print this page

        

*** 21,37 **** # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. # - # - if [ x"$TESTJAVA" = x ]; then TESTJAVA=$1 shift fi if [ x"$TESTCLASSES" = x ]; then TESTCLASSES=.; fi if [ x"$TESTSRC" = x ]; then TESTSRC=.; fi # now start the test ! ${TESTJAVA}/bin/java ${TESTVMOPTS} -Djava.ext.dirs=$TESTSRC -cp $TESTCLASSES GetDotResource --- 21,48 ---- # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. # if [ x"$TESTJAVA" = x ]; then TESTJAVA=$1 shift fi if [ x"$TESTCLASSES" = x ]; then TESTCLASSES=.; fi if [ x"$TESTSRC" = x ]; then TESTSRC=.; fi + OS=`uname -s` + case "$OS" in + Windows* | CYGWIN* ) + PS=";" + FS="\\" + ;; + * ) + PS=":" + FS="/" + ;; + esac + # now start the test ! ${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${TESTSRC}${FS}resource.jar${PS}${TESTCLASSES} GetDotResource !