/** * Performs a compile using the gcj compiler. * @return true if the compilation succeeded * @throws BuildException on error */ @Override public boolean execute() throws BuildException { attributes.log("Using gcj compiler", Project.MSG_VERBOSE); Commandline cmd = setupGCJCommand(); int firstFileName = cmd.size(); logAndAddFilesToCompile(cmd); return executeExternalCompile(cmd.getCommandline(), firstFileName) == 0; }
/** * Performs a compile using the sj compiler from Symantec. * @return true if the compilation succeeded * @throws BuildException on error */ @Override public boolean execute() throws BuildException { attributes.log("Using symantec java compiler", Project.MSG_VERBOSE); Commandline cmd = setupJavacCommand(); String exec = getJavac().getExecutable(); cmd.setExecutable(exec == null ? "sj" : exec); int firstFileName = cmd.size() - compileList.length; return executeExternalCompile(cmd.getCommandline(), firstFileName) == 0; }
/** * Performs a compile using the Javac externally. * @return true if the compilation succeeded * @throws BuildException on error */ @Override public boolean execute() throws BuildException { attributes.log("Using external javac compiler", Project.MSG_VERBOSE); Commandline cmd = new Commandline(); cmd.setExecutable(getJavac().getJavacExecutable()); if (!assumeJava11() && !assumeJava12()) { setupModernJavacCommandlineSwitches(cmd); } else { setupJavacCommandlineSwitches(cmd, true); } int firstFileName = assumeJava11() ? -1 : cmd.size(); logAndAddFilesToCompile(cmd); //On VMS platform, we need to create a special java options file //containing the arguments and classpath for the javac command. //The special file is supported by the "-V" switch on the VMS JVM. if (Os.isFamily("openvms")) { return execOnVMS(cmd, firstFileName); } return executeExternalCompile(cmd.getCommandline(), firstFileName, true) == 0; }
if (getCommandLine().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);
int firstFileName = cmd.size();
int firstFileName = cmd.size(); logAndAddFilesToCompile(cmd);
ok = (status == 0); } else { if (getCommandline().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);
ok = (status == 0); } else { if (getCommandline().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);
ok = (status == 0); } else { if (getCommandline().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);
ok = (status == 0); } else { if (getCommandline().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);
if (getCommandline().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);
if (getCommandline().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);
if (getCommandline().getVmCommand().size() > 1) { log("JVM args ignored when same JVM is used.", Project.MSG_WARN);