Class SunRmic
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter
- 
- org.apache.tools.ant.taskdefs.rmic.SunRmic
 
 
- 
- All Implemented Interfaces:
- RmicAdapter
 
 public class SunRmic extends DefaultRmicAdapter The implementation of the rmic for SUN's JDK.- Since:
- Ant 1.4
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCOMPILER_NAMEthe name of this adapter for users to selectstatic java.lang.StringERROR_NO_RMIC_ON_CLASSPATHError message to use with the sun rmic is not the classpath.static java.lang.StringERROR_NO_RMIC_ON_CLASSPATH_JAVA_9static java.lang.StringERROR_RMIC_FAILEDError message to use when there is an error starting the sun rmic compilerstatic java.lang.StringRMIC_CLASSNAMEname of the classstatic java.lang.StringRMIC_EXECUTABLEname of the executable- 
Fields 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 Constructor Description SunRmic()
 - 
Method SummaryModifier and Type Method Description booleanexecute()Run the rmic compiler.protected 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.DefaultRmicAdapteraddStubVersionOptions, areIiopAndIdlSupported, filterJvmCompilerArgs, getClasspath, getCompileClasspath, getMapper, getRmic, getSkelClassSuffix, getStubClassSuffix, getTieClassSuffix, logAndAddFilesToCompile, setRmic, setupRmicCommand, setupRmicCommand
 
- 
 
- 
- 
- 
Field Detail- 
RMIC_CLASSNAMEpublic static final java.lang.String RMIC_CLASSNAME name of the class- See Also:
- Constant Field Values
 
 - 
COMPILER_NAMEpublic static final java.lang.String COMPILER_NAME the name of this adapter for users to select- See Also:
- Constant Field Values
 
 - 
RMIC_EXECUTABLEpublic static final java.lang.String RMIC_EXECUTABLE name of the executable- See Also:
- Constant Field Values
 
 - 
ERROR_NO_RMIC_ON_CLASSPATHpublic static final java.lang.String ERROR_NO_RMIC_ON_CLASSPATH Error message to use with the sun rmic is not the classpath.- See Also:
- Constant Field Values
 
 - 
ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9public static final java.lang.String ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9 - See Also:
- Constant Field Values
 
 - 
ERROR_RMIC_FAILEDpublic static final java.lang.String ERROR_RMIC_FAILED Error message to use when there is an error starting the sun rmic compiler- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
executepublic boolean execute() throws BuildExceptionRun the rmic compiler.- Returns:
- true if the compilation succeeded
- Throws:
- BuildException- on error
 
 - 
preprocessCompilerArgsprotected java.lang.String[] preprocessCompilerArgs(java.lang.String[] compilerArgs) Strip out all -J args from the command list.- Overrides:
- preprocessCompilerArgsin class- DefaultRmicAdapter
- Parameters:
- compilerArgs- the original compiler arguments
- Returns:
- the filtered set.
 
 
- 
 
-