Search in sources :

Example 1 with CommandLineProgram

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);
        }
    };
}
Also used : CommandLineProgram(picard.cmdline.CommandLineProgram)

Aggregations

CommandLineProgram (picard.cmdline.CommandLineProgram)1