org.apache.tools.ant.taskdefs.optional.ejb
Class BorlandDeploymentTool
- EJBDeploymentTool, ExecuteStreamHandler
public class 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:
- debug (boolean) : turn on the debug mode for generation of
stubs and skeletons (default:false)
- verify (boolean) : turn on the verification at the end of the jar
production (default:true)
- verifyargs (String) : add optional argument to verify command
(see vbj com.inprise.ejb.util.Verify)
- basdtd (String) : location of the BAS DTD
- generateclient (boolean) : turn on the client jar file generation
- version (int) : tell what is the Borland appserver version 4 or 5
<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>
protected void | addVendorFiles(Hashtable ejbFiles, String ddPrefix) - Add any vendor specific files which should be included in the
EJB Jar.
|
protected DescriptorHandler | getBorlandDescriptorHandler(File srcDir)
|
void | setBASdtd(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(String params) - If filled, the params are added to the java2iiop command.
|
void | setProcessErrorStream(InputStream is) - Install a handler for the error stream of the subprocess.
|
void | setProcessInputStream(OutputStream param1) - Install a handler for the input stream of the subprocess.
|
void | setProcessOutputStream(InputStream is)
|
void | setSuffix(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(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(String baseName, File jarFile, Hashtable files, String publicId) - Method used to encapsulate the writing of the JAR file.
|
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 |
BAS_DD
protected static final String BAS_DD
BES_DD
protected static final String BES_DD
DEFAULT_BAS45_EJB11_DTD_LOCATION
protected static final String DEFAULT_BAS45_EJB11_DTD_LOCATION
DEFAULT_BAS_DTD_LOCATION
protected static final String DEFAULT_BAS_DTD_LOCATION
JAVA2IIOP
protected static final String JAVA2IIOP
Java2iiop executable *
PUBLICID_BORLAND_EJB
public static final String PUBLICID_BORLAND_EJB
VERIFY
protected static final String VERIFY
Verify class
addVendorFiles
protected void addVendorFiles(Hashtable ejbFiles,
String ddPrefix)
Add any vendor specific files which should be included in the
EJB Jar.
- addVendorFiles in interface GenericDeploymentTool
getBorlandDescriptorHandler
protected DescriptorHandler getBorlandDescriptorHandler(File srcDir)
setBASdtd
public void setBASdtd(String inString)
Setter used to store the location of the borland DTD. This can be a file on the system
or a resource on the classpath.
inString
- the string to use as the DTD location.
setDebug
public void setDebug(boolean debug)
set the debug mode for java2iiop (default false)
setGenerateclient
public void setGenerateclient(boolean b)
setter used to store whether the task will include the generate client task.
(see : BorlandGenerateClient task)
setJava2iiopParams
public void setJava2iiopParams(String params)
If filled, the params are added to the java2iiop command.
(ex: -no_warn_missing_define)
params
- additional params for java2iiop
setProcessErrorStream
public void setProcessErrorStream(InputStream is)
throws IOException
Install a handler for the error stream of the subprocess.
- setProcessErrorStream in interface ExecuteStreamHandler
is
- input stream to read from the error stream from the subprocess
setProcessInputStream
public void setProcessInputStream(OutputStream param1)
throws IOException
Install a handler for the input stream of the subprocess.
- setProcessInputStream in interface ExecuteStreamHandler
setSuffix
public void setSuffix(String inString)
Setter used to store the suffix for the generated borland jar file.
inString
- the string to use as the suffix.
setVerify
public void setVerify(boolean verify)
set the verify mode for the produced jar (default true)
setVerifyArgs
public void setVerifyArgs(String args)
sets some additional args to send to verify command
args
- additional command line parameters
setVersion
public void setVersion(int version)
setter used to store the borland appserver version [4 or 5]
version
- app server version 4 or 5
writeJar
protected void writeJar(String baseName,
File jarFile,
Hashtable files,
String publicId)
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.
- writeJar in interface GenericDeploymentTool
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.