1 18 19 package org.apache.tools.ant.taskdefs.compilers; 20 21 import org.apache.tools.ant.BuildException; 22 import org.apache.tools.ant.Project; 23 import org.apache.tools.ant.types.Commandline; 24 25 31 public class Sj extends DefaultCompilerAdapter { 32 33 38 public boolean execute() throws BuildException { 39 attributes.log("Using symantec java compiler", Project.MSG_VERBOSE); 40 41 Commandline cmd = setupJavacCommand(); 42 String exec = getJavac().getExecutable(); 43 cmd.setExecutable(exec == null ? "sj" : exec); 44 45 int firstFileName = cmd.size() - compileList.length; 46 47 return 48 executeExternalCompile(cmd.getCommandline(), firstFileName) == 0; 49 } 50 51 57 protected String getNoDebugArgument() { 58 return null; 59 } 60 } 61 62 | Popular Tags |