org.apache.tools.ant.taskdefs.rmic

Class WLRmic

public class WLRmic extends DefaultRmicAdapter

The implementation of the rmic for WebLogic

Since: Ant 1.4

Field Summary
static StringCOMPILER_NAME
the name of this adapter for users to select
static StringERROR_NO_WLRMIC_ON_CLASSPATH
The error string to use if not able to find the weblogic rmic
static StringERROR_WLRMIC_FAILED
The error string to use if not able to start the weblogic rmic
static StringUNSUPPORTED_STUB_OPTION
upsupported error message
static StringWLRMIC_CLASSNAME
The classname of the weblogic rmic
static StringWL_RMI_SKEL_SUFFIX
The skeleton suffix
static StringWL_RMI_STUB_SUFFIX
The stub suffix
Method Summary
protected StringaddStubVersionOptions()
This is an override point; no stub version is returned.
booleanexecute()
Carry out the rmic compilation.
StringgetSkelClassSuffix()
Get the suffix for the rmic skeleton classes
StringgetStubClassSuffix()
Get the suffix for the rmic stub classes
protected String[]preprocessCompilerArgs(String[] compilerArgs)
Strip out all -J args from the command list.

Field Detail

COMPILER_NAME

public static final String COMPILER_NAME
the name of this adapter for users to select

ERROR_NO_WLRMIC_ON_CLASSPATH

public static final String ERROR_NO_WLRMIC_ON_CLASSPATH
The error string to use if not able to find the weblogic rmic

ERROR_WLRMIC_FAILED

public static final String ERROR_WLRMIC_FAILED
The error string to use if not able to start the weblogic rmic

UNSUPPORTED_STUB_OPTION

public static final String UNSUPPORTED_STUB_OPTION
upsupported error message

WLRMIC_CLASSNAME

public static final String WLRMIC_CLASSNAME
The classname of the weblogic rmic

WL_RMI_SKEL_SUFFIX

public static final String WL_RMI_SKEL_SUFFIX
The skeleton suffix

WL_RMI_STUB_SUFFIX

public static final String WL_RMI_STUB_SUFFIX
The stub suffix

Method Detail

addStubVersionOptions

protected String addStubVersionOptions()
This is an override point; no stub version is returned. If any stub option is set, a warning is printed.

Returns: null, for no stub version

execute

public boolean execute()
Carry out the rmic compilation.

Returns: true if the compilation succeeded

Throws: BuildException on error

getSkelClassSuffix

public String getSkelClassSuffix()
Get the suffix for the rmic skeleton classes

Returns: the skeleton suffix

getStubClassSuffix

public String getStubClassSuffix()
Get the suffix for the rmic stub classes

Returns: the stub suffix

preprocessCompilerArgs

protected String[] preprocessCompilerArgs(String[] compilerArgs)
Strip out all -J args from the command list.

Parameters: compilerArgs the original compiler arguments

Returns: the filtered set.