use of uk.me.parabola.mkgmap.main.Main in project mkgmap by openstreetmap.
the class MKGMapTask method execute.
public void execute() {
List<String> args = new ArrayList<String>();
try {
CommandArgsReader argsReader = new CommandArgsReader(new Main());
if (configFile != null)
args.add("--read-config=" + configFile);
for (Path path : paths) {
String[] includedFiles = path.list();
for (String filename : includedFiles) {
log("processing " + filename);
args.add("--input-file=" + filename);
}
}
argsReader.readArgs(args.toArray(new String[args.size()]));
} catch (Exception ex) {
// log(ex, 1);
throw new BuildException(ex);
}
}
Aggregations