From 878a7b8aea99a0db8e40f56b9cd9aa26f54b9147 Mon Sep 17 00:00:00 2001 From: Bilung Lee Date: Mon, 19 Nov 2012 11:03:24 -0800 Subject: [PATCH] SQOOP-710 Fall back to released version of commons-cli 1.2 (Jarek Jarcec Cecho) --- client/pom.xml | 2 +- .../java/org/apache/sqoop/client/shell/SqoopFunction.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/pom.xml b/client/pom.xml index 235dcea0..ce453f42 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -40,7 +40,7 @@ limitations under the License. commons-cli commons-cli - 1.3-SNAPSHOT + 1.2 commons-lang diff --git a/client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java b/client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java index af0579d4..200b3eeb 100644 --- a/client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java +++ b/client/src/main/java/org/apache/sqoop/client/shell/SqoopFunction.java @@ -23,7 +23,7 @@ import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.GnuParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; @@ -51,7 +51,7 @@ protected CommandLine parseOptions(Options options, args[i - start] = iterator.next(); } - CommandLineParser parser = new DefaultParser(); + CommandLineParser parser = new GnuParser(); CommandLine line; try { line = parser.parse(options, args); @@ -60,4 +60,4 @@ protected CommandLine parseOptions(Options options, } return line; } -} \ No newline at end of file +}