use of picard.cmdline.CommandLineProgram in project jvarkit by lindenb.
the class AbstractPicardJfxApplication method createRunnable.
@Override
protected Runnable createRunnable() throws JFXException {
final CommandLineProgram picardApp;
try {
picardApp = this.commandLine.newInstance();
} catch (final Exception err) {
throw new RuntimeException(err);
}
final List<String> args = buildArgs();
realStderr.println("ARGS=" + args);
if (args == null)
return null;
final String[] array = args.toArray(new String[args.size()]);
return new Runnable() {
@Override
public void run() {
picardApp.instanceMain(array);
}
};
}
Aggregations