jdk/test/java/lang/ClassLoader/getdotresource.sh
changeset 27565 729f9700483a
parent 23010 6dadb192ad81
child 32427 c22b7e41adf3
equal deleted inserted replaced
27564:eaaa79b68cd5 27565:729f9700483a
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22 # or visit www.oracle.com if you need additional information or have any
    22 # or visit www.oracle.com if you need additional information or have any
    23 # questions.
    23 # questions.
    24 #
    24 #
    25 
    25 
    26 #
       
    27 
       
    28 if [ x"$TESTJAVA" = x ]; then 
    26 if [ x"$TESTJAVA" = x ]; then 
    29         TESTJAVA=$1 
    27         TESTJAVA=$1 
    30         shift 
    28         shift 
    31 fi
    29 fi
    32 if [ x"$TESTCLASSES" = x ]; then TESTCLASSES=.; fi
    30 if [ x"$TESTCLASSES" = x ]; then TESTCLASSES=.; fi
    33 if [ x"$TESTSRC" = x ]; then TESTSRC=.; fi
    31 if [ x"$TESTSRC" = x ]; then TESTSRC=.; fi
    34 
    32 
       
    33 OS=`uname -s`
       
    34 case "$OS" in
       
    35   Windows* | CYGWIN* )
       
    36     PS=";"
       
    37     FS="\\"
       
    38     ;;
       
    39   * )
       
    40     PS=":"
       
    41     FS="/"
       
    42     ;;
       
    43 esac
       
    44 
    35 # now start the test
    45 # now start the test
    36 ${TESTJAVA}/bin/java ${TESTVMOPTS} -Djava.ext.dirs=$TESTSRC -cp $TESTCLASSES GetDotResource
    46 ${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${TESTSRC}${FS}resource.jar${PS}${TESTCLASSES} GetDotResource
    37 
    47 
       
    48