@Override protected List<String> getCommandLine( Distribution distribution, NodejsConfig config, IExtractedFileSet exe) throws IOException { List<String> commandLine = new ArrayList<String>(); commandLine.add(exe.executable().getAbsolutePath()); commandLine.add(config.getFilename()); commandLine.addAll(config.getParameters()); return commandLine; }
@Override protected void onBeforeProcessStart( ProcessBuilder processBuilder, NodejsConfig config, IRuntimeConfig runtimeConfig) { super.onBeforeProcessStart(processBuilder, config, runtimeConfig); processBuilder.directory(new File(config.getWorkingDirectory())); }