Search in sources :

Example 1 with ArgumentTokenizer

use of com.sun.enterprise.admin.cli.ArgumentTokenizer in project Payara by payara.

the class LocalOSGiShellCommand method getArgs.

private String[] getArgs(String line) throws ArgumentTokenizer.ArgumentException {
    List<String> args = new ArrayList<String>();
    ArgumentTokenizer t = new ArgumentTokenizer(line);
    while (t.hasMoreTokens()) {
        args.add(t.nextToken());
    }
    return args.toArray(new String[args.size()]);
}
Also used : ArrayList(java.util.ArrayList) ArgumentTokenizer(com.sun.enterprise.admin.cli.ArgumentTokenizer)

Aggregations

ArgumentTokenizer (com.sun.enterprise.admin.cli.ArgumentTokenizer)1 ArrayList (java.util.ArrayList)1