Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.rmic

public Class SunRmic

extends DefaultRmicAdapter
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.lang.reflect.Constructor, .Method, org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.taskdefs.LogOutputStream, org.apache.tools.ant.types.Commandline, org.apache.tools.ant.util.JavaEnvUtils

The implementation of the rmic for SUN's JDK.
Since
Ant 1.4

Field Summary

Modifier and TypeField and Description
public static final String
COMPILER_NAME

the name of this adapter for users to select

public static final String
ERROR_NO_RMIC_ON_CLASSPATH

Error message to use with the sun rmic is not the classpath.

public static final String
public static final String
ERROR_RMIC_FAILED

Error message to use when there is an error starting the sun rmic compiler

public static final String
RMIC_CLASSNAME

name of the class

public static final String
RMIC_EXECUTABLE

name of the executable

Inherited from org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter:
RMI_SKEL_SUFFIXRMI_STUB_SUFFIXRMI_TIE_SUFFIXSTUB_1_1STUB_1_2STUB_COMPATSTUB_OPTION_1_1STUB_OPTION_1_2STUB_OPTION_COMPAT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the compilation succeeded
execute
()

Implements org.apache.tools.ant.taskdefs.rmic.RmicAdapter.execute.

Run the rmic compiler.
protected String[]

Returns:

the filtered set.
preprocessCompilerArgs
(String[]
the original compiler arguments
compilerArgs
)

Overrides org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter.preprocessCompilerArgs.

Strip out all -J args from the command list.
Inherited from org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter:
addStubVersionOptionsareIiopAndIdlSupportedfilterJvmCompilerArgsgetClasspathgetCompileClasspathgetMappergetRmicgetSkelClassSuffixgetStubClassSuffixgetTieClassSuffixlogAndAddFilesToCompilesetRmicsetupRmicCommandsetupRmicCommand

Field Detail

COMPILER_NAMEback to summary
public static final String COMPILER_NAME

the name of this adapter for users to select

ERROR_NO_RMIC_ON_CLASSPATHback to summary
public static final String ERROR_NO_RMIC_ON_CLASSPATH

Error message to use with the sun rmic is not the classpath.

ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9back to summary
public static final String ERROR_NO_RMIC_ON_CLASSPATH_JAVA_9
ERROR_RMIC_FAILEDback to summary
public static final String ERROR_RMIC_FAILED

Error message to use when there is an error starting the sun rmic compiler

RMIC_CLASSNAMEback to summary
public static final String RMIC_CLASSNAME

name of the class

RMIC_EXECUTABLEback to summary
public static final String RMIC_EXECUTABLE

name of the executable

Constructor Detail

SunRmicback to summary
public SunRmic()

Method Detail

executeback to summary
public boolean execute() throws BuildException

Implements org.apache.tools.ant.taskdefs.rmic.RmicAdapter.execute.

Run the rmic compiler.

Returns:boolean

true if the compilation succeeded

Annotations
@Override
Exceptions
BuildException:
on error
preprocessCompilerArgsback to summary
protected String[] preprocessCompilerArgs(String[] compilerArgs)

Overrides org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter.preprocessCompilerArgs.

Strip out all -J args from the command list.

Parameters
compilerArgs:String[]

the original compiler arguments

Returns:String[]

the filtered set.

Annotations
@Override