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 SummaryFieldsModifier 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 org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapterRMI_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanexecute()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.DefaultRmicAdapteraddStubVersionOptions, areIiopAndIdlSupported, filterJvmCompilerArgs, getClasspath, getCompileClasspath, getMapper, getRmic, getSkelClassSuffix, getStubClassSuffix, getTieClassSuffix, logAndAddFilesToCompile, setRmic, setupRmicCommand, setupRmicCommand
- 
Field Details- 
RMIC_CLASSNAMEname of the class- See Also:
 
- 
COMPILER_NAMEthe name of this adapter for users to select- See Also:
 
- 
RMIC_EXECUTABLEname of the executable- See Also:
 
- 
ERROR_NO_RMIC_ON_CLASSPATHError message to use with the sun rmic is not the classpath.- See Also:
 
- 
ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9- See Also:
 
- 
ERROR_RMIC_FAILEDError message to use when there is an error starting the sun rmic compiler- See Also:
 
 
- 
- 
Constructor Details- 
SunRmicpublic SunRmic()
 
- 
- 
Method Details- 
executeRun the rmic compiler.- Returns:
- true if the compilation succeeded
- Throws:
- BuildException- on error
 
- 
preprocessCompilerArgsStrip out all -J args from the command list.- Overrides:
- preprocessCompilerArgsin class- DefaultRmicAdapter
- Parameters:
- compilerArgs- the original compiler arguments
- Returns:
- the filtered set.
 
 
-