Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.jk.ant.compilers
Class LinkerAdapter  view LinkerAdapter download LinkerAdapter.java

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.jk.ant.SoTask
              extended byorg.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).


Field Summary
protected  org.apache.jk.ant.SoTask so
           
 
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
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
LinkerAdapter()
           
 
Method Summary
 void execute()
          Called by the project to let the task do its work.
abstract  boolean link(java.util.Vector srcFiles)
          Executes the task.
 void setSoTask(org.apache.jk.ant.SoTask so)
          Sets the compiler attributes, which are stored in the Javac task.
 
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 org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

so

protected org.apache.jk.ant.SoTask so
Constructor Detail

LinkerAdapter

public LinkerAdapter()
Method Detail

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.