org.apache.tools.ant.taskdefs.rmicClass WLRmic
- java.lang.Object
- org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter
- org.apache.tools.ant.taskdefs.rmic.WLRmic
- All Implemented Interfaces:
- RmicAdapter
public class WLRmic extends DefaultRmicAdapterThe implementation of the rmic for WebLogic
- Since:
- Ant 1.4
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COMPILER_NAME
the name of this adapter for users to selectstatic java.lang.String
ERROR_NO_WLRMIC_ON_CLASSPATH
The error string to use if not able to find the weblogic rmicstatic java.lang.String
ERROR_WLRMIC_FAILED
The error string to use if not able to start the weblogic rmicstatic java.lang.String
UNSUPPORTED_STUB_OPTION
unsupported error messagestatic java.lang.String
WL_RMI_SKEL_SUFFIX
The skeleton suffixstatic java.lang.String
WL_RMI_STUB_SUFFIX
The stub suffixstatic java.lang.String
WLRMIC_CLASSNAME
The classname of the weblogic rmic
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
Constructor Summary
Constructors Constructor and Description WLRmic()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected java.lang.String
addStubVersionOptions()
This is an override point; no stub version is returned.protected boolean
areIiopAndIdlSupported()
Whether the iiop and idl switches are supported.boolean
execute()
Carry out the rmic compilation.java.lang.String
getSkelClassSuffix()
Get the suffix for the rmic skeleton classesjava.lang.String
getStubClassSuffix()
Get the suffix for the rmic stub classesprotected java.lang.String[]
preprocessCompilerArgs(java.lang.String[] compilerArgs)
Strip out all -J args from the command list.
Methods inherited from class org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter
filterJvmCompilerArgs, getClasspath, getCompileClasspath, getMapper, getRmic, getTieClassSuffix, logAndAddFilesToCompile, setRmic, setupRmicCommand, setupRmicCommand
Field Detail
WLRMIC_CLASSNAME
public static final java.lang.String WLRMIC_CLASSNAMEThe classname of the weblogic rmic
- See Also:
- Constant Field Values
COMPILER_NAME
public static final java.lang.String COMPILER_NAMEthe name of this adapter for users to select
- See Also:
- Constant Field Values
ERROR_NO_WLRMIC_ON_CLASSPATH
public static final java.lang.String ERROR_NO_WLRMIC_ON_CLASSPATHThe error string to use if not able to find the weblogic rmic
- See Also:
- Constant Field Values
ERROR_WLRMIC_FAILED
public static final java.lang.String ERROR_WLRMIC_FAILEDThe error string to use if not able to start the weblogic rmic
- See Also:
- Constant Field Values
WL_RMI_STUB_SUFFIX
public static final java.lang.String WL_RMI_STUB_SUFFIXThe stub suffix
- See Also:
- Constant Field Values
WL_RMI_SKEL_SUFFIX
public static final java.lang.String WL_RMI_SKEL_SUFFIXThe skeleton suffix
- See Also:
- Constant Field Values
UNSUPPORTED_STUB_OPTION
public static final java.lang.String UNSUPPORTED_STUB_OPTIONunsupported error message
- See Also:
- Constant Field Values
Method Detail
areIiopAndIdlSupported
protected boolean areIiopAndIdlSupported()Description copied from class:DefaultRmicAdapter
Whether the iiop and idl switches are supported.This implementation returns false if running on Java 11 onwards and true otherwise.
- Overrides:
areIiopAndIdlSupported
in classDefaultRmicAdapter
- Returns:
- true if the iiop and idl switches are supported
- Since:
- Ant 1.9.11
execute
public boolean execute() throws BuildExceptionCarry out the rmic compilation.
- Returns:
- true if the compilation succeeded
- Throws:
BuildException
- on error
getStubClassSuffix
public java.lang.String getStubClassSuffix()Get the suffix for the rmic stub classes
- Overrides:
getStubClassSuffix
in classDefaultRmicAdapter
- Returns:
- the stub suffix
getSkelClassSuffix
public java.lang.String getSkelClassSuffix()Get the suffix for the rmic skeleton classes
- Overrides:
getSkelClassSuffix
in classDefaultRmicAdapter
- Returns:
- the skeleton suffix
preprocessCompilerArgs
protected java.lang.String[] preprocessCompilerArgs(java.lang.String[] compilerArgs)Strip out all -J args from the command list.
- Overrides:
preprocessCompilerArgs
in classDefaultRmicAdapter
- Parameters:
compilerArgs
- the original compiler arguments- Returns:
- the filtered set.
addStubVersionOptions
protected java.lang.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 classDefaultRmicAdapter
- Returns:
- null, for no stub version