5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-11 22:41:50 +08:00

SQOOP-710 Fall back to released version of commons-cli 1.2

(Jarek Jarcec Cecho)
This commit is contained in:
Bilung Lee 2012-11-19 11:03:24 -08:00
parent 145b585e8d
commit 878a7b8aea
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ limitations under the License.
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.3-SNAPSHOT</version>
<version>1.2</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>

View File

@ -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;
}
}
}