Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » optional » ejb » [javadoc | source]
org.apache.tools.ant.taskdefs.optional.ejb
public class: IPlanetEjbcTask [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask

All Implemented Interfaces:
    Cloneable

Compiles EJB stubs and skeletons for the iPlanet Application Server. The EJBs to be processed are specified by the EJB 1.1 standard XML descriptor, and additional attributes are obtained from the iPlanet Application Server-specific XML descriptor. Since the XML descriptors can include multiple EJBs, this is a convenient way of specifying many EJBs in a single Ant task. The following attributes are allowed:

For each EJB specified, this task will locate the three classes that comprise the EJB. If these class files cannot be located in the dest directory, the task will fail. The task will also attempt to locate the EJB stubs and skeletons in this directory. If found, the timestamps on the stubs and skeletons will be checked to ensure they are up to date. Only if these files cannot be found or if they are out of date will ejbc be called to generate new stubs and skeletons.

Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask Summary:
createClasspath,   execute,   setClasspath,   setDebug,   setDest,   setEjbdescriptor,   setIasdescriptor,   setIashome,   setKeepgenerated
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask Detail:
 public Path createClasspath() 
    Adds to the classpath used when compiling the EJB stubs and skeletons.
 public  void execute() throws BuildException 
    Does the work.
 public  void setClasspath(Path classpath) 
    Sets the classpath to be used when compiling the EJB stubs and skeletons.
 public  void setDebug(boolean debug) 
    If true, debugging output will be generated when ejbc is executed.
 public  void setDest(File dest) 
    Sets the destination directory where the EJB source classes must exist and where the stubs and skeletons will be written. The destination directory must exist before this task is executed.
 public  void setEjbdescriptor(File ejbdescriptor) 
    Sets the location of the standard XML EJB descriptor. Typically, this file is named "ejb-jar.xml".
 public  void setIasdescriptor(File iasdescriptor) 
    Sets the location of the iAS-specific XML EJB descriptor. Typically, this file is named "ias-ejb-jar.xml".
 public  void setIashome(File iashome) 
    May be used to specify the "home" directory for this iAS installation. The directory specified should typically be [install-location]/iplanet/ias6/ias.
 public  void setKeepgenerated(boolean keepgenerated) 
    If true, the Java source files which are generated by ejbc will be saved .