Class SunRmic
java.lang.Object
org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter
org.apache.tools.ant.taskdefs.rmic.SunRmic
- All Implemented Interfaces:
RmicAdapter
The implementation of the rmic for SUN's JDK.
- Since:
- Ant 1.4
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the name of this adapter for users to selectstatic final String
Error message to use with the sun rmic is not the classpath.static final String
static final String
Error message to use when there is an error starting the sun rmic compilerstatic final String
name of the classstatic final String
name of the executableFields 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 TypeMethodDescriptionboolean
execute()
Run the rmic compiler.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, areIiopAndIdlSupported, filterJvmCompilerArgs, getClasspath, getCompileClasspath, getMapper, getRmic, getSkelClassSuffix, getStubClassSuffix, getTieClassSuffix, logAndAddFilesToCompile, setRmic, setupRmicCommand, setupRmicCommand
-
Field Details
-
RMIC_CLASSNAME
-
COMPILER_NAME
-
RMIC_EXECUTABLE
-
ERROR_NO_RMIC_ON_CLASSPATH
Error message to use with the sun rmic is not the classpath.- See Also:
-
ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9
- See Also:
-
ERROR_RMIC_FAILED
Error message to use when there is an error starting the sun rmic compiler- See Also:
-
-
Constructor Details
-
SunRmic
public SunRmic()
-
-
Method Details
-
execute
Run the rmic compiler.- Returns:
- true if the compilation succeeded
- Throws:
BuildException
- on error
-
preprocessCompilerArgs
Strip out all -J args from the command list.- Overrides:
preprocessCompilerArgs
in classDefaultRmicAdapter
- Parameters:
compilerArgs
- the original compiler arguments- Returns:
- the filtered set.
-