net.jangaroo.utils.SourceFilesHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jangaroo-utils Show documentation
Show all versions of jangaroo-utils Show documentation
Contains several shared utils
package net.jangaroo.utils;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.OptionDef;
import org.kohsuke.args4j.spi.OptionHandler;
import org.kohsuke.args4j.spi.Parameters;
import org.kohsuke.args4j.spi.Setter;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* Parses file arguments
*/
public class SourceFilesHandler extends OptionHandler> {
public SourceFilesHandler(CmdLineParser parser, OptionDef option, Setter super List> setter) {
super(parser, option, setter);
}
@Override
public int parseArguments(Parameters parameters) throws CmdLineException {
List sourceFiles = new ArrayList(parameters.size());
for(int i = 0; i
© 2015 - 2024 Weber Informatics LLC | Privacy Policy