[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
| Modifier and Type | Field and Description |
|---|---|
| private Path | |
| private boolean | |
| private File | |
| private File | |
| private File | |
| private File | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Path | Returns: the class path.Adds to the classpath used when compiling the EJB stubs and skeletons. |
| public void | |
| private void | executeEjbc(SAXParser
SAXParser that may be used to process the EJB
descriptors saxParser)Executes the EJBc utility using the SAXParser provided. |
| private Path | Returns: Path The classpath to be used for EJBc.Returns the CLASSPATH to be used when calling EJBc. |
| private SAXParser | Returns: Parser which may be used to process the EJB descriptors.Returns a SAXParser that may be used to process the XML descriptors. |
| public void | setClasspath(Path
The classpath to be used. classpath)Sets the classpath to be used when compiling the EJB stubs and skeletons. |
| public void | setDebug(boolean
A boolean indicating if debugging output should be generated debug)If true, debugging output will be generated when ejbc is executed. |
| public void | |
| public void | setEjbdescriptor(File
The name and location of the EJB descriptor. ejbdescriptor)Sets the location of the standard XML EJB descriptor. |
| public void | setIasdescriptor(File
The name and location of the iAS-specific EJB
descriptor. iasdescriptor)Sets the location of the iAS-specific XML EJB descriptor. |
| public void | setIashome(File
The home directory for the user's iAS installation. iashome)May be used to specify the "home" directory for this iAS installation. |
| public void | setKeepgenerated(boolean
A boolean indicating if the Java source files for
the stubs and skeletons should be retained. keepgenerated)If true, the Java source files which are generated by ejbc will be saved . |
| classpath | back to summary |
|---|---|
| private Path classpath | |
| debug | back to summary |
|---|---|
| private boolean debug | |
| dest | back to summary |
|---|---|
| private File dest | |
| ejbdescriptor | back to summary |
|---|---|
| private File ejbdescriptor | |
| iasdescriptor | back to summary |
|---|---|
| private File iasdescriptor | |
| iashome | back to summary |
|---|---|
| private File iashome | |
| keepgenerated | back to summary |
|---|---|
| private boolean keepgenerated | |
| IPlanetEjbcTask | back to summary |
|---|---|
| public IPlanetEjbcTask() | |
| checkConfiguration | back to summary |
|---|---|
| private void checkConfiguration() throws BuildException Verifies that the user selections are valid.
| |
| createClasspath | back to summary |
|---|---|
| public Path createClasspath() Adds to the classpath used when compiling the EJB stubs and skeletons.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Does the work.
| |
| executeEjbc | back to summary |
|---|---|
| private void executeEjbc(SAXParser saxParser) throws BuildException Executes the EJBc utility using the SAXParser provided.
| |
| getClasspath | back to summary |
|---|---|
| private Path getClasspath() Returns the CLASSPATH to be used when calling EJBc. If no user CLASSPATH is specified, the System classpath is returned instead.
| |
| getParser | back to summary |
|---|---|
| private SAXParser getParser() throws BuildException Returns a SAXParser that may be used to process the XML descriptors.
| |
| setClasspath | back to summary |
|---|---|
| public void setClasspath(Path classpath) Sets the classpath to be used when compiling the EJB stubs and skeletons.
| |
| setDebug | back to summary |
|---|---|
| public void setDebug(boolean debug) If true, debugging output will be generated when ejbc is executed.
| |
| setDest | back to summary |
|---|---|
| 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.
| |
| setEjbdescriptor | back to summary |
|---|---|
| public void setEjbdescriptor(File ejbdescriptor) Sets the location of the standard XML EJB descriptor. Typically, this file is named "ejb-jar.xml".
| |
| setIasdescriptor | back to summary |
|---|---|
| public void setIasdescriptor(File iasdescriptor) Sets the location of the iAS-specific XML EJB descriptor. Typically, this file is named "ias-ejb-jar.xml".
| |
| setIashome | back to summary |
|---|---|
| public void setIashome(File iashome) May be used to specify the "home" directory for this iAS installation.
The directory specified should typically be
| |
| setKeepgenerated | back to summary |
|---|---|
| public void setKeepgenerated(boolean keepgenerated) If true, the Java source files which are generated by ejbc will be saved .
| |