An abstract compiler/linker definition.
addConfiguredProcessorArg
protected void addConfiguredProcessorArg(CommandLineArgument arg)
throws NullPointerException,
BuildException
Adds a or
arg
- command line argument, must not be null
addConfiguredProcessorParam
protected void addConfiguredProcessorParam(ProcessorParam param)
throws NullPointerException,
BuildException
Adds a or
addEnv
public void addEnv(Environment.Variable var)
Add an environment variable to the launched process.
addFileset
public void addFileset(ConditionalFileSet srcSet)
throws BuildException
Adds a source file set.
Files in these set will be processed by this configuration and will not
participate in the auction.
srcSet
- Fileset identifying files that should be processed by this
processor
booleanValueOf
protected static Boolean booleanValueOf(boolean val)
Returns the equivalent Boolean object for the specified value
Equivalent to Boolean.valueOf in JDK 1.4
- Boolean.TRUE or Boolean.FALSE
getActiveProcessorArgs
public CommandLineArgument[] getActiveProcessorArgs()
Prepares list of processor arguments ( , ) that
are active for the current project settings.
- active compiler arguments
getActiveProcessorParams
public ProcessorParam[] getActiveProcessorParams()
Prepares list of processor arguments ( , ) that
are active for the current project settings.
- active compiler arguments
getDebug
public boolean getDebug(ProcessorDef[] defaultProviders,
int index)
Gets boolean indicating debug build
defaultProviders
- array of ProcessorDef's in descending priorityindex
- index to first element in array that should be considered
- if true, built targets for debugging
getDefaultProviders
protected final ProcessorDef[] getDefaultProviders(ProcessorDef baseDef)
Creates an chain of objects which provide default values in descending
order of significance.
baseDef
- corresponding ProcessorDef from CCTask, will be last element
in array unless inherit = false
getExtends
public ProcessorDef getExtends()
throws BuildException
Gets the ProcessorDef specified by the extends attribute
- Base ProcessorDef, null if extends is not specified
getInherit
public final boolean getInherit()
Gets the inherit attribute. If the inherit value is true, this processor
definition will inherit default values from the containing element.
- if true then properties from the containing element are
used.
getLibtool
public boolean getLibtool()
getProcessor
protected Processor getProcessor()
Obtains the appropriate processor (compiler, linker)
getRebuild
public boolean getRebuild(ProcessorDef[] defaultProviders,
int index)
Gets a boolean value indicating whether all targets must be rebuilt
regardless of dependency analysis.
defaultProviders
- array of ProcessorDef's in descending priorityindex
- index to first element in array that should be considered
- true if all targets should be rebuilt.
hasFileSets
public boolean hasFileSets()
Returns true if the processor definition contains embedded file set
definitions
- true if processor definition contains embedded filesets
isActive
public boolean isActive()
throws BuildException,
IllegalStateException
Determine if this def should be used.
Definition will be active if the "if" variable (if specified) is set and
the "unless" variable (if specified) is not set and that all reference
or extended definitions are active
- true if processor is active
setClassname
public void setClassname(String className)
throws BuildException
Sets the class name for the adapter. Use the "name" attribute when the
tool is supported.
className
- full class name
setDebug
public void setDebug(boolean debug)
throws BuildException
If set true, all targets will be built for debugging.
debug
- true if targets should be built for debugging
setDescription
public void setDescription(String desc)
Sets a description of the current data type.
setExtends
public void setExtends(Reference extendsRef)
throws BuildException
Specifies that this element extends the element with id attribute with a
matching value. The configuration will be constructed from the settings
of this element, element referenced by extends, and the containing cc
element.
extendsRef
- Reference to the extended processor definition.
setId
public void setId(String id)
Sets an id that can be used to reference this element.
setIf
public void setIf(String propName)
Sets the property name for the 'if' condition.
The configuration will be ignored unless the property is defined.
The value of the property is insignificant, but values that would imply
misinterpretation ("false", "no") will throw an exception when
evaluated.
propName
- name of property
setInherit
public void setInherit(boolean inherit)
throws BuildException
If inherit has the default value of true, defines, includes and other
settings from the containing element will be inherited.
setLibtool
public void setLibtool(boolean libtool)
Set use of libtool.
If set to true, the "libtool " will be prepended to the command line
libtool
- If true, use libtool.
setNewenvironment
public void setNewenvironment(boolean newenv)
Do not propagate old environment when new environment variables are
specified.
setProcessor
protected void setProcessor(Processor processor)
throws BuildException,
NullPointerException
Sets the processor
processor
- processor, may not be null.
setRebuild
public void setRebuild(boolean rebuild)
throws BuildException
If set true, all targets will be unconditionally rebuilt.
rebuild
- if true, rebuild all targets.
setRefid
public void setRefid(org.apache.tools.ant.types.Reference ref)
Specifies that this element should behave as if the content of the
element with the matching id attribute was inserted at this location. If
specified, no other attributes or child content should be specified,
other than "if", "unless" and "description".
ref
- Reference to other element
setUnless
public void setUnless(String propName)
Set the property name for the 'unless' condition.
If named property is set, the configuration will be ignored.
The value of the property is insignificant, but values that would imply
misinterpretation ("false", "no") of the behavior will throw an
exception when evaluated.
propName
- name of property
visitFiles
public void visitFiles(FileVisitor visitor)
This method calls the FileVistor's visit function for every file in the
processors definition
visitor
- object whose visit method is called for every file