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

Class WeblogicTOPLinkDeploymentTool

Implemented Interfaces:
EJBDeploymentTool

public class WeblogicTOPLinkDeploymentTool
extends WeblogicDeploymentTool

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool

COMPILER_EJB11, COMPILER_EJB20, DEFAULT_COMPILER, DEFAULT_WL51_DTD_LOCATION, DEFAULT_WL51_EJB11_DTD_LOCATION, DEFAULT_WL60_51_DTD_LOCATION, DEFAULT_WL60_DTD_LOCATION, DEFAULT_WL60_EJB11_DTD_LOCATION, DEFAULT_WL60_EJB20_DTD_LOCATION, DEFAULT_WL70_DTD_LOCATION, PUBLICID_EJB11, PUBLICID_EJB20, PUBLICID_WEBLOGIC_EJB510, PUBLICID_WEBLOGIC_EJB600, PUBLICID_WEBLOGIC_EJB700, WL_CMP_DD, WL_DD

Fields inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool

ANALYZER_CLASS_FULL, ANALYZER_CLASS_SUPER, ANALYZER_FULL, ANALYZER_NONE, ANALYZER_SUPER, DEFAULT_ANALYZER, EJB_DD, MANIFEST, META_DIR

Method Summary

protected void
addVendorFiles(Hashtable ejbFiles, String ddPrefix)
Add any vendor specific files which should be included in the EJB Jar.
protected DescriptorHandler
getDescriptorHandler(File srcDir)
void
setToplinkdescriptor(String inString)
Setter used to store the name of the toplink descriptor.
void
setToplinkdtd(String inString)
Setter used to store the location of the toplink DTD file.
void
validateConfigured()
Called to validate that the tool parameters have been configured.

Methods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool

addSysproperty, addVendorFiles, createWLClasspath, getClassLoaderFromJar, getEjbcClass, getJvmDebugLevel, getWeblogicDescriptorHandler, isRebuildRequired, registerKnownDTDs, setArgs, setCompiler, setEJBdtd, setEjbcClass, setJvmDebugLevel, setJvmargs, setKeepgenerated, setKeepgeneric, setNewCMP, setNoEJBC, setOldCMP, setOutputDir, setRebuild, setSuffix, setWLClasspath, setWLdtd, setWeblogicdtd, validateConfigured, writeJar

Methods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool

addFileToJar, addSupportClasses, addVendorFiles, checkAndAddDependants, checkConfiguration, configure, createClasspath, getClassLoaderForBuild, getCombinedClasspath, getConfig, getDescriptorHandler, getDestDir, getJarBaseName, getLocation, getManifestFile, getPublicId, getTask, getVendorDDPrefix, log, needToRebuild, parseEjbFiles, processDescriptor, registerKnownDTDs, setClasspath, setDestdir, setGenericJarSuffix, setTask, usingBaseJarName, validateConfigured, writeJar

Method Details

addVendorFiles

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

getDescriptorHandler

protected DescriptorHandler getDescriptorHandler(File srcDir)
Overrides:
getDescriptorHandler in interface GenericDeploymentTool

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()
            throws BuildException
Called to validate that the tool parameters have been configured.
Specified by:
validateConfigured in interface EJBDeploymentTool
Overrides:
validateConfigured in interface WeblogicDeploymentTool

Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.