org.acplt.oncrpc.ant
Class JrpcgenTask
java.lang.Object
org.apache.tools.ant.Task
org.acplt.oncrpc.ant.JrpcgenTask
public class JrpcgenTask
- extends org.apache.tools.ant.Task
Ant task to run the ONC/RPC '.x' file compiler provided in the Remote Tea
library: jrpcgen.
The Remote Tea library is a complete open source implementation of
the ONC/RPC standard, developped by the Chair of Process Control
Engineering of University of Aachen, Germany.
Remote Tea can be found at
http://www.plt.rwth-aachen.de/ks/english/remotetea.html.
The task attributes are:
- srcfile : '.x' file to compile (mandatory)
- destdir : directory where generated files need to be placed
(mandatory). If a 'package' directive is used,
do not add the package directories to destDir
(it is done automatically by the task)
- package : package name to be used for generated files (optional)
- createdir : indicates whether jrpcgen must create destdir if it does
not exist (optional). Defaults to no.
- verbose : indicates whether jrpcgen must be verbose (optional).
Defaults to no.
- debug : indicates whether jrpcgen must trace debug information
(optional). Defaults to no.
- backup : indicates whether jrpcgen must backup files (optional).
Defaults to no.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srcFile
private java.io.File srcFile
destDir
private java.io.File destDir
packageName
private java.lang.String packageName
debug
private boolean debug
- Task attribute "debug".
verbose
private boolean verbose
backup
private boolean backup
createDir
private boolean createDir
JrpcgenTask
public JrpcgenTask()
setSrcfile
public void setSrcfile(java.io.File srcFile)
setDestdir
public void setDestdir(java.io.File destDir)
setPackage
public void setPackage(java.lang.String packageName)
setCreatedir
public void setCreatedir(boolean createDir)
setDebug
public void setDebug(boolean debug)
setVerbose
public void setVerbose(boolean verbose)
setBackup
public void setBackup(boolean backup)
execute
public void execute()
throws BuildException
- Throws:
BuildException
checkAttributes
private void checkAttributes()
throws BuildException
- Throws:
BuildException
dumpState
private void dumpState()