summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-12 20:12:50 -0400
committerJames Moger <james.moger@gitblit.com>2014-03-27 09:39:25 -0400
commit50380b329e69c0a9fa423475aee59a2c9633db69 (patch)
treecfc747afe4d6d49d1618c929ffe3e629f194dded /src/test
parent03a03105bc613cf8b87aa67938e9c940197ef511 (diff)
downloadgitblit-50380b329e69c0a9fa423475aee59a2c9633db69.tar.gz
gitblit-50380b329e69c0a9fa423475aee59a2c9633db69.zip
Replace JCommander with args4j
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/de/akquinet/devops/GitBlitServer4UITests.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java b/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java
index 5e361b99..8d6d703b 100644
--- a/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java
+++ b/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java
@@ -4,8 +4,9 @@ import java.io.File;
import java.util.ArrayList;
import java.util.List;
-import com.beust.jcommander.JCommander;
-import com.beust.jcommander.ParameterException;
+import org.kohsuke.args4j.CmdLineException;
+import org.kohsuke.args4j.CmdLineParser;
+
import com.gitblit.GitBlitServer;
import com.gitblit.IStoredSettings;
import com.gitblit.Keys;
@@ -36,14 +37,14 @@ public class GitBlitServer4UITests extends GitBlitServer {
Params.baseFolder = folder;
Params params = new Params();
- JCommander jc = new JCommander(params);
+ CmdLineParser parser = new CmdLineParser(params);
try {
- jc.parse(filtered.toArray(new String[filtered.size()]));
+ parser.parseArgument(filtered);
if (params.help) {
- server.usage(jc, null);
+ server.usage(parser, null);
}
- } catch (ParameterException t) {
- server.usage(jc, t);
+ } catch (CmdLineException t) {
+ server.usage(parser, t);
}
if (params.stop) {