org.apache.tools.ant.taskdefs.optional.ejb
Class WeblogicDeploymentTool
java.lang.Object
|
+--org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
|
+--org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool
- All Implemented Interfaces:
- EJBDeploymentTool
- Direct Known Subclasses:
- WeblogicTOPLinkDeploymentTool
- public class WeblogicDeploymentTool
- extends GenericDeploymentTool
Field Summary |
protected static java.lang.String |
WL_CMP_DD
|
protected static java.lang.String |
WL_DD
|
protected static java.lang.String |
WL_DTD
|
protected static java.lang.String |
WL_HTTP_DTD
|
Method Summary |
protected void |
addVendorFiles(java.util.Hashtable ejbFiles,
java.lang.String baseName)
Add any vendor specific files which should be included in the
EJB Jar. |
protected DescriptorHandler |
getDescriptorHandler(java.io.File srcDir)
|
void |
setArgs(java.lang.String args)
sets some additional args to send to ejbc. |
void |
setClasspath(Path classpath)
Set the classpath to be used for this compilation. |
void |
setCompiler(java.lang.String compiler)
The compiler (switch -compiler ) to use |
void |
setKeepgenerated(java.lang.String inValue)
Sets whether -keepgenerated is passed to ejbc (that is,
the .java source files are kept). |
void |
setKeepgeneric(boolean inValue)
Setter used to store the value of keepGeneric |
void |
setSuffix(java.lang.String inString)
Setter used to store the suffix for the generated weblogic jar file. |
void |
setWeblogicdtd(java.lang.String inString)
Setter used to store the location of the weblogic DTD. |
void |
validateConfigured()
Called to validate that the tool parameters have been configured. |
protected void |
writeJar(java.lang.String baseName,
java.io.File jarFile,
java.util.Hashtable files)
Method used to encapsulate the writing of the JAR file. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool |
addFileToJar, configure, getBaseJarName, getBaseNameTerminator, getDescriptorDir, getDestDir, getSrcDir, getTask, processDescriptor, setDestdir, setGenericJarSuffix, setTask, usingBaseJarName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WL_DD
protected static final java.lang.String WL_DD
WL_CMP_DD
protected static final java.lang.String WL_CMP_DD
WL_DTD
protected static final java.lang.String WL_DTD
WL_HTTP_DTD
protected static final java.lang.String WL_HTTP_DTD
WeblogicDeploymentTool
public WeblogicDeploymentTool()
setClasspath
public void setClasspath(Path classpath)
- Set the classpath to be used for this compilation.
setCompiler
public void setCompiler(java.lang.String compiler)
- The compiler (switch
-compiler
) to use
setSuffix
public void setSuffix(java.lang.String inString)
- Setter used to store the suffix for the generated weblogic jar file.
- Parameters:
inString
- the string to use as the suffix.
setKeepgeneric
public void setKeepgeneric(boolean inValue)
- Setter used to store the value of keepGeneric
- Parameters:
inValue
- a string, either 'true' or 'false'.
setKeepgenerated
public void setKeepgenerated(java.lang.String inValue)
- Sets whether -keepgenerated is passed to ejbc (that is,
the .java source files are kept).
- Parameters:
inValue
- either 'true' or 'false'
setArgs
public void setArgs(java.lang.String args)
- sets some additional args to send to ejbc.
setWeblogicdtd
public void setWeblogicdtd(java.lang.String inString)
- Setter used to store the location of the weblogic DTD. This can be a file on the system
or a resource on the classpath.
- Parameters:
inString
- the string to use as the DTD location.
getDescriptorHandler
protected DescriptorHandler getDescriptorHandler(java.io.File srcDir)
- Overrides:
getDescriptorHandler
in class GenericDeploymentTool
addVendorFiles
protected void addVendorFiles(java.util.Hashtable ejbFiles,
java.lang.String baseName)
- Add any vendor specific files which should be included in the
EJB Jar.
- Overrides:
addVendorFiles
in class GenericDeploymentTool
writeJar
protected void writeJar(java.lang.String baseName,
java.io.File jarFile,
java.util.Hashtable files)
throws BuildException
- Method used to encapsulate the writing of the JAR file. Iterates over the
filenames/java.io.Files in the Hashtable stored on the instance variable
ejbFiles.
- Overrides:
writeJar
in class GenericDeploymentTool
validateConfigured
public void validateConfigured()
throws BuildException
- Called to validate that the tool parameters have been configured.
- Overrides:
validateConfigured
in class GenericDeploymentTool
Copyright © 2000 Apache Software Foundation. All Rights Reserved.