summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-06-14 02:26:49 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-06-14 02:33:43 +0200
commit691edcc397d6d93d14c67d23f925e32916986a55 (patch)
tree7a3aea4153bc78220b98b3e8d9d34cb37f3d5a03
parent22e97396e3f5e5024b4fee3f816ca319857126df (diff)
downloadpki-691edcc397d6d93d14c67d23f925e32916986a55.tar.gz
pki-691edcc397d6d93d14c67d23f925e32916986a55.tar.xz
pki-691edcc397d6d93d14c67d23f925e32916986a55.zip
Fixed PKI console build issue on RHEL.
The DefaultParser used in PKI console has been replaced with PosixParser for backward compatibility with Commons CLI 1.2 on RHEL. https://pagure.io/dogtagpki/issue/2671 Change-Id: Ie36bfd4cbd83818cfc06f6a3f69e02214cff0db2
-rw-r--r--base/console/src/com/netscape/admin/certsrv/Console.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/console/src/com/netscape/admin/certsrv/Console.java b/base/console/src/com/netscape/admin/certsrv/Console.java
index 2c4f59438..08620ed57 100644
--- a/base/console/src/com/netscape/admin/certsrv/Console.java
+++ b/base/console/src/com/netscape/admin/certsrv/Console.java
@@ -47,9 +47,9 @@ import javax.ws.rs.ProcessingException;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
-import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
+import org.apache.commons.cli.PosixParser;
import org.apache.commons.cli.UnrecognizedOptionException;
import org.dogtagpki.common.Info;
import org.dogtagpki.common.InfoClient;
@@ -1610,7 +1610,7 @@ public class Console implements CommClient {
options.addOption("v", "verbose", false, "Run in verbose mode.");
options.addOption("h", "help", false, "Show help message.");
- CommandLineParser parser = new DefaultParser();
+ CommandLineParser parser = new PosixParser();
CommandLine cmd = parser.parse(options, argv);
String[] cmdArgs = cmd.getArgs();