org.apache.tools.ant.taskdefs.rmic

Class WLRmic

Implemented Interfaces:
RmicAdapter

public class WLRmic
extends DefaultRmicAdapter

The implementation of the rmic for WebLogic
Since:
Ant 1.4

Field Summary

static String
COMPILER_NAME
the name of this adapter for users to select
static String
ERROR_NO_WLRMIC_ON_CLASSPATH
The error string to use if not able to find the weblogic rmic
static String
ERROR_WLRMIC_FAILED
The error string to use if not able to start the weblogic rmic
static String
UNSUPPORTED_STUB_OPTION
unsupported error message
static String
WLRMIC_CLASSNAME
The classname of the weblogic rmic
static String
WL_RMI_SKEL_SUFFIX
The skeleton suffix
static String
WL_RMI_STUB_SUFFIX
The stub suffix

Fields inherited from class org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter

RMI_SKEL_SUFFIX, RMI_STUB_SUFFIX, RMI_TIE_SUFFIX, STUB_1_1, STUB_1_2, STUB_COMPAT, STUB_OPTION_1_1, STUB_OPTION_1_2, STUB_OPTION_COMPAT

Method Summary

protected String
addStubVersionOptions()
This is an override point; no stub version is returned.
boolean
execute()
Carry out the rmic compilation.
String
getSkelClassSuffix()
Get the suffix for the rmic skeleton classes
String
getStubClassSuffix()
Get the suffix for the rmic stub classes
protected String[]
preprocessCompilerArgs(String[] compilerArgs)
Strip out all -J args from the command list.

Methods inherited from class org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter

addStubVersionOptions, filterJvmCompilerArgs, getClasspath, getCompileClasspath, getMapper, getRmic, getSkelClassSuffix, getStubClassSuffix, getTieClassSuffix, logAndAddFilesToCompile, preprocessCompilerArgs, setRmic, setupRmicCommand, setupRmicCommand

Field Details

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
unsupported 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 Details

addStubVersionOptions

protected String addStubVersionOptions()
This is an override point; no stub version is returned. If any stub option is set, a warning is printed.
Overrides:
addStubVersionOptions in interface DefaultRmicAdapter
Returns:
null, for no stub version

execute

public boolean execute()
            throws BuildException
Carry out the rmic compilation.
Specified by:
execute in interface RmicAdapter
Returns:
true if the compilation succeeded
Throws:
BuildException - on error

getSkelClassSuffix

public String getSkelClassSuffix()
Get the suffix for the rmic skeleton classes
Overrides:
getSkelClassSuffix in interface DefaultRmicAdapter
Returns:
the skeleton suffix

getStubClassSuffix

public String getStubClassSuffix()
Get the suffix for the rmic stub classes
Overrides:
getStubClassSuffix in interface DefaultRmicAdapter
Returns:
the stub suffix

preprocessCompilerArgs

protected String[] preprocessCompilerArgs(String[] compilerArgs)
Strip out all -J args from the command list.
Overrides:
preprocessCompilerArgs in interface DefaultRmicAdapter
Parameters:
compilerArgs - the original compiler arguments
Returns:
the filtered set.