}
return result;
}
public Future<Integer> runWithOutputWindow ( File workingDir, String... cmd ) throws IOException {
LaunchSupport supp = new LaunchSupport( NodeJSExecutable.getDefault() ) {
@Override
protected String[] getLaunchCommandLine ( boolean showDialog ) {
return new String[]{exe()};
}
};
List<String> l = new LinkedList<>();
l.add( exe() );
l.addAll( Arrays.asList( cmd ) );
return supp.runWithOutputWindow( l.toArray( new String[l.size()] ), FileUtil.toFileObject( FileUtil.normalizeFile( workingDir ) ), "");
}