diff options
author | Endi S. Dewata <edewata@redhat.com> | 2016-11-04 04:54:02 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-11-04 04:57:16 +0100 |
commit | f9ddb2e875355e882b14529979f6c9ae03cf720e (patch) | |
tree | 2ef6746d8d664f0a7778dabd84cf96adecc493aa /base/kra/functional | |
parent | db58e6071f6bb57de006e6499c0a0c6a8c8e67bf (diff) | |
download | pki-f9ddb2e875355e882b14529979f6c9ae03cf720e.tar.gz pki-f9ddb2e875355e882b14529979f6c9ae03cf720e.tar.xz pki-f9ddb2e875355e882b14529979f6c9ae03cf720e.zip |
Replaced deprecated ProxyParser.
The deprecated ProxyParser has been replaced with DefaultParser.
https://fedorahosted.org/pki/ticket/2535
Diffstat (limited to 'base/kra/functional')
-rw-r--r-- | base/kra/functional/src/com/netscape/cms/servlet/test/DRMTest.java | 4 | ||||
-rw-r--r-- | base/kra/functional/src/com/netscape/cms/servlet/test/GeneratePKIArchiveOptions.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/base/kra/functional/src/com/netscape/cms/servlet/test/DRMTest.java b/base/kra/functional/src/com/netscape/cms/servlet/test/DRMTest.java index 720bba2b9..b2d45ea24 100644 --- a/base/kra/functional/src/com/netscape/cms/servlet/test/DRMTest.java +++ b/base/kra/functional/src/com/netscape/cms/servlet/test/DRMTest.java @@ -36,10 +36,10 @@ import java.util.Random; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; +import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; -import org.apache.commons.cli.PosixParser; import org.mozilla.jss.CryptoManager; import org.mozilla.jss.crypto.AlreadyInitializedException; import org.mozilla.jss.crypto.IVParameterSpec; @@ -97,7 +97,7 @@ public class DRMTest { options.addOption("c", true, "Optional SSL Client cert Nickname"); try { - CommandLineParser parser = new PosixParser(); + CommandLineParser parser = new DefaultParser(); CommandLine cmd = parser.parse(options, args); if (cmd.hasOption("h")) { diff --git a/base/kra/functional/src/com/netscape/cms/servlet/test/GeneratePKIArchiveOptions.java b/base/kra/functional/src/com/netscape/cms/servlet/test/GeneratePKIArchiveOptions.java index 03a0729e7..c415f98d0 100644 --- a/base/kra/functional/src/com/netscape/cms/servlet/test/GeneratePKIArchiveOptions.java +++ b/base/kra/functional/src/com/netscape/cms/servlet/test/GeneratePKIArchiveOptions.java @@ -18,10 +18,10 @@ import java.security.cert.CertificateEncodingException; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; +import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; -import org.apache.commons.cli.PosixParser; import org.mozilla.jss.CryptoManager; import org.mozilla.jss.asn1.InvalidBERException; import org.mozilla.jss.crypto.AlreadyInitializedException; @@ -123,7 +123,7 @@ public class GeneratePKIArchiveOptions { options.addOption("k", true, "Key file"); try { - CommandLineParser parser = new PosixParser(); + CommandLineParser parser = new DefaultParser(); CommandLine cmd = parser.parse(options, args); if (cmd.hasOption("p")) { |