blob: 97e3c06f5cf07ce7fd06f18b677822aeaacf7d4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package org.kohsuke.args4j.spi;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.OptionDef;
import java.nio.file.Path;
/**
* Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection of {@link Path}.
*
* @author kmahoney
*/
public class MultiPathOptionHandler extends DelimitedOptionHandler<Path> {
protected static String sysPathSeperator = System.getProperty("path.separator");
public MultiPathOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Path> setter) {
super(parser, option, setter, sysPathSeperator, new PathOptionHandler(parser, option, setter));
}
}
|