|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | 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.optional.ejb.IPlanetEjbcTask
public class IPlanetEjbcTask
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:
[install-location]/iplanet/ias6/ias
directory). If omitted, the ejbc utility
must be on the user's system path.
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.
IPlanetEjbc
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
IPlanetEjbcTask()
|
Method Summary | |
---|---|
Path |
createClasspath()
Adds to the classpath used when compiling the EJB stubs and skeletons. |
void |
execute()
Does the work. |
void |
setClasspath(Path classpath)
Sets the classpath to be used when compiling the EJB stubs and skeletons. |
void |
setDebug(boolean debug)
If true, debugging output will be generated when ejbc is executed. |
void |
setDest(java.io.File dest)
Sets the destination directory where the EJB source classes must exist and where the stubs and skeletons will be written. |
void |
setEjbdescriptor(java.io.File ejbdescriptor)
Sets the location of the standard XML EJB descriptor. |
void |
setIasdescriptor(java.io.File iasdescriptor)
Sets the location of the iAS-specific XML EJB descriptor. |
void |
setIashome(java.io.File iashome)
May be used to specify the "home" directory for this iAS installation. |
void |
setKeepgenerated(boolean keepgenerated)
If true, the Java source files which are generated by ejbc will be saved . |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IPlanetEjbcTask()
Method Detail |
---|
public void setEjbdescriptor(java.io.File ejbdescriptor)
ejbdescriptor
- The name and location of the EJB descriptor.public void setIasdescriptor(java.io.File iasdescriptor)
iasdescriptor
- The name and location of the iAS-specific EJB
descriptor.public void setDest(java.io.File dest)
dest
- The directory where the compiled classes will be written.public void setClasspath(Path classpath)
classpath
- The classpath to be used.public Path createClasspath()
public void setKeepgenerated(boolean keepgenerated)
keepgenerated
- A boolean indicating if the Java source files for
the stubs and skeletons should be retained.public void setDebug(boolean debug)
debug
- A boolean indicating if debugging output should be generatedpublic void setIashome(java.io.File iashome)
[install-location]/iplanet/ias6/ias
.
iashome
- The home directory for the user's iAS installation.public void execute() throws BuildException
execute
in class Task
BuildException
- if there is a problem.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |