private void addNewExecutableFile(PackInfo pack, String target, String condition, List<OsModel> osList, int executionStage, int type, String mainClass, int onFailure, boolean keepFile, List<String> argsList ) throws CompilerException { ExecutableFile executable = new ExecutableFile(); executable.path = target; executable.setCondition(condition); executable.osList = osList; executable.executionStage = executionStage; executable.type = type; executable.mainClass = mainClass; executable.onFailure = onFailure; executable.keepFile = keepFile; for (String arg : argsList) { executable.argList.add(arg); } pack.addExecutable(executable); }