Class WLRmic
java.lang.Object
org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter
org.apache.tools.ant.taskdefs.rmic.WLRmic
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the name of this adapter for users to selectstatic final String
The error string to use if not able to find the weblogic rmicstatic final String
The error string to use if not able to start the weblogic rmicstatic final String
unsupported error messagestatic final String
The skeleton suffixstatic final String
The stub suffixstatic final String
The classname of the weblogic rmicFields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
This is an override point; no stub version is returned.protected boolean
Whether the iiop and idl switches are supported.boolean
execute()
Carry out the rmic compilation.Get the suffix for the rmic skeleton classesGet the suffix for the rmic stub classesprotected String[]
preprocessCompilerArgs
(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 Details
-
WLRMIC_CLASSNAME
-
COMPILER_NAME
-
ERROR_NO_WLRMIC_ON_CLASSPATH
The error string to use if not able to find the weblogic rmic- See Also:
-
ERROR_WLRMIC_FAILED
The error string to use if not able to start the weblogic rmic- See Also:
-
WL_RMI_STUB_SUFFIX
-
WL_RMI_SKEL_SUFFIX
-
UNSUPPORTED_STUB_OPTION
-
-
Constructor Details
-
WLRmic
public WLRmic()
-
-
Method Details
-
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.10.3
-
execute
Carry out the rmic compilation.- Returns:
- true if the compilation succeeded
- Throws:
BuildException
- on error
-
getStubClassSuffix
Get the suffix for the rmic stub classes- Overrides:
getStubClassSuffix
in classDefaultRmicAdapter
- Returns:
- the stub suffix
-
getSkelClassSuffix
Get the suffix for the rmic skeleton classes- Overrides:
getSkelClassSuffix
in classDefaultRmicAdapter
- Returns:
- the skeleton suffix
-
preprocessCompilerArgs
Strip out all -J args from the command list.- Overrides:
preprocessCompilerArgs
in classDefaultRmicAdapter
- Parameters:
compilerArgs
- the original compiler arguments- Returns:
- the filtered set.
-
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
-