public class BorlandDeploymentTool extends GenericDeploymentTool implements ExecuteStreamHandler
<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>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BAS_DD |
protected static String |
BES_DD |
protected static String |
DEFAULT_BAS_DTD_LOCATION |
protected static String |
DEFAULT_BAS45_EJB11_DTD_LOCATION |
protected static String |
JAVA2IIOP
Java2iiop executable
|
static String |
PUBLICID_BORLAND_EJB
Borland 1.1 ejb id
|
protected static String |
VERIFY
Verify class
|
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 and Description |
|---|
BorlandDeploymentTool() |
| Modifier and Type | Method and Description |
|---|---|
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)
Get the borland descriptor handler.
|
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)
Set the error stream of the process.
|
void |
setProcessInputStream(OutputStream param1)
Install a handler for the input stream of the subprocess.
|
void |
setProcessOutputStream(InputStream is)
Set the output stream of the process.
|
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, 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, validateConfiguredprotected static final String BAS_DD
protected static final String BES_DD
protected static final String DEFAULT_BAS_DTD_LOCATION
protected static final String DEFAULT_BAS45_EJB11_DTD_LOCATION
protected static final String JAVA2IIOP
public static final String PUBLICID_BORLAND_EJB
protected static final String VERIFY
protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix)
addVendorFiles in class GenericDeploymentToolejbFiles - the map to add the files to.ddPrefix - the prefix to use.protected DescriptorHandler getBorlandDescriptorHandler(File srcDir)
srcDir - the source directory.public void setBASdtd(String inString)
inString - the string to use as the DTD location.public void setDebug(boolean debug)
debug - the setting to use.public void setGenerateclient(boolean b)
b - if true generate the client task.public void setJava2iiopParams(String params)
params - additional params for java2iioppublic void setProcessErrorStream(InputStream is) throws IOException
setProcessErrorStream in interface ExecuteStreamHandleris - the input stream.IOException - if there is an error.public void setProcessInputStream(OutputStream param1) throws IOException
setProcessInputStream in interface ExecuteStreamHandlerparam1 - output stream to write to the standard input stream of the
subprocessIOException - on errorpublic void setProcessOutputStream(InputStream is) throws IOException
setProcessOutputStream in interface ExecuteStreamHandleris - the input stream.IOException - if there is an error.public void setSuffix(String inString)
inString - the string to use as the suffix.public void setVerify(boolean verify)
verify - the setting to use.public void setVerifyArgs(String args)
args - additional command line parameterspublic void setVersion(int version)
version - app server version 4 or 5public void start()
throws IOException
start in interface ExecuteStreamHandlerIOException - on errorpublic void stop()
stop in interface ExecuteStreamHandlerprotected void writeJar(String baseName, File jarFile, Hashtable files, String publicId) throws BuildException
writeJar in class GenericDeploymentToolbaseName - the base name.jarFile - the jar file to write to.files - the files to write to the jar.publicId - the id to use.BuildException - if there is an error.