< prev index next >
test/langtools/tools/jdeps/MultiReleaseJar.java
Print this page
rev 48495 : 8189102: All tools should support -?, -h and --help
Reviewed-by: kvn, jjg, weijun, alanb, rfield, ksrini
*** 1,7 ****
/*
! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 116,126 ****
r = run("jdeps -v -R -cp Version.jar -multi-release 9 test/Main.class");
checkResult(r, false,
"Error: unknown option: -multi-release",
"Usage: jdeps <options> <path",
! "use -h, -?, -help, or --help"
);
r = run("jdeps -v -R -cp Version.jar --multi-release 9 test/Main.class");
checkResult(r, true,
"Main.class ->",
--- 116,126 ----
r = run("jdeps -v -R -cp Version.jar -multi-release 9 test/Main.class");
checkResult(r, false,
"Error: unknown option: -multi-release",
"Usage: jdeps <options> <path",
! "use --help"
);
r = run("jdeps -v -R -cp Version.jar --multi-release 9 test/Main.class");
checkResult(r, true,
"Main.class ->",
< prev index next >