test/sun/net/www/protocol/jar/getcontenttype.sh

Print this page




  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  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
  23 # questions.
  24 #
  25 
  26 #
  27 
  28 if [ x"$TESTJAVA" = x ]; then 
  29         TESTJAVA=$1 
  30         shift 
  31 fi
  32 if [ x"$TESTCLASSES" = x ]; then TESTCLASSES=.; fi
  33 if [ x"$TESTSRC" = x ]; then TESTSRC=.; fi
  34 














  35 # now start the test
  36 ${TESTJAVA}/bin/java ${TESTVMOPTS} -Djava.ext.dirs=$TESTSRC -cp $TESTCLASSES GetContentType
  37 


  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  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
  23 # questions.
  24 #
  25 
  26 #
  27 
  28 if [ x"$TESTJAVA" = x ]; then 
  29         TESTJAVA=$1 
  30         shift 
  31 fi
  32 if [ x"$TESTCLASSES" = x ]; then TESTCLASSES=.; fi
  33 if [ x"$TESTSRC" = x ]; then TESTSRC=.; fi
  34 
  35 OS=`uname -s`;
  36 # Set classpath separator
  37 case "$OS" in
  38         Windows* | CYGWIN* )
  39         SEP=";"
  40         FS="\\"
  41         ;;
  42 
  43         * )
  44         SEP=":"
  45         FS="/"
  46         ;;
  47 esac
  48 
  49 # now start the test
  50 ${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${TESTSRC}${FS}resource.jar${SEP}${TESTCLASSES} GetContentType
  51