|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.MatchingTask | +--org.apache.tools.ant.taskdefs.Rmic
Task to compile RMI stubs and skeletons. This task can take the following arguments:
If classname is specified then only that classname will be compiled. If it is absent, then base is traversed for classes according to patterns.
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Rmic()
|
Method Summary | |
Path |
createClasspath()
Creates a nested classpath element. |
Path |
createExtdirs()
Maybe creates a nested extdirs element. |
void |
execute()
Called by the project to let the task do it's work. |
java.io.File |
getBase()
Gets the base directory to output generated class. |
java.lang.String |
getClassname()
Gets the class name to compile. |
Path |
getClasspath()
Gets the classpath. |
java.util.Vector |
getCompileList()
|
boolean |
getDebug()
Gets the debug flag. |
Path |
getExtdirs()
Gets the extension directories that will be used during the compilation. |
java.util.Vector |
getFileList()
Gets file list to compile. |
boolean |
getFiltering()
|
boolean |
getIdl()
|
java.lang.String |
getIdlopts()
Gets additional arguments for idl compile. |
boolean |
getIiop()
Gets iiop flags. |
java.lang.String |
getIiopopts()
Gets additional arguments for iiop. |
boolean |
getIncludeantruntime()
Gets whether or not the ant classpath is to be included in the task's classpath. |
boolean |
getIncludejavaruntime()
Gets whether or not the java runtime should be included in this task's classpath. |
java.lang.ClassLoader |
getLoader()
Classloader for the user-specified classpath. |
java.lang.Class |
getRemoteInterface(java.lang.Class testClass)
Returns the topmost interface that extends Remote for a given class - if one exists. |
java.io.File |
getSourceBase()
Gets the source dirs to find the source java files. |
java.lang.String |
getStubVersion()
|
boolean |
getVerify()
Get verify flag. |
boolean |
isValidRmiRemote(java.lang.String classname)
Load named class and test whether it can be rmic'ed |
protected void |
scanDir(java.io.File baseDir,
java.lang.String[] files,
FileNameMapper mapper)
Scans the directory looking for class files to be compiled. |
void |
setBase(java.io.File base)
Sets the base directory to output generated class. |
void |
setClassname(java.lang.String classname)
Sets the class name to compile. |
void |
setClasspath(Path classpath)
Set the classpath to be used for this compilation. |
void |
setClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setDebug(boolean debug)
Sets the debug flag. |
void |
setExtdirs(Path extdirs)
Sets the extension directories that will be used during the compilation. |
void |
setFiltering(boolean filter)
|
void |
setIdl(boolean idl)
Indicates that IDL output should be generated. |
void |
setIdlopts(java.lang.String idlopts)
pass additional arguments for idl compile |
void |
setIiop(boolean iiop)
Indicates that IIOP compatible stubs should be generated. |
void |
setIiopopts(java.lang.String iiopopts)
pass additional arguments for iiop |
void |
setIncludeantruntime(boolean include)
Include ant's own classpath in this task's classpath? |
void |
setIncludejavaruntime(boolean include)
Sets whether or not to include the java runtime libraries to this task's classpath. |
void |
setSourceBase(java.io.File sourceBase)
Sets the source dirs to find the source java files. |
void |
setStubVersion(java.lang.String stubVersion)
Sets the stub version. |
void |
setVerify(boolean verify)
Indicates that the classes found by the directory match should be checked to see if they implement java.rmi.Remote. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, setDefaultexcludes, setExcludes, setExcludesfile, setIncludes, setIncludesfile, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Rmic()
Method Detail |
public void setBase(java.io.File base)
public java.io.File getBase()
public void setClassname(java.lang.String classname)
public java.lang.String getClassname()
public void setSourceBase(java.io.File sourceBase)
public java.io.File getSourceBase()
public void setStubVersion(java.lang.String stubVersion)
public java.lang.String getStubVersion()
public void setFiltering(boolean filter)
public boolean getFiltering()
public void setDebug(boolean debug)
public boolean getDebug()
public void setClasspath(Path classpath)
public Path createClasspath()
public void setClasspathRef(Reference r)
public Path getClasspath()
public void setVerify(boolean verify)
public boolean getVerify()
public void setIiop(boolean iiop)
public boolean getIiop()
public void setIiopopts(java.lang.String iiopopts)
public java.lang.String getIiopopts()
public void setIdl(boolean idl)
public boolean getIdl()
public void setIdlopts(java.lang.String idlopts)
public java.lang.String getIdlopts()
public java.util.Vector getFileList()
public void setIncludeantruntime(boolean include)
public boolean getIncludeantruntime()
public void setIncludejavaruntime(boolean include)
public boolean getIncludejavaruntime()
public void setExtdirs(Path extdirs)
public Path createExtdirs()
public Path getExtdirs()
public java.util.Vector getCompileList()
public void execute() throws BuildException
Task
execute
in class Task
org.apache.tools.ant.Task
BuildException
- if someting goes wrong with the buildprotected void scanDir(java.io.File baseDir, java.lang.String[] files, FileNameMapper mapper)
public boolean isValidRmiRemote(java.lang.String classname)
public java.lang.Class getRemoteInterface(java.lang.Class testClass)
public java.lang.ClassLoader getLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |