Class BorlandDeploymentTool
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
- 
- org.apache.tools.ant.taskdefs.optional.ejb.BorlandDeploymentTool
 
 
- 
- All Implemented Interfaces:
- ExecuteStreamHandler,- EJBDeploymentTool
 
 public class BorlandDeploymentTool extends GenericDeploymentTool implements ExecuteStreamHandler 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>
- 
- 
Field SummaryFields Modifier and Type Field Description protected static java.lang.StringBAS_DDprotected static java.lang.StringBES_DDprotected static java.lang.StringDEFAULT_BAS_DTD_LOCATIONprotected static java.lang.StringDEFAULT_BAS45_EJB11_DTD_LOCATIONprotected static java.lang.StringJAVA2IIOPJava2iiop executablestatic java.lang.StringPUBLICID_BORLAND_EJBBorland 1.1 ejb idprotected static java.lang.StringVERIFYVerify class- 
Fields inherited from class org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentToolANALYZER_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 SummaryConstructors Constructor Description BorlandDeploymentTool()
 - 
Method SummaryModifier and Type Method Description protected voidaddVendorFiles(java.util.Hashtable<java.lang.String,java.io.File> ejbFiles, java.lang.String ddPrefix)Add any vendor specific files which should be included in the EJB Jar.protected DescriptorHandlergetBorlandDescriptorHandler(java.io.File srcDir)Get the borland descriptor handler.voidsetBASdtd(java.lang.String inString)Setter used to store the location of the borland DTD.voidsetDebug(boolean debug)set the debug mode for java2iiop (default false)voidsetGenerateclient(boolean b)setter used to store whether the task will include the generate client task.voidsetJava2iiopParams(java.lang.String params)If filled, the params are added to the java2iiop command.voidsetProcessErrorStream(java.io.InputStream is)Set the error stream of the process.voidsetProcessInputStream(java.io.OutputStream param1)Install a handler for the input stream of the subprocess.voidsetProcessOutputStream(java.io.InputStream is)Set the output stream of the process.voidsetSuffix(java.lang.String inString)Setter used to store the suffix for the generated borland jar file.voidsetVerify(boolean verify)set the verify mode for the produced jar (default true)voidsetVerifyArgs(java.lang.String args)sets some additional args to send to verify commandvoidsetVersion(int version)setter used to store the borland appserver version [4 or 5]voidstart()Start handling of the streams.voidstop()Stop handling of the streams - will not be restarted.protected voidwriteJar(java.lang.String baseName, java.io.File jarFile, java.util.Hashtable<java.lang.String,java.io.File> 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.GenericDeploymentTooladdFileToJar, 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
 
- 
 
- 
- 
- 
Field Detail- 
PUBLICID_BORLAND_EJBpublic static final java.lang.String PUBLICID_BORLAND_EJB Borland 1.1 ejb id- See Also:
- Constant Field Values
 
 - 
DEFAULT_BAS45_EJB11_DTD_LOCATIONprotected static final java.lang.String DEFAULT_BAS45_EJB11_DTD_LOCATION - See Also:
- Constant Field Values
 
 - 
DEFAULT_BAS_DTD_LOCATIONprotected static final java.lang.String DEFAULT_BAS_DTD_LOCATION - See Also:
- Constant Field Values
 
 - 
BAS_DDprotected static final java.lang.String BAS_DD - See Also:
- Constant Field Values
 
 - 
BES_DDprotected static final java.lang.String BES_DD - See Also:
- Constant Field Values
 
 - 
JAVA2IIOPprotected static final java.lang.String JAVA2IIOP Java2iiop executable- See Also:
- Constant Field Values
 
 - 
VERIFYprotected static final java.lang.String VERIFY Verify class- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setDebugpublic void setDebug(boolean debug) set the debug mode for java2iiop (default false)- Parameters:
- debug- the setting to use.
 
 - 
setVerifypublic void setVerify(boolean verify) set the verify mode for the produced jar (default true)- Parameters:
- verify- the setting to use.
 
 - 
setSuffixpublic void setSuffix(java.lang.String inString) Setter used to store the suffix for the generated borland jar file.- Parameters:
- inString- the string to use as the suffix.
 
 - 
setVerifyArgspublic void setVerifyArgs(java.lang.String args) sets some additional args to send to verify command- Parameters:
- args- additional command line parameters
 
 - 
setBASdtdpublic void setBASdtd(java.lang.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.- Parameters:
- inString- the string to use as the DTD location.
 
 - 
setGenerateclientpublic void setGenerateclient(boolean b) setter used to store whether the task will include the generate client task. (see : BorlandGenerateClient task)- Parameters:
- b- if true generate the client task.
 
 - 
setVersionpublic void setVersion(int version) setter used to store the borland appserver version [4 or 5]- Parameters:
- version- app server version 4 or 5
 
 - 
setJava2iiopParamspublic void setJava2iiopParams(java.lang.String params) If filled, the params are added to the java2iiop command. (ex: -no_warn_missing_define)- Parameters:
- params- additional params for java2iiop
 
 - 
getBorlandDescriptorHandlerprotected DescriptorHandler getBorlandDescriptorHandler(java.io.File srcDir) Get the borland descriptor handler.- Parameters:
- srcDir- the source directory.
- Returns:
- the descriptor.
 
 - 
addVendorFilesprotected void addVendorFiles(java.util.Hashtable<java.lang.String,java.io.File> ejbFiles, java.lang.String ddPrefix)Add any vendor specific files which should be included in the EJB Jar.- Overrides:
- addVendorFilesin class- GenericDeploymentTool
- Parameters:
- ejbFiles- the map to add the files to.
- ddPrefix- the prefix to use.
 
 - 
writeJarprotected void writeJar(java.lang.String baseName, java.io.File jarFile, java.util.Hashtable<java.lang.String,java.io.File> files, java.lang.String publicId) throws BuildExceptionMethod 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:
- writeJarin class- GenericDeploymentTool
- Parameters:
- baseName- the base name.
- jarFile- the jar file to write to.
- files- the files to write to the jar.
- publicId- the id to use.
- Throws:
- BuildException- if there is an error.
 
 - 
startpublic void start() throws java.io.IOExceptionStart handling of the streams..- Specified by:
- startin interface- ExecuteStreamHandler
- Throws:
- java.io.IOException- on error
 
 - 
stoppublic void stop() Stop handling of the streams - will not be restarted..- Specified by:
- stopin interface- ExecuteStreamHandler
 
 - 
setProcessInputStreampublic void setProcessInputStream(java.io.OutputStream param1) throws java.io.IOExceptionInstall a handler for the input stream of the subprocess..- Specified by:
- setProcessInputStreamin interface- ExecuteStreamHandler
- Parameters:
- param1- output stream to write to the standard input stream of the subprocess
- Throws:
- java.io.IOException- on error
 
 - 
setProcessOutputStreampublic void setProcessOutputStream(java.io.InputStream is) throws java.io.IOExceptionSet the output stream of the process.- Specified by:
- setProcessOutputStreamin interface- ExecuteStreamHandler
- Parameters:
- is- the input stream.
- Throws:
- java.io.IOException- if there is an error.
 
 - 
setProcessErrorStreampublic void setProcessErrorStream(java.io.InputStream is) throws java.io.IOExceptionSet the error stream of the process.- Specified by:
- setProcessErrorStreamin interface- ExecuteStreamHandler
- Parameters:
- is- the input stream.
- Throws:
- java.io.IOException- if there is an error.
 
 
- 
 
-