org.apache.tools.ant.taskdefs.compilers
Class Sj

java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
        |
        +--org.apache.tools.ant.taskdefs.compilers.Sj
All Implemented Interfaces:
CompilerAdapter

public class Sj
extends DefaultCompilerAdapter

The implementation of the sj compiler. Uses the defaults for DefaultCompilerAdapter

Since:
Ant 1.4

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
attributes, bootclasspath, compileClasspath, compileList, compileSourcepath, debug, depend, deprecation, destDir, encoding, extdirs, includeAntRuntime, includeJavaRuntime, location, lSep, memoryInitialSize, memoryMaximumSize, optimize, project, src, target, verbose
 
Constructor Summary
Sj()
           
 
Method Summary
 boolean execute()
          Performs a compile using the sj compiler from Symantec.
protected  java.lang.String getNoDebugArgument()
          Returns null since sj either has -g for debug=true or no argument at all.
 
Methods inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, assumeJava14, assumeJava15, executeExternalCompile, executeExternalCompile, getCompileClasspath, getJavac, getProject, logAndAddFilesToCompile, setJavac, setupJavacCommand, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sj

public Sj()
Method Detail

execute

public boolean execute()
                throws BuildException
Performs a compile using the sj compiler from Symantec.

Returns:
has the compilation been successful
BuildException

getNoDebugArgument

protected java.lang.String getNoDebugArgument()
Returns null since sj either has -g for debug=true or no argument at all.

Overrides:
getNoDebugArgument in class DefaultCompilerAdapter
Returns:
"-g:none" unless we expect to invoke a JDK 1.1 compiler.
Since:
Ant 1.6.3


Copyright 2000-2005 Apache Software Foundation. All Rights Reserved.