< prev index next >

test/langtools/tools/jdeps/MultiReleaseJar.java

Print this page
rev 48074 : 8189102: All tools should support -?, -h and --help
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini


 101                 "10/test.Version",
 102                 "10/test.Version",
 103                 "10/test.Version",
 104                 "9/test.NonPublic",
 105                 "9/test.NonPublic"
 106         );
 107 
 108         r = run("jdeps --multi-release 8  -v Version.jar");
 109         checkResult(r, false, "Error: invalid argument for option: 8");
 110 
 111         r = run("jdeps --multi-release 9.1  -v Version.jar");
 112         checkResult(r, false, "Error: invalid argument for option: 9.1");
 113 
 114         r = run("jdeps -v -R -cp Version.jar test/Main.class");
 115         checkResult(r, false, "--multi-release option is not set");
 116 
 117         r = run("jdeps -v -R -cp Version.jar -multi-release 9 test/Main.class");
 118         checkResult(r, false,
 119                 "Error: unknown option: -multi-release",
 120                 "Usage: jdeps <options> <path",
 121                 "use -h, -?, -help, or --help"
 122         );
 123 
 124         r = run("jdeps -v -R -cp Version.jar --multi-release 9 test/Main.class");
 125         checkResult(r, true,
 126                 "Main.class ->",
 127                 "Main.class ->",
 128                 "test.Main",
 129                 "test.Main",
 130                 "test.Main",
 131                 "Version.jar ->",
 132                 "9/test.NonPublic",
 133                 "9/test.NonPublic",
 134                 "9/test.Version",
 135                 "9/test.Version",
 136                 "9/test.Version",
 137                 "9/test.Version"
 138         );
 139 
 140         r = run("jdeps -v -R -cp Version.jar --multi-release 10 test/Main.class");
 141         checkResult(r, true,




 101                 "10/test.Version",
 102                 "10/test.Version",
 103                 "10/test.Version",
 104                 "9/test.NonPublic",
 105                 "9/test.NonPublic"
 106         );
 107 
 108         r = run("jdeps --multi-release 8  -v Version.jar");
 109         checkResult(r, false, "Error: invalid argument for option: 8");
 110 
 111         r = run("jdeps --multi-release 9.1  -v Version.jar");
 112         checkResult(r, false, "Error: invalid argument for option: 9.1");
 113 
 114         r = run("jdeps -v -R -cp Version.jar test/Main.class");
 115         checkResult(r, false, "--multi-release option is not set");
 116 
 117         r = run("jdeps -v -R -cp Version.jar -multi-release 9 test/Main.class");
 118         checkResult(r, false,
 119                 "Error: unknown option: -multi-release",
 120                 "Usage: jdeps <options> <path",
 121                 "use --help"
 122         );
 123 
 124         r = run("jdeps -v -R -cp Version.jar --multi-release 9 test/Main.class");
 125         checkResult(r, true,
 126                 "Main.class ->",
 127                 "Main.class ->",
 128                 "test.Main",
 129                 "test.Main",
 130                 "test.Main",
 131                 "Version.jar ->",
 132                 "9/test.NonPublic",
 133                 "9/test.NonPublic",
 134                 "9/test.Version",
 135                 "9/test.Version",
 136                 "9/test.Version",
 137                 "9/test.Version"
 138         );
 139 
 140         r = run("jdeps -v -R -cp Version.jar --multi-release 10 test/Main.class");
 141         checkResult(r, true,


< prev index next >