|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool | +--org.apache.tools.ant.taskdefs.optional.ejb.BorlandDeploymentTool
BorlandDeploymentTool is dedicated to the Borland Application Server 4.5 and 4.5.1 This task generates and compiles the stubs and skeletons for all ejb described into the Deployment Descriptor, builds the jar file including the support files and verify whether the produced jar is valid or not. The supported options are:
<ejbjar srcdir="${build.classes}" basejarname="vsmp" descriptordir="${rsc.dir}/hrmanager"> <borland destdir="tstlib"> <classpath refid="classpath" /> </borland> <include name="**\ejb-jar.xml"/> <support dir="${build.classes}"> <include name="demo\smp\*.class"/> <include name="demo\helper\*.class"/> </support> </ejbjar>
Field Summary | |
protected static java.lang.String |
BAS_DD
|
protected static java.lang.String |
BES_DD
|
protected static java.lang.String |
DEFAULT_BAS_DTD_LOCATION
|
protected static java.lang.String |
DEFAULT_BAS45_EJB11_DTD_LOCATION
|
protected static java.lang.String |
JAVA2IIOP
Java2iiop executable |
static java.lang.String |
PUBLICID_BORLAND_EJB
|
protected static java.lang.String |
VERIFY
Verify class |
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 |
Constructor Summary | |
BorlandDeploymentTool()
|
Method Summary | |
protected void |
addVendorFiles(java.util.Hashtable ejbFiles,
java.lang.String ddPrefix)
Add any vendor specific files which should be included in the EJB Jar. |
protected DescriptorHandler |
getBorlandDescriptorHandler(java.io.File srcDir)
|
void |
setBASdtd(java.lang.String inString)
Setter used to store the location of the borland DTD. |
void |
setDebug(boolean debug)
set the debug mode for java2iiop (default false) |
void |
setGenerateclient(boolean b)
setter used to store whether the task will include the generate client task. |
void |
setJava2iiopParams(java.lang.String params)
If filled, the params are added to the java2iiop command. |
void |
setProcessErrorStream(java.io.InputStream is)
Install a handler for the error stream of the subprocess. |
void |
setProcessInputStream(java.io.OutputStream param1)
Install a handler for the input stream of the subprocess. |
void |
setProcessOutputStream(java.io.InputStream is)
Install a handler for the output stream of the subprocess. |
void |
setSuffix(java.lang.String inString)
Setter used to store the suffix for the generated borland jar file. |
void |
setVerify(boolean verify)
set the verify mode for the produced jar (default true) |
void |
setVerifyArgs(java.lang.String args)
sets some additional args to send to verify command |
void |
setVersion(int version)
setter used to store the borland appserver version [4 or 5] |
void |
start()
Start handling of the streams. |
void |
stop()
Stop handling of the streams - will not be restarted. |
protected void |
writeJar(java.lang.String baseName,
java.io.File jarFile,
java.util.Hashtable files,
java.lang.String publicId)
Method used to encapsulate the writing of the JAR file. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool |
addFileToJar, addSupportClasses, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PUBLICID_BORLAND_EJB
protected static final java.lang.String DEFAULT_BAS45_EJB11_DTD_LOCATION
protected static final java.lang.String DEFAULT_BAS_DTD_LOCATION
protected static final java.lang.String BAS_DD
protected static final java.lang.String BES_DD
protected static final java.lang.String JAVA2IIOP
protected static final java.lang.String VERIFY
Constructor Detail |
public BorlandDeploymentTool()
Method Detail |
public void setDebug(boolean debug)
public void setVerify(boolean verify)
public void setSuffix(java.lang.String inString)
inString
- the string to use as the suffix.public void setVerifyArgs(java.lang.String args)
args
- additional command line parameterspublic void setBASdtd(java.lang.String inString)
inString
- the string to use as the DTD location.public void setGenerateclient(boolean b)
public void setVersion(int version)
version
- app server version 4 or 5public void setJava2iiopParams(java.lang.String params)
params
- additional params for java2iiopprotected DescriptorHandler getBorlandDescriptorHandler(java.io.File srcDir)
protected void addVendorFiles(java.util.Hashtable ejbFiles, java.lang.String ddPrefix)
addVendorFiles
in class GenericDeploymentTool
protected void writeJar(java.lang.String baseName, java.io.File jarFile, java.util.Hashtable files, java.lang.String publicId) throws BuildException
writeJar
in class GenericDeploymentTool
BuildException
public void start() throws java.io.IOException
ExecuteStreamHandler
start
in interface ExecuteStreamHandler
java.io.IOException
public void stop()
ExecuteStreamHandler
stop
in interface ExecuteStreamHandler
public void setProcessInputStream(java.io.OutputStream param1) throws java.io.IOException
ExecuteStreamHandler
setProcessInputStream
in interface ExecuteStreamHandler
param1
- output stream to write to the standard input stream of the
subprocess
java.io.IOException
public void setProcessOutputStream(java.io.InputStream is) throws java.io.IOException
ExecuteStreamHandler
setProcessOutputStream
in interface ExecuteStreamHandler
is
-
java.io.IOException
public void setProcessErrorStream(java.io.InputStream is) throws java.io.IOException
ExecuteStreamHandler
setProcessErrorStream
in interface ExecuteStreamHandler
is
- input stream to read from the error stream from the subprocess
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |