Class WeblogicTOPLinkDeploymentTool
java.lang.Object
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicTOPLinkDeploymentTool
-
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_DDFields 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, DEFAULT_BUFFER_SIZE, EJB_DD, JAR_COMPRESS_LEVEL, MANIFEST, META_DIR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddVendorFiles(Hashtable<String, File> 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.voidCalled to validate that the tool parameters have been configured.Methods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool
addSysproperty, createWLClasspath, getClassLoaderFromJar, getEjbcClass, getJvmDebugLevel, getWeblogicDescriptorHandler, isRebuildRequired, registerKnownDTDs, setArgs, setCompiler, setEjbcClass, setEJBdtd, setJvmargs, setJvmDebugLevel, setKeepgenerated, setKeepgeneric, setNewCMP, setNoEJBC, setOldCMP, setOutputDir, setRebuild, setSuffix, setWeblogicdtd, setWLClasspath, setWLdtd, writeJarMethods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
addFileToJar, addSupportClasses, checkAndAddDependants, checkConfiguration, configure, createClasspath, getClassLoaderForBuild, getCombinedClasspath, getConfig, getDestDir, getJarBaseName, getLocation, getManifestFile, getPublicId, getTask, getVendorDDPrefix, log, needToRebuild, parseEjbFiles, processDescriptor, setClasspath, setDestdir, setGenericJarSuffix, setTask, usingBaseJarName
-
Constructor Details
-
WeblogicTOPLinkDeploymentTool
public WeblogicTOPLinkDeploymentTool()
-
-
Method Details
-
setToplinkdescriptor
Setter used to store the name of the toplink descriptor.- Parameters:
inString- the string to use as the descriptor name.
-
setToplinkdtd
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.
-
getDescriptorHandler
Get the descriptor handler.- Overrides:
getDescriptorHandlerin classGenericDeploymentTool- Parameters:
srcDir- the source file.- Returns:
- the descriptor handler.
-
addVendorFiles
Add any vendor specific files which should be included in the EJB Jar.- Overrides:
addVendorFilesin classWeblogicDeploymentTool- Parameters:
ejbFiles- the hashtable to add files to.ddPrefix- the prefix to use.
-
validateConfigured
Called to validate that the tool parameters have been configured.- Specified by:
validateConfiguredin interfaceEJBDeploymentTool- Overrides:
validateConfiguredin classWeblogicDeploymentTool- Throws:
BuildException- if there is an error.
-