java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.jk.ant.SoTask
org.apache.jk.ant.compilers.LinkerAdapter
- Direct Known Subclasses:
- GcjLinker, LibtoolLinker, MsvcLinker, MwldLinker
- public abstract class LinkerAdapter
- extends org.apache.jk.ant.SoTask
s/javac/C linker/
The interface that all compiler adapters must adher to.
A compiler adapter is an adapter that interprets the javac's
parameters in preperation to be passed off to the compier this
adapter represents. As all the necessary values are stored in the
Javac task itself, the only thing all adapters need is the javac
task, the execute command and a parameterless constructor (for
reflection).
| Fields inherited from class org.apache.jk.ant.SoTask |
altSoFiles, apxs, buildDir, cflags, compiler, debug, defines, depends, errorstream, exports, imports, includes, libs, linkOpts, module, modules, optG, optimize, optWgcc, outputstream, profile, resources, soExt, soFile, src, srcList, streamhandler |
| Methods inherited from class org.apache.jk.ant.SoTask |
addAltSoFile, addApacheConfig, addDef, addExport, addImport, addJniConfig, addLinkOpt, addNLMModule, addResource, addSrc, checkDepend, closeStreamHandler, createDepends, createIncludes, createLibs, createStreamHandler, duplicateTo, execute, findCompilerAdapter, findLinkerAdapter, findSourceFiles, setBuildDir, setCflags, setDebug, setExtension, setGccWarn, setModule, setOptimize, setProfile, setSoDir, setSoFile, setTarget, setTaskDebug |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
so
protected org.apache.jk.ant.SoTask so
LinkerAdapter
public LinkerAdapter()
setSoTask
public void setSoTask(org.apache.jk.ant.SoTask so)
- Sets the compiler attributes, which are stored in the Javac task.
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Description copied from class:
org.apache.tools.ant.Task
- Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.
link
public abstract boolean link(java.util.Vector srcFiles)
throws org.apache.tools.ant.BuildException
- Executes the task.