< prev index next >

jdk/test/sun/security/tools/jarsigner/AltProvider.java

Print this page

        

@@ -53,11 +53,11 @@
     public static void main(String[] args) throws Throwable {
 
         // Compile the provider
         CompilerUtils.compile(
                 MOD_SRC_DIR, MOD_DEST_DIR,
-                "-modulesourcepath",
+                "--module-source-path",
                 MOD_SRC_DIR.toString());
 
         // Create a keystore
         tool("keytool", "-keystore x.jks -storetype jks -genkeypair" +
                 " -storepass changeit -keypass changeit -alias x -dname CN=X")

@@ -100,26 +100,26 @@
         testBoth("-J-cp -Jmods/test.dummy " +
                 "-provider org.test.dummy.DummyProvider -providerArg full",
                 0, "loadProviderByClass: org.test.dummy.DummyProvider");
 
         // name in a module
-        testBoth("-J-mp -Jmods " +
+        testBoth("-J--module-path=mods " +
                 "-addprovider Dummy -providerArg full",
                 0, "loadProviderByName: Dummy");
 
         // -providerClass does not work
-        testBoth("-J-mp -Jmods " +
+        testBoth("-J--module-path=mods " +
                 "-providerClass org.test.dummy.DummyProvider -providerArg full",
                 1, "Provider \"org.test.dummy.DummyProvider\" not found");
 
         // -addprovider with class does not work
-        testBoth("-J-mp -Jmods " +
+        testBoth("-J--module-path=mods " +
                 "-addprovider org.test.dummy.DummyProvider -providerArg full",
                 1, "Provider named \"org.test.dummy.DummyProvider\" not found");
 
         // -addprovider without arg does not work
-        testBoth("-J-mp -Jmods " +
+        testBoth("-J--module-path=mods " +
                 "-addprovider Dummy",
                 1, "DUMMYKS not found");
     }
 
     // Test both tools with the same extra options
< prev index next >