org.apache.tools.ant.taskdefs.rmic
Class RmicAdapterFactory
java.lang.Object
org.apache.tools.ant.taskdefs.rmic.RmicAdapterFactory
public final class RmicAdapterFactory
extends java.lang.Object
Creates the necessary rmic adapter, given basic criteria.
static RmicAdapter | getRmic(String rmicType, Task task) - Based on the parameter passed in, this method creates the necessary
factory desired.
|
DEFAULT_COMPILER
public static final String DEFAULT_COMPILER
If the compiler has this name use a default compiler.
ERROR_NOT_RMIC_ADAPTER
public static final String ERROR_NOT_RMIC_ADAPTER
The error message to be used when the class is not an rmic adapter.
ERROR_UNKNOWN_COMPILER
public static final String ERROR_UNKNOWN_COMPILER
The error message to be used when the compiler cannot be found.
getRmic
public static RmicAdapter getRmic(String rmicType,
Task task)
throws BuildException
Based on the parameter passed in, this method creates the necessary
factory desired.
The current mapping for rmic names are as follows:
- sun = SUN's rmic
- kaffe = Kaffe's rmic
- a fully quallified classname = the name of a rmic
adapter
- weblogic = weblogic compiler
- forking = Sun's RMIC by forking a new JVM
rmicType
- either the name of the desired rmic, or the
full classname of the rmic's adapter.task
- a task to log through.
BuildException
- if the rmic type could not be resolved into
a rmic adapter.