All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jangaroo.utils.SourceFilesHandler Maven / Gradle / Ivy

There is a newer version: 4.1.17
Show newest version
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> 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