public class IPlanetEjbcTask extends Task
[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
Constructor and Description |
---|
IPlanetEjbcTask() |
Modifier and Type | Method and Description |
---|---|
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(File dest)
Sets the destination directory where the EJB source classes must exist
and where the stubs and skeletons will be written.
|
void |
setEjbdescriptor(File ejbdescriptor)
Sets the location of the standard XML EJB descriptor.
|
void |
setIasdescriptor(File iasdescriptor)
Sets the location of the iAS-specific XML EJB descriptor.
|
void |
setIashome(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 .
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public Path createClasspath()
public void execute() throws BuildException
execute
in class Task
BuildException
- if there is a problem.public void setClasspath(Path classpath)
classpath
- The classpath to be used.public void setDebug(boolean debug)
debug
- A boolean indicating if debugging output should be generatedpublic void setDest(File dest)
dest
- The directory where the compiled classes will be written.public void setEjbdescriptor(File ejbdescriptor)
ejbdescriptor
- The name and location of the EJB descriptor.public void setIasdescriptor(File iasdescriptor)
iasdescriptor
- The name and location of the iAS-specific EJB
descriptor.public void setIashome(File iashome)
[install-location]/iplanet/ias6/ias
.iashome
- The home directory for the user's iAS installation.public void setKeepgenerated(boolean keepgenerated)
keepgenerated
- A boolean indicating if the Java source files for
the stubs and skeletons should be retained.