…lines 1–74 unchanged (74 lines)
75 if (options.hasOption(opt))
76 {
77 tokens.add(arg);
78 }
79 else
80 {
81 if (opt.indexOf('=') != -1 && options.hasOption(opt.substring(0, opt.indexOf('='))))
82 {
83 // the format is --foo=value or -foo=value
84 tokens.add(arg.substring(0, arg.indexOf('='))); // --foo
85 tokens.add(arg.substring(arg.indexOf('=') + 1)); // value
86 }
87 else if (options.hasOption(arg.substring(0, 2)))
88 {
89 // the format is a special properties option (-Dproperty=value)
90 tokens.add(arg.substring(0, 2)); // -D
91 tokens.add(arg.substring(2)); // property=value
92 }
93 else
94 {
…lines 95–117 unchanged (23 lines)