org.apache.tools.ant.taskdefs
Class Rmic

java.lang.Object
  |
  +--org.apache.tools.ant.Task
        |
        +--org.apache.tools.ant.taskdefs.MatchingTask
              |
              +--org.apache.tools.ant.taskdefs.Rmic

public class Rmic
extends MatchingTask

Task to compile RMI stubs and skeletons. This task can take the following arguments:

Of these arguments, base is required.

If classname is specified then only that classname will be compiled. If it is absent, then base is traversed for classes according to patterns.

Author:
duncan@x180.com, ludovic.claude@websitewatchers.co.uk, David Maclean david@cm.co.za

Inner classes inherited from class org.apache.tools.ant.taskdefs.MatchingTask
MatchingTask.NameEntry
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
excludeList, includeList, useDefaultExcludes
 
Fields inherited from class org.apache.tools.ant.Task
description, location, project, target, taskName, taskType
 
Constructor Summary
Rmic()
           
 
Method Summary
 Path createClasspath()
          Maybe creates a nesetd classpath element.
 void execute()
          Called by the project to let the task do it's work.
protected  void scanDir(java.io.File baseDir, java.lang.String[] files, boolean shouldVerify)
          Scans the directory looking for class files to be compiled.
 void setBase(java.lang.String base)
           
 void setClass(java.lang.String classname)
           
 void setClassname(java.lang.String classname)
           
 void setClasspath(Path classpath)
          Set the classpath to be used for this compilation.
 void setFiltering(java.lang.String filter)
           
 void setSourceBase(java.lang.String sourceBase)
           
 void setStubVersion(java.lang.String stubVersion)
           
 void setVerify(java.lang.String 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, createInclude, getDirectoryScanner, getProperty, setDefaultexcludes, setExcludes, setExcludesfile, setIgnore, setIncludes, setIncludesfile, setItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getProject, getTaskName, init, log, log, setDescription, setLocation, setOwningTarget, setTaskName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rmic

public Rmic()
Method Detail

setBase

public void setBase(java.lang.String base)

setClass

public void setClass(java.lang.String classname)

setClassname

public void setClassname(java.lang.String classname)

setSourceBase

public void setSourceBase(java.lang.String sourceBase)

setStubVersion

public void setStubVersion(java.lang.String stubVersion)

setFiltering

public void setFiltering(java.lang.String filter)

setClasspath

public void setClasspath(Path classpath)
Set the classpath to be used for this compilation.

createClasspath

public Path createClasspath()
Maybe creates a nesetd classpath element.

setVerify

public void setVerify(java.lang.String verify)
Indicates that the classes found by the directory match should be checked to see if they implement java.rmi.Remote. This defaults to false if not set.

execute

public void execute()
             throws BuildException
Description copied from class: Task
Called by the project to let the task do it's work. Normally it does nothing.
Overrides:
execute in class Task
Following copied from class: org.apache.tools.ant.Task
Throws:
BuildException - if someting goes wrong with the build

scanDir

protected void scanDir(java.io.File baseDir,
                       java.lang.String[] files,
                       boolean shouldVerify)
Scans the directory looking for class files to be compiled. The result is returned in the class variable compileList.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.