org.apache.tools.ant.taskdefs.optional.ejb

Class DDCreator

Implemented Interfaces:
Cloneable, SelectorContainer

public class DDCreator
extends MatchingTask

Builds a serialized deployment descriptor given a text file description of the descriptor in the format supported by WebLogic. This ant task is a front end for the weblogic DDCreator tool.

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask

fileset

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

Method Summary

void
execute()
Do the work.
void
setClasspath(String s)
Set the classpath to be used for this compilation.
void
setDescriptors(String dirName)
Set the directory from where the text descriptions of the deployment descriptors are to be read.
void
setDest(String dirName)
Set the directory into which the serialized deployment descriptors are to be written.

Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask

XsetIgnore, XsetItems, add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject

Methods inherited from class org.apache.tools.ant.Task

bindToOwner, execute, 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, log, log, setDescription, setLocation, setProject

Method Details

execute

public void execute()
            throws BuildException
Do the work. The work is actually done by creating a helper task. This approach allows the classpath of the helper task to be set. Since the weblogic tools require the class files of the project's home and remote interfaces to be available in the classpath, this also avoids having to start ant with the class path of the project it is building.
Overrides:
execute in interface Task
Throws:
BuildException - if something goes wrong with the build

setClasspath

public void setClasspath(String s)
Set the classpath to be used for this compilation.
Parameters:
s - the classpath to use for the ddcreator tool.

setDescriptors

public void setDescriptors(String dirName)
Set the directory from where the text descriptions of the deployment descriptors are to be read.
Parameters:
dirName - the name of the directory containing the text deployment descriptor files.

setDest

public void setDest(String dirName)
Set the directory into which the serialized deployment descriptors are to be written.
Parameters:
dirName - the name of the directory into which the serialised deployment descriptors are written.