"...assets/git@transfer.hft-stuttgart.de:zedflow/test-k1.git" did not exist on "afbf4b3391070b4078c998e8a9b17963853c8aae"
Commit 2069595d authored by Claus Nagel's avatar Claus Nagel
Browse files

minor fix

parent 8fff6436
...@@ -95,9 +95,13 @@ public class ADE_XJC { ...@@ -95,9 +95,13 @@ public class ADE_XJC {
new ADE_XJC().doMain(args); new ADE_XJC().doMain(args);
} }
private void doMain(String[] tmp) { private void doMain(String[] _args) {
List<String> tmp = new ArrayList<String>();
for (String arg : _args)
tmp.addAll(Arrays.asList(arg.split(" +")));
Map<Boolean, List<String>> args = tmp.stream().collect(Collectors.partitioningBy(arg -> !arg.startsWith("-X")));
CmdLineParser parser = new CmdLineParser(this, ParserProperties.defaults().withUsageWidth(80)); CmdLineParser parser = new CmdLineParser(this, ParserProperties.defaults().withUsageWidth(80));
Map<Boolean, List<String>> args = Arrays.stream(tmp).collect(Collectors.partitioningBy(arg -> !arg.startsWith("-X")));
try { try {
parser.parseArgument(args.get(Boolean.TRUE)); parser.parseArgument(args.get(Boolean.TRUE));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment