mirror of
https://github.com/apache/sqoop.git
synced 2025-05-13 23:41:56 +08:00
SQOOP-710 Fall back to released version of commons-cli 1.2
(Jarek Jarcec Cecho)
This commit is contained in:
parent
145b585e8d
commit
878a7b8aea
@ -40,7 +40,7 @@ limitations under the License.
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-cli</groupId>
|
<groupId>commons-cli</groupId>
|
||||||
<artifactId>commons-cli</artifactId>
|
<artifactId>commons-cli</artifactId>
|
||||||
<version>1.3-SNAPSHOT</version>
|
<version>1.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-lang</groupId>
|
<groupId>commons-lang</groupId>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
import org.apache.commons.cli.CommandLine;
|
import org.apache.commons.cli.CommandLine;
|
||||||
import org.apache.commons.cli.CommandLineParser;
|
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.HelpFormatter;
|
||||||
import org.apache.commons.cli.Options;
|
import org.apache.commons.cli.Options;
|
||||||
import org.apache.commons.cli.ParseException;
|
import org.apache.commons.cli.ParseException;
|
||||||
@ -51,7 +51,7 @@ protected CommandLine parseOptions(Options options,
|
|||||||
args[i - start] = iterator.next();
|
args[i - start] = iterator.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandLineParser parser = new DefaultParser();
|
CommandLineParser parser = new GnuParser();
|
||||||
CommandLine line;
|
CommandLine line;
|
||||||
try {
|
try {
|
||||||
line = parser.parse(options, args);
|
line = parser.parse(options, args);
|
||||||
|
Loading…
Reference in New Issue
Block a user