org.apache.tools.ant.taskdefs.rmic
Class DefaultRmicAdapter
java.lang.Object
org.apache.tools.ant.taskdefs.rmic.DefaultRmicAdapter
- RmicAdapter
public abstract class DefaultRmicAdapter
extends java.lang.Object
This is the default implementation for the RmicAdapter interface.
Currently, this is a cut-and-paste of the original rmic task and
DefaultCopmpilerAdapter.
DefaultRmicAdapter
public DefaultRmicAdapter()
getCompileClasspath
protected Path getCompileClasspath()
Builds the compilation classpath.
getMapper
public FileNameMapper getMapper()
This implementation returns a mapper that may return up to two
file names.
- for JRMP it will return *_getStubClassSuffix (and
*_getSkelClassSuffix if JDK 1.1 is used)
- for IDL it will return a random name, causing <rmic> to
always recompile.
- for IIOP it will return _*_getStubClassSuffix for
interfaces and _*_getStubClassSuffix for non-interfaces (and
determine the interface and create _*_Stub from that).
- getMapper in interface RmicAdapter
getRmic
public Rmic getRmic()
getSkelClassSuffix
protected String getSkelClassSuffix()
getStubClassSuffix
protected String getStubClassSuffix()
getTieClassSuffix
protected String getTieClassSuffix()
logAndAddFilesToCompile
protected void logAndAddFilesToCompile(Commandline cmd)
Logs the compilation parameters, adds the files to compile and logs the
&qout;niceSourceList"
setupRmicCommand
protected Commandline setupRmicCommand()
setup rmic argument for rmic.
setupRmicCommand
protected Commandline setupRmicCommand(String[] options)
setup rmic argument for rmic.
options
- additional parameters needed by a specific
implementation.
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.