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

Class WeblogicTOPLinkDeploymentTool

public class WeblogicTOPLinkDeploymentTool extends WeblogicDeploymentTool

Deployment tool for Weblogic TOPLink.
Method Summary
protected voidaddVendorFiles(Hashtable ejbFiles, String ddPrefix)
Add any vendor specific files which should be included in the EJB Jar.
protected DescriptorHandlergetDescriptorHandler(File srcDir)
Get the descriptor handler.
voidsetToplinkdescriptor(String inString)
Setter used to store the name of the toplink descriptor.
voidsetToplinkdtd(String inString)
Setter used to store the location of the toplink DTD file.
voidvalidateConfigured()
Called to validate that the tool parameters have been configured.

Method Detail

addVendorFiles

protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix)
Add any vendor specific files which should be included in the EJB Jar.

Parameters: ejbFiles the hashtable to add files to. ddPrefix the prefix to use.

getDescriptorHandler

protected DescriptorHandler getDescriptorHandler(File srcDir)
Get the descriptor handler.

Parameters: srcDir the source file.

Returns: the descriptor handler.

setToplinkdescriptor

public void setToplinkdescriptor(String inString)
Setter used to store the name of the toplink descriptor.

Parameters: inString the string to use as the descriptor name.

setToplinkdtd

public void setToplinkdtd(String inString)
Setter used to store the location of the toplink DTD file. This is expected to be an URL (file or otherwise). If running this on NT using a file URL, the safest thing would be to not use a drive spec in the URL and make sure the file resides on the drive that ANT is running from. This will keep the setting in the build XML platform independent.

Parameters: inString the string to use as the DTD location.

validateConfigured

public void validateConfigured()
Called to validate that the tool parameters have been configured.

Throws: BuildException if there is an error.