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
FieldsModifier and TypeFieldDescriptionstatic final Stringthe name of this adapter for users to selectstatic final StringError message to use with the sun rmic is not the classpath.static final Stringstatic final StringError message to use when there is an error starting the sun rmic compilerstatic final Stringname of the classstatic final Stringname of the executableFields inherited from class 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_COMPATModifier and TypeFieldDescriptionstatic final Stringsuffix denoting a skel file: "_Skel"static final Stringsuffix denoting a stub file: "_Stub"static final Stringsuffix denoting a tie file: "_Tie"static final Stringarg for 1.1: "-v1.1"static final Stringarg for 1.2: "-v1.2"static final Stringarg for compat: "-vcompat"static final Stringoption for stub 1.1 in the rmic task: "1.1"static final Stringoption for stub 1.2 in the rmic task: "1.2"static final Stringoption for stub compat in the rmic task: "compat" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute()Run the rmic compiler.protected String[]preprocessCompilerArgs(String[] compilerArgs) Strip out all -J args from the command list.Methods inherited from class DefaultRmicAdapter
addStubVersionOptions, areIiopAndIdlSupported, filterJvmCompilerArgs, getClasspath, getCompileClasspath, getMapper, getRmic, getSkelClassSuffix, getStubClassSuffix, getTieClassSuffix, logAndAddFilesToCompile, setRmic, setupRmicCommand, setupRmicCommandModifier and TypeMethodDescriptionprotected StringThis is an override point; get the stub version off the rmic command and translate that into a compiler-specific argumentprotected booleanWhether the iiop and idl switches are supported.protected String[]filterJvmCompilerArgs(String[] compilerArgs) Strip out all -J args from the command list.Gets the CLASSPATH this rmic process will use.protected PathBuilds the compilation classpath.This implementation returns a mapper that may return up to two file names.getRmic()Get the Rmic attributesprotected StringGets the skeleton class suffixprotected StringGets the stub class suffixprotected StringGets the tie class suffixprotected voidLogs the compilation parameters, adds the files to compile and logs the "niceSourceList"voidSets Rmic attributesprotected CommandlineSetup rmic argument for rmic.protected CommandlinesetupRmicCommand(String[] options) Setup rmic argument for rmic.
-
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:
preprocessCompilerArgsin classDefaultRmicAdapter- Parameters:
compilerArgs- the original compiler arguments- Returns:
- the filtered set.
-