Thu, 10 Oct 2013 14:58:04 +0200
8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj
duke@1 | 1 | #!/bin/sh |
duke@1 | 2 | |
duke@1 | 3 | # |
ohair@554 | 4 | # Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 5 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 6 | # |
duke@1 | 7 | # This code is free software; you can redistribute it and/or modify it |
duke@1 | 8 | # under the terms of the GNU General Public License version 2 only, as |
duke@1 | 9 | # published by the Free Software Foundation. |
duke@1 | 10 | # |
duke@1 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | # accompanied this code). |
duke@1 | 16 | # |
duke@1 | 17 | # You should have received a copy of the GNU General Public License version |
duke@1 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | # |
ohair@554 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@554 | 23 | # questions. |
duke@1 | 24 | # |
duke@1 | 25 | |
duke@1 | 26 | # |
duke@1 | 27 | # @test |
duke@1 | 28 | # @bug 4758537 4809833 |
duke@1 | 29 | # @summary Test that javac and java find files in similar ways |
duke@1 | 30 | # @author Martin Buchholz |
duke@1 | 31 | # |
duke@1 | 32 | # @run shell/timeout=600 MineField.sh |
duke@1 | 33 | |
duke@1 | 34 | # To run this test manually, simply do ./MineField.sh |
duke@1 | 35 | |
duke@1 | 36 | #---------------------------------------------------------------- |
duke@1 | 37 | # The search order for classes used by both java and javac is: |
duke@1 | 38 | # |
duke@1 | 39 | # -Xbootclasspath/p:<path> |
duke@1 | 40 | # -endorseddirs <dirs> or -Djava.endorsed.dirs=<dirs> (search for jar/zip only) |
duke@1 | 41 | # -bootclasspath <path> or -Xbootclasspath:<path> |
duke@1 | 42 | # -Xbootclasspath/a:<path> |
duke@1 | 43 | # -extdirs <dirs> or -Djava.ext.dirs=<dirs> (search for jar/zip only) |
duke@1 | 44 | # -classpath <path>, -cp <path>, env CLASSPATH=<path> |
duke@1 | 45 | # |
duke@1 | 46 | # Peculiarities of the class file search: |
duke@1 | 47 | # - Empty elements of the (user) classpath default to ".", |
duke@1 | 48 | # while empty elements of other paths are ignored. |
duke@1 | 49 | # - Only for the user classpath is an empty string value equivalent to "." |
duke@1 | 50 | # - Specifying a bootclasspath on the command line obliterates any |
duke@1 | 51 | # previous -Xbootclasspath/p: or -Xbootclasspath/a: command line flags. |
duke@1 | 52 | #---------------------------------------------------------------- |
duke@1 | 53 | |
duke@1 | 54 | . ${TESTSRC-.}/Util.sh |
duke@1 | 55 | |
duke@1 | 56 | set -u |
duke@1 | 57 | |
duke@1 | 58 | BCP=`DefaultBootClassPath` |
duke@1 | 59 | |
duke@1 | 60 | #---------------------------------------------------------------- |
duke@1 | 61 | # Prepare the "Minefield" |
duke@1 | 62 | #---------------------------------------------------------------- |
duke@1 | 63 | Cleanup() { |
duke@1 | 64 | Sys rm -rf GooSrc GooJar GooZip GooClass |
duke@1 | 65 | Sys rm -rf BadSrc BadJar BadZip BadClass |
duke@1 | 66 | Sys rm -rf OneDir *.class Main.java MANIFEST.MF |
duke@1 | 67 | } |
duke@1 | 68 | |
duke@1 | 69 | Cleanup |
duke@1 | 70 | Sys mkdir GooSrc GooJar GooZip GooClass |
duke@1 | 71 | Sys mkdir BadSrc BadJar BadZip BadClass |
duke@1 | 72 | |
duke@1 | 73 | echo 'public class Lib {public static void f(){}}' > Lib.java |
duke@1 | 74 | Sys "$javac" ${TESTTOOLVMOPTS} Lib.java |
duke@1 | 75 | Sys "$jar" cf GooJar/Lib.jar Lib.class |
duke@1 | 76 | Sys "$jar" cf GooZip/Lib.zip Lib.class |
duke@1 | 77 | Sys mv Lib.class GooClass/. |
duke@1 | 78 | Sys mv Lib.java GooSrc/. |
duke@1 | 79 | CheckFiles GooZip/Lib.zip GooJar/Lib.jar GooSrc/Lib.java |
duke@1 | 80 | |
duke@1 | 81 | echo 'public class Lib {/* Bad */}' > Lib.java |
duke@1 | 82 | Sys "$javac" ${TESTTOOLVMOPTS} Lib.java |
duke@1 | 83 | Sys "$jar" cf BadJar/Lib.jar Lib.class |
duke@1 | 84 | Sys "$jar" cf BadZip/Lib.zip Lib.class |
duke@1 | 85 | Sys mv Lib.class BadClass/. |
duke@1 | 86 | Sys mv Lib.java BadSrc/. |
duke@1 | 87 | CheckFiles BadZip/Lib.zip BadJar/Lib.jar BadSrc/Lib.java |
duke@1 | 88 | |
duke@1 | 89 | echo 'public class Main {public static void main(String[] a) {Lib.f();}}' > Main.java |
duke@1 | 90 | |
duke@1 | 91 | #---------------------------------------------------------------- |
duke@1 | 92 | # Verify that javac class search order is the same as java's |
duke@1 | 93 | #---------------------------------------------------------------- |
duke@1 | 94 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 95 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 96 | -J-Djava.endorsed.dirs="GooJar" \ |
duke@1 | 97 | Main.java |
duke@1 | 98 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 99 | -Xbootclasspath/p:"GooClass${PS}BadJar/Lib.jar" \ |
duke@1 | 100 | -J-Djava.endorsed.dirs="BadJar${PS}GooZip" \ |
duke@1 | 101 | Main.java |
duke@1 | 102 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 103 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 104 | -Djava.endorsed.dirs="GooJar" \ |
duke@1 | 105 | Main |
duke@1 | 106 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 107 | -Xbootclasspath/p:"GooClass${PS}BadJar/Lib.jar" \ |
duke@1 | 108 | -Djava.endorsed.dirs="BadJar${PS}GooZip" \ |
duke@1 | 109 | Main |
duke@1 | 110 | |
duke@1 | 111 | #---------------------------------------------------------------- |
duke@1 | 112 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 113 | -Xbootclasspath/p:"GooClass" \ |
duke@1 | 114 | -bootclasspath "$BCP${PS}BadZip/Lib.zip" \ |
duke@1 | 115 | Main.java |
duke@1 | 116 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 117 | -Xbootclasspath/p:"BadClass${PS}GooClass" \ |
duke@1 | 118 | -bootclasspath "$BCP${PS}GooZip/Lib.zip${PS}BadClass" \ |
duke@1 | 119 | Main.java |
duke@1 | 120 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 121 | -Xbootclasspath/p:"BadJar/Lib.jar" \ |
duke@1 | 122 | -Xbootclasspath:"$BCP${PS}GooClass" \ |
duke@1 | 123 | Main.java |
duke@1 | 124 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 125 | -Xbootclasspath/p:"GooClass" \ |
duke@1 | 126 | -Xbootclasspath:"$BCP${PS}BadZip/Lib.zip" \ |
duke@1 | 127 | Main |
duke@1 | 128 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 129 | -Xbootclasspath/p:"BadClass${PS}GooClass" \ |
duke@1 | 130 | -Xbootclasspath:"$BCP${PS}GooZip/Lib.zip${PS}BadClass" \ |
duke@1 | 131 | Main |
duke@1 | 132 | |
duke@1 | 133 | #---------------------------------------------------------------- |
duke@1 | 134 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 135 | -bootclasspath "$BCP${PS}GooZip/Lib.zip" \ |
duke@1 | 136 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 137 | Main.java |
duke@1 | 138 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 139 | -bootclasspath "$BCP${PS}BadZip/Lib.zip" \ |
duke@1 | 140 | -Xbootclasspath/p:"GooClass${PS}BadJar/Lib.jar" \ |
duke@1 | 141 | Main.java |
duke@1 | 142 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 143 | -Xbootclasspath:"$BCP${PS}GooClass" \ |
duke@1 | 144 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 145 | Main |
duke@1 | 146 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 147 | -Xbootclasspath:"$BCP${PS}BadClass" \ |
duke@1 | 148 | -Xbootclasspath/p:"GooClass${PS}BadJar/Lib.jar" \ |
duke@1 | 149 | Main |
duke@1 | 150 | |
duke@1 | 151 | #---------------------------------------------------------------- |
duke@1 | 152 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 153 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 154 | -Xbootclasspath/a:"GooClass" \ |
duke@1 | 155 | Main.java |
duke@1 | 156 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 157 | -Xbootclasspath/p:"GooClass${PS}BadClass" \ |
duke@1 | 158 | -Xbootclasspath/a:"BadClass" \ |
duke@1 | 159 | Main.java |
duke@1 | 160 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 161 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 162 | -Xbootclasspath/a:"GooClass" \ |
duke@1 | 163 | Main |
duke@1 | 164 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 165 | -Xbootclasspath/p:"GooClass${PS}BadClass" \ |
duke@1 | 166 | -Xbootclasspath/a:"BadClass" \ |
duke@1 | 167 | Main |
duke@1 | 168 | |
duke@1 | 169 | #---------------------------------------------------------------- |
duke@1 | 170 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 171 | -Xbootclasspath/p:"GooClass" \ |
duke@1 | 172 | -J-Djava.endorsed.dirs="BadZip" \ |
duke@1 | 173 | -bootclasspath "GooClass${PS}$BCP" \ |
duke@1 | 174 | Main.java |
duke@1 | 175 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 176 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 177 | -J-Djava.endorsed.dirs="BadClass${PS}GooZip${PS}BadJar" \ |
duke@1 | 178 | -bootclasspath "BadClass${PS}$BCP" \ |
duke@1 | 179 | Main.java |
duke@1 | 180 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 181 | -Xbootclasspath/p:"GooClass" \ |
duke@1 | 182 | -Djava.endorsed.dirs="BadZip" \ |
duke@1 | 183 | -Xbootclasspath:"GooClass${PS}$BCP" \ |
duke@1 | 184 | Main |
duke@1 | 185 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 186 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 187 | -Djava.endorsed.dirs="BadClass${PS}GooZip${PS}BadJar" \ |
duke@1 | 188 | -Xbootclasspath:"BadClass${PS}$BCP" \ |
duke@1 | 189 | Main |
duke@1 | 190 | |
duke@1 | 191 | #---------------------------------------------------------------- |
duke@1 | 192 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 193 | -Xbootclasspath/p:"GooClass" \ |
duke@1 | 194 | -Xbootclasspath:"BadClass${PS}$BCP" \ |
duke@1 | 195 | -Xbootclasspath/a:"GooClass" \ |
duke@1 | 196 | Main.java |
duke@1 | 197 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 198 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 199 | -Xbootclasspath:"GooClass${PS}BadClass${PS}$BCP" \ |
duke@1 | 200 | -Xbootclasspath/a:"BadClass" \ |
duke@1 | 201 | Main.java |
duke@1 | 202 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 203 | -Xbootclasspath/p:"GooClass" \ |
duke@1 | 204 | -Xbootclasspath:"BadClass${PS}$BCP" \ |
duke@1 | 205 | -Xbootclasspath/a:"GooClass" \ |
duke@1 | 206 | Main |
duke@1 | 207 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 208 | -Xbootclasspath/p:"BadClass" \ |
duke@1 | 209 | -Xbootclasspath:"GooClass${PS}BadClass${PS}$BCP" \ |
duke@1 | 210 | -Xbootclasspath/a:"BadClass" \ |
duke@1 | 211 | Main |
duke@1 | 212 | |
duke@1 | 213 | #---------------------------------------------------------------- |
duke@1 | 214 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 215 | -J-Djava.endorsed.dirs="BadZip" \ |
duke@1 | 216 | -Xbootclasspath:"GooClass${PS}$BCP" \ |
duke@1 | 217 | Main.java |
duke@1 | 218 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 219 | -endorseddirs "BadClass${PS}GooZip${PS}BadJar" \ |
duke@1 | 220 | -Xbootclasspath:"BadClass${PS}$BCP" \ |
duke@1 | 221 | Main.java |
duke@1 | 222 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 223 | -Djava.endorsed.dirs="BadClass${PS}GooZip${PS}BadJar" \ |
duke@1 | 224 | -Xbootclasspath:"BadClass${PS}$BCP" \ |
duke@1 | 225 | Main.java |
duke@1 | 226 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 227 | -J-Djava.endorsed.dirs="BadClass${PS}GooZip${PS}BadJar" \ |
duke@1 | 228 | -Xbootclasspath:"BadClass${PS}$BCP" \ |
duke@1 | 229 | Main.java |
duke@1 | 230 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 231 | -Djava.endorsed.dirs="BadZip" \ |
duke@1 | 232 | -Xbootclasspath:"GooClass${PS}$BCP" \ |
duke@1 | 233 | Main |
duke@1 | 234 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 235 | -Djava.endorsed.dirs="BadClass${PS}GooZip${PS}BadJar" \ |
duke@1 | 236 | -Xbootclasspath:"BadClass${PS}$BCP" \ |
duke@1 | 237 | Main |
duke@1 | 238 | |
duke@1 | 239 | #---------------------------------------------------------------- |
duke@1 | 240 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 241 | -Xbootclasspath/a:"BadClass" \ |
duke@1 | 242 | -extdirs "GooZip" \ |
duke@1 | 243 | Main.java |
duke@1 | 244 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 245 | -Xbootclasspath/a:"GooClass${PS}BadClass" \ |
duke@1 | 246 | -extdirs "BadZip" \ |
duke@1 | 247 | Main.java |
duke@1 | 248 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 249 | -Xbootclasspath/a:"BadClass" \ |
duke@1 | 250 | -Djava.ext.dirs="GooZip" \ |
duke@1 | 251 | Main |
duke@1 | 252 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 253 | -Xbootclasspath/a:"GooClass${PS}BadClass" \ |
duke@1 | 254 | -Djava.ext.dirs="BadZip" \ |
duke@1 | 255 | Main |
duke@1 | 256 | |
duke@1 | 257 | #---------------------------------------------------------------- |
duke@1 | 258 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 259 | -bootclasspath "$BCP${PS}BadJar/Lib.jar" \ |
duke@1 | 260 | -J-Djava.ext.dir="GooJar" \ |
duke@1 | 261 | Main.java |
duke@1 | 262 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 263 | -bootclasspath "$BCP${PS}GooJar/Lib.jar${PS}BadClass" \ |
duke@1 | 264 | -J-Djava.ext.dir="BadJar" \ |
duke@1 | 265 | Main.java |
duke@1 | 266 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 267 | -Xbootclasspath:"$BCP${PS}BadJar/Lib.jar" \ |
duke@1 | 268 | -Djava.ext.dirs="GooJar" \ |
duke@1 | 269 | Main |
duke@1 | 270 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 271 | -Xbootclasspath:"$BCP${PS}GooJar/Lib.jar${PS}BadClass" \ |
duke@1 | 272 | -Djava.ext.dirs="BadJar" \ |
duke@1 | 273 | Main |
duke@1 | 274 | |
duke@1 | 275 | #---------------------------------------------------------------- |
duke@1 | 276 | Failure "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 277 | -extdirs "GooClass${PS}BadZip" \ |
duke@1 | 278 | -cp "GooZip/Lib.zip" \ |
duke@1 | 279 | Main.java |
duke@1 | 280 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 281 | -extdirs "BadClass${PS}GooZip${PS}BadJar" \ |
duke@1 | 282 | -cp "BadZip/Lib.zip" \ |
duke@1 | 283 | Main.java |
duke@1 | 284 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 285 | -Djava.ext.dirs="GooZip${PS}BadJar" \ |
duke@1 | 286 | -classpath "BadZip/Lib.zip" \ |
duke@1 | 287 | Main.java |
duke@1 | 288 | Success "$javac" ${TESTTOOLVMOPTS} \ |
duke@1 | 289 | -J-Djava.ext.dirs="GooZip${PS}BadJar" \ |
duke@1 | 290 | -classpath "BadZip/Lib.zip" \ |
duke@1 | 291 | Main.java |
duke@1 | 292 | Failure "$java" ${TESTVMOPTS} \ |
duke@1 | 293 | -Djava.ext.dirs="GooClass${PS}BadZip" \ |
duke@1 | 294 | -cp "GooZip/Lib.zip${PS}." \ |
duke@1 | 295 | Main |
duke@1 | 296 | Success "$java" ${TESTVMOPTS} \ |
duke@1 | 297 | -Djava.ext.dirs="GooZip${PS}BadJar" \ |
duke@1 | 298 | -cp "BadZip/Lib.zip${PS}." \ |
duke@1 | 299 | Main |
duke@1 | 300 | |
duke@1 | 301 | #---------------------------------------------------------------- |
duke@1 | 302 | Failure "$javac" ${TESTTOOLVMOPTS} -classpath "BadClass${PS}GooClass" Main.java |
duke@1 | 303 | Success "$javac" ${TESTTOOLVMOPTS} -classpath "GooClass${PS}BadClass" Main.java |
duke@1 | 304 | Failure "$java" ${TESTVMOPTS} -classpath "BadClass${PS}GooClass${PS}." Main |
duke@1 | 305 | Success "$java" ${TESTVMOPTS} -classpath "GooClass${PS}BadClass${PS}." Main |
duke@1 | 306 | |
duke@1 | 307 | Failure "$javac" ${TESTTOOLVMOPTS} -cp "BadJar/Lib.jar${PS}GooZip/Lib.zip" Main.java |
duke@1 | 308 | Success "$javac" ${TESTTOOLVMOPTS} -cp "GooJar/Lib.jar${PS}BadZip/Lib.zip" Main.java |
duke@1 | 309 | Failure "$java" ${TESTVMOPTS} -cp "BadJar/Lib.jar${PS}${PS}GooZip/Lib.zip" Main |
duke@1 | 310 | Success "$java" ${TESTVMOPTS} -cp "GooJar/Lib.jar${PS}${PS}BadZip/Lib.zip" Main |
duke@1 | 311 | |
duke@1 | 312 | Failure env CLASSPATH="BadZip/Lib.zip${PS}GooJar/Lib.jar" "$javac" ${TESTTOOLVMOPTS} Main.java |
duke@1 | 313 | Success env CLASSPATH="GooZip/Lib.zip${PS}BadJar/Lib.jar" "$javac" ${TESTTOOLVMOPTS} Main.java |
duke@1 | 314 | Failure env CLASSPATH="${PS}BadZip/Lib.zip${PS}GooJar/Lib.jar" "$java" ${TESTVMOPTS} Main |
duke@1 | 315 | Success env CLASSPATH="${PS}GooZip/Lib.zip${PS}BadJar/Lib.jar" "$java" ${TESTVMOPTS} Main |
duke@1 | 316 | |
duke@1 | 317 | #---------------------------------------------------------------- |
duke@1 | 318 | # Check behavior of empty paths and empty path elements |
duke@1 | 319 | #---------------------------------------------------------------- |
duke@1 | 320 | In() { cd "$1"; shift; "$@"; cd ..; } |
duke@1 | 321 | |
duke@1 | 322 | In GooClass Failure "$javac" ${TESTTOOLVMOPTS} -cp ".." ../Main.java |
duke@1 | 323 | In GooClass Failure "$java" ${TESTVMOPTS} -cp ".." Main |
duke@1 | 324 | |
duke@1 | 325 | # Unspecified classpath defaults to "." |
duke@1 | 326 | Sys mkdir OneDir; Sys cp -p Main.java GooClass/Lib.class OneDir/. |
duke@1 | 327 | In OneDir Success "$javac" ${TESTTOOLVMOPTS} Main.java |
duke@1 | 328 | In OneDir Success "$java" ${TESTVMOPTS} Main |
duke@1 | 329 | |
duke@1 | 330 | # Empty classpath elements mean "." |
duke@1 | 331 | In GooClass Success "$javac" ${TESTTOOLVMOPTS} -cp "${PS}.." ../Main.java |
duke@1 | 332 | In GooClass Success "$java" ${TESTVMOPTS} -cp "${PS}.." Main |
duke@1 | 333 | |
duke@1 | 334 | In GooClass Success "$javac" ${TESTTOOLVMOPTS} -cp "..${PS}" ../Main.java |
duke@1 | 335 | In GooClass Success "$java" ${TESTVMOPTS} -cp "..${PS}" Main |
duke@1 | 336 | |
duke@1 | 337 | In GooClass Success "$javac" ${TESTTOOLVMOPTS} -cp "..${PS}${PS}/xyzzy" ../Main.java |
duke@1 | 338 | In GooClass Success "$java" ${TESTVMOPTS} -cp "..${PS}${PS}/xyzzy" Main |
duke@1 | 339 | |
duke@1 | 340 | # All other empty path elements are ignored. |
duke@1 | 341 | In GooJar Failure "$javac" ${TESTTOOLVMOPTS} -extdirs "" -cp ".." ../Main.java |
duke@1 | 342 | In GooJar Failure "$java" ${TESTVMOPTS} -Djava.ext.dirs="" -cp ".." Main |
duke@1 | 343 | |
duke@1 | 344 | In GooJar Failure "$javac" ${TESTTOOLVMOPTS} -extdirs "${PS}" -cp ".." ../Main.java |
duke@1 | 345 | In GooJar Failure "$javac" ${TESTTOOLVMOPTS} -Djava.ext.dirs="${PS}" -cp ".." ../Main.java |
duke@1 | 346 | In GooJar Failure "$java" ${TESTVMOPTS} -Djava.ext.dirs="${PS}" -cp ".." Main |
duke@1 | 347 | |
duke@1 | 348 | In GooJar Success "$javac" ${TESTTOOLVMOPTS} -extdirs "." -cp ".." ../Main.java |
duke@1 | 349 | In GooJar Success "$javac" ${TESTTOOLVMOPTS} -Djava.ext.dirs="." -cp ".." ../Main.java |
duke@1 | 350 | In GooJar Success "$java" ${TESTVMOPTS} -Djava.ext.dirs="." -cp ".." Main |
duke@1 | 351 | |
duke@1 | 352 | In GooJar Failure "$javac" ${TESTTOOLVMOPTS} -J-Djava.endorsed.dirs="" -cp ".." ../Main.java |
duke@1 | 353 | In GooJar Failure "$javac" ${TESTTOOLVMOPTS} -Djava.endorsed.dirs="" -cp ".." ../Main.java |
duke@1 | 354 | In GooJar Failure "$java" ${TESTVMOPTS} -Djava.endorsed.dirs="" -cp ".." Main |
duke@1 | 355 | |
duke@1 | 356 | In GooJar Failure "$javac" ${TESTTOOLVMOPTS} -J-Djava.endorsed.dirs="${PS}" -cp ".." ../Main.java |
duke@1 | 357 | In GooJar Failure "$javac" ${TESTTOOLVMOPTS} -endorseddirs "${PS}" -cp ".." ../Main.java |
duke@1 | 358 | In GooJar Failure "$java" ${TESTVMOPTS} -Djava.endorsed.dirs="${PS}" -cp ".." Main |
duke@1 | 359 | |
duke@1 | 360 | In GooJar Success "$javac" ${TESTTOOLVMOPTS} -J-Djava.endorsed.dirs="." -cp ".." ../Main.java |
duke@1 | 361 | In GooJar Success "$javac" ${TESTTOOLVMOPTS} -Djava.endorsed.dirs="." -cp ".." ../Main.java |
duke@1 | 362 | In GooJar Success "$java" ${TESTVMOPTS} -Djava.endorsed.dirs="." -cp ".." Main |
duke@1 | 363 | |
duke@1 | 364 | In GooClass Failure "$javac" ${TESTTOOLVMOPTS} -Xbootclasspath/p: -cp ".." ../Main.java |
duke@1 | 365 | In GooClass Failure "$java" ${TESTVMOPTS} -Xbootclasspath/p: -cp ".." Main |
duke@1 | 366 | |
duke@1 | 367 | In GooClass Success "$javac" ${TESTTOOLVMOPTS} -Xbootclasspath/p:. -cp ".." ../Main.java |
duke@1 | 368 | In GooClass Success "$java" ${TESTVMOPTS} -Xbootclasspath/p:. -cp ".." Main |
duke@1 | 369 | |
duke@1 | 370 | In GooClass Failure "$javac" ${TESTTOOLVMOPTS} -Xbootclasspath:"$BCP" -cp ".." ../Main.java |
duke@1 | 371 | In GooClass Failure "$java" ${TESTVMOPTS} -Xbootclasspath:"$BCP" -cp ".." Main |
duke@1 | 372 | |
duke@1 | 373 | In GooClass Success "$javac" ${TESTTOOLVMOPTS} -Xbootclasspath:"$BCP${PS}." -cp ".." ../Main.java |
duke@1 | 374 | In GooClass Success "$java" ${TESTVMOPTS} -Xbootclasspath:"$BCP${PS}." -cp ".." Main |
duke@1 | 375 | |
duke@1 | 376 | In GooClass Failure "$javac" ${TESTTOOLVMOPTS} -Xbootclasspath/a: -cp ".." ../Main.java |
duke@1 | 377 | In GooClass Failure "$java" ${TESTVMOPTS} -Xbootclasspath/a: -cp ".." Main |
duke@1 | 378 | |
duke@1 | 379 | In GooClass Success "$javac" ${TESTTOOLVMOPTS} -Xbootclasspath/a:. -cp ".." ../Main.java |
duke@1 | 380 | In GooClass Success "$java" ${TESTVMOPTS} -Xbootclasspath/a:. -cp ".." Main |
duke@1 | 381 | |
duke@1 | 382 | Cleanup |
duke@1 | 383 | |
duke@1 | 384 | Bottom Line |