public abstract class DefaultRmicAdapter extends Object implements RmicAdapter
Modifier and Type | Field and Description |
---|---|
static String |
RMI_SKEL_SUFFIX
suffix denoting a skel file: "_Skel"
|
static String |
RMI_STUB_SUFFIX
suffix denoting a stub file: "_Stub"
|
static String |
RMI_TIE_SUFFIX
suffix denoting a tie file: "_Tie"
|
static String |
STUB_1_1
arg for 1.1: "-v1.1"
|
static String |
STUB_1_2
arg for 1.2: "-v1.2"
|
static String |
STUB_COMPAT
arg for compat: "-vcompat"
|
static String |
STUB_OPTION_1_1
option for stub 1.1 in the rmic task: "1.1"
|
static String |
STUB_OPTION_1_2
option for stub 1.2 in the rmic task: "1.2"
|
static String |
STUB_OPTION_COMPAT
option for stub compat in the rmic task: "compat"
|
Constructor and Description |
---|
DefaultRmicAdapter()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
addStubVersionOptions()
This is an override point; get the stub version off the rmic command and
translate that into a compiler-specific argument
|
protected String[] |
filterJvmCompilerArgs(String[] compilerArgs)
Strip out all -J args from the command list.
|
Path |
getClasspath()
Gets the CLASSPATH this rmic process will use.
|
protected Path |
getCompileClasspath()
Builds the compilation classpath.
|
FileNameMapper |
getMapper()
This implementation returns a mapper that may return up to two
file names.
|
Rmic |
getRmic()
Get the Rmic attributes
|
protected String |
getSkelClassSuffix()
Gets the skeleton class suffix
|
protected String |
getStubClassSuffix()
Gets the stub class suffix
|
protected String |
getTieClassSuffix()
Gets the tie class suffix
|
protected void |
logAndAddFilesToCompile(Commandline cmd)
Logs the compilation parameters, adds the files to compile and logs the
"niceSourceList"
|
protected String[] |
preprocessCompilerArgs(String[] compilerArgs)
Preprocess the compiler arguments in any way you see fit.
|
void |
setRmic(Rmic attributes)
Sets Rmic attributes
|
protected Commandline |
setupRmicCommand()
Setup rmic argument for rmic.
|
protected Commandline |
setupRmicCommand(String[] options)
Setup rmic argument for rmic.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public static final String RMI_SKEL_SUFFIX
public static final String RMI_STUB_SUFFIX
public static final String RMI_TIE_SUFFIX
public static final String STUB_1_1
public static final String STUB_1_2
public static final String STUB_COMPAT
public static final String STUB_OPTION_1_1
public static final String STUB_OPTION_1_2
public static final String STUB_OPTION_COMPAT
protected String addStubVersionOptions()
protected String[] filterJvmCompilerArgs(String[] compilerArgs)
preprocessCompilerArgs(String[])
if you have a non-forking
compiler.compilerArgs
- the original compiler argumentspublic Path getClasspath()
getClasspath
in interface RmicAdapter
protected Path getCompileClasspath()
public FileNameMapper getMapper()
getMapper
in interface RmicAdapter
FileNameMapper
public Rmic getRmic()
protected String getSkelClassSuffix()
protected String getStubClassSuffix()
protected String getTieClassSuffix()
protected void logAndAddFilesToCompile(Commandline cmd)
cmd
- the commandline argsprotected String[] preprocessCompilerArgs(String[] compilerArgs)
compilerArgs
- the original compiler argumentspublic void setRmic(Rmic attributes)
setRmic
in interface RmicAdapter
attributes
- the rmic attributesprotected Commandline setupRmicCommand()
protected Commandline setupRmicCommand(String[] options)
options
- additional parameters needed by a specific
implementation.