test/tools/launcher/ClassPathWildCard.sh

Print this page




 128   # Throw some class files into the mix
 129   cp TestC/*.class JarDir
 130   cp TestD/*.class JarDir
 131 
 132   rm -f TestC${OUTEXT}
 133   $JAVA${variant} -classpath JarDir${PATHSEP}JarDir/"*"$NOOP TestC || exit 1
 134   CheckFail TestC
 135 
 136   rm -f TestD${OUTEXT}
 137   $JAVA${variant} -classpath JarDir${PATHSEP}JarDir/"*"$NOOP TestD || exit 1
 138   CheckFail TestD
 139 }
 140 
 141 CreateJarFiles A
 142 CreateJarFiles B
 143 CreateClassFiles C
 144 CreateClassFiles D
 145 
 146 OS=`uname -s`
 147 case $OS in 
 148     Windows*|Cygwin*)
 149         PATHSEP=";"
 150         ExecJava "" "${PATHSEP}NOOPDIR"
 151         ExecJava "w" "${PATHSEP}NOOPDIR"
 152         break
 153     ;;
 154 
 155     *)
 156         PATHSEP=":"
 157         ExecJava "" ""
 158         break
 159     ;;
 160 esac
 161 
 162 exit 0


 128   # Throw some class files into the mix
 129   cp TestC/*.class JarDir
 130   cp TestD/*.class JarDir
 131 
 132   rm -f TestC${OUTEXT}
 133   $JAVA${variant} -classpath JarDir${PATHSEP}JarDir/"*"$NOOP TestC || exit 1
 134   CheckFail TestC
 135 
 136   rm -f TestD${OUTEXT}
 137   $JAVA${variant} -classpath JarDir${PATHSEP}JarDir/"*"$NOOP TestD || exit 1
 138   CheckFail TestD
 139 }
 140 
 141 CreateJarFiles A
 142 CreateJarFiles B
 143 CreateClassFiles C
 144 CreateClassFiles D
 145 
 146 OS=`uname -s`
 147 case $OS in 
 148     Windows*|CYGWIN*)
 149         PATHSEP=";"
 150         ExecJava "" "${PATHSEP}NOOPDIR"
 151         ExecJava "w" "${PATHSEP}NOOPDIR"
 152         break
 153     ;;
 154 
 155     *)
 156         PATHSEP=":"
 157         ExecJava "" ""
 158         break
 159     ;;
 160 esac
 161 
 162 exit 0