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

public Class ForkingSunRmic

extends DefaultRmicAdapter
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.rmic.XNewRmic
Imports
java.io.IOException, org.apache.tools.ant.BuildException, .Project, org.apache.tools.ant.taskdefs.Execute, .LogStreamHandler, .Rmic, org.apache.tools.ant.types.Commandline, org.apache.tools.ant.util.JavaEnvUtils

This is an extension of the sun rmic compiler, which forks rather than executes it inline. Why so? Because rmic is dog slow, but if you fork the compiler you can have multiple copies compiling different bits of your project at the same time. Which, on a multi-cpu system results in significant speedups. Also, Java1.6 behaves oddly with -XNew, so we switch it on here if needed.
Since
ant1.7

Field Summary

Modifier and TypeField and Description
public static final String
COMPILER_NAME

the name of this adapter for users to select

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
protected boolean
public boolean

Returns:

true if the command ran successfully
execute
()

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

exec by creating a new command
protected String

Returns:

the executable name.
getExecutableName
()

Override point.

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

Field Detail

COMPILER_NAMEback to summary
public static final String COMPILER_NAME

the name of this adapter for users to select

Constructor Detail

ForkingSunRmicback to summary
public ForkingSunRmic()

Method Detail

areIiopAndIdlSupportedback to summary
protected boolean areIiopAndIdlSupported()

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

Doc from org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter.areIiopAndIdlSupported.

Whether the iiop and idl switches are supported.

This implementation returns false if running on Java 11 onwards and true otherwise.

Returns:boolean

true if the iiop and idl switches are supported

Annotations
@Override
Since
Ant 1.10.3
executeback to summary
public boolean execute() throws BuildException

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

exec by creating a new command

Returns:boolean

true if the command ran successfully

Annotations
@Override
Exceptions
BuildException:
on error
getExecutableNameback to summary
protected String getExecutableName()

Override point.

Returns:String

the executable name.