Java Doc for BorlandDeploymentTool.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » ejb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.taskdefs.optional.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
      org.apache.tools.ant.taskdefs.optional.ejb.BorlandDeploymentTool

BorlandDeploymentTool
public class BorlandDeploymentTool extends GenericDeploymentTool implements ExecuteStreamHandler(Code)
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 Summary
final static  intBAS
    
final protected static  StringBAS_DD
    
final static  intBES
    
final protected static  StringBES_DD
    
final protected static  StringDEFAULT_BAS45_EJB11_DTD_LOCATION
    
final protected static  StringDEFAULT_BAS_DTD_LOCATION
    
final protected static  StringJAVA2IIOP
    
final public static  StringPUBLICID_BORLAND_EJB
    
final protected static  StringVERIFY
    


Method Summary
protected  voidaddVendorFiles(Hashtable ejbFiles, String ddPrefix)
     Add any vendor specific files which should be included in the EJB Jar.
protected  DescriptorHandlergetBorlandDescriptorHandler(File srcDir)
     Get the borland descriptor handler.
Parameters:
  srcDir - the source directory.
 FilegetVendorOutputJarFile(String baseName)
     Get the vendor specific name of the Jar that will be output.
public  voidsetBASdtd(String inString)
     Setter used to store the location of the borland DTD.
public  voidsetDebug(boolean debug)
    
public  voidsetGenerateclient(boolean b)
     setter used to store whether the task will include the generate client task.
public  voidsetJava2iiopParams(String params)
     If filled, the params are added to the java2iiop command.
public  voidsetProcessErrorStream(InputStream is)
     Set the error stream of the process.
public  voidsetProcessInputStream(OutputStream param1)
     .
public  voidsetProcessOutputStream(InputStream is)
     Set the output stream of the process.
public  voidsetSuffix(String inString)
     Setter used to store the suffix for the generated borland jar file.
public  voidsetVerify(boolean verify)
    
public  voidsetVerifyArgs(String args)
    
public  voidsetVersion(int version)
    
public  voidstart()
     .
public  voidstop()
     .
protected  voidwriteJar(String baseName, File jarFile, Hashtable files, String publicId)
     Method used to encapsulate the writing of the JAR file.

Field Detail
BAS
final static int BAS(Code)
Borland Application Server or Inprise Application Server = version 4



BAS_DD
final protected static String BAS_DD(Code)



BES
final static int BES(Code)
Borland Enterprise Server = version 5



BES_DD
final protected static String BES_DD(Code)



DEFAULT_BAS45_EJB11_DTD_LOCATION
final protected static String DEFAULT_BAS45_EJB11_DTD_LOCATION(Code)



DEFAULT_BAS_DTD_LOCATION
final protected static String DEFAULT_BAS_DTD_LOCATION(Code)



JAVA2IIOP
final protected static String JAVA2IIOP(Code)
Java2iiop executable *



PUBLICID_BORLAND_EJB
final public static String PUBLICID_BORLAND_EJB(Code)
Borland 1.1 ejb id



VERIFY
final protected static String VERIFY(Code)
Verify class





Method Detail
addVendorFiles
protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix)(Code)
Add any vendor specific files which should be included in the EJB Jar.
Parameters:
  ejbFiles - the map to add the files to.
Parameters:
  ddPrefix - the prefix to use.



getBorlandDescriptorHandler
protected DescriptorHandler getBorlandDescriptorHandler(File srcDir)(Code)
Get the borland descriptor handler.
Parameters:
  srcDir - the source directory. the descriptor.



getVendorOutputJarFile
File getVendorOutputJarFile(String baseName)(Code)
Get the vendor specific name of the Jar that will be output. The modification date of this jar will be checked against the dependent bean classes.



setBASdtd
public void setBASdtd(String inString)(Code)
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.



setDebug
public void setDebug(boolean debug)(Code)
set the debug mode for java2iiop (default false)
Parameters:
  debug - the setting to use.



setGenerateclient
public void setGenerateclient(boolean b)(Code)
setter used to store whether the task will include the generate client task. (see : BorlandGenerateClient task)
Parameters:
  b - if true generate the client task.



setJava2iiopParams
public void setJava2iiopParams(String params)(Code)
If filled, the params are added to the java2iiop command. (ex: -no_warn_missing_define)
Parameters:
  params - additional params for java2iiop



setProcessErrorStream
public void setProcessErrorStream(InputStream is) throws IOException(Code)
Set the error stream of the process.
Parameters:
  is - the input stream.
throws:
  IOException - if there is an error.



setProcessInputStream
public void setProcessInputStream(OutputStream param1) throws IOException(Code)
.



setProcessOutputStream
public void setProcessOutputStream(InputStream is) throws IOException(Code)
Set the output stream of the process.
Parameters:
  is - the input stream.
throws:
  IOException - if there is an error.



setSuffix
public void setSuffix(String inString)(Code)
Setter used to store the suffix for the generated borland jar file.
Parameters:
  inString - the string to use as the suffix.



setVerify
public void setVerify(boolean verify)(Code)
set the verify mode for the produced jar (default true)
Parameters:
  verify - the setting to use.



setVerifyArgs
public void setVerifyArgs(String args)(Code)
sets some additional args to send to verify command
Parameters:
  args - additional command line parameters



setVersion
public void setVersion(int version)(Code)
setter used to store the borland appserver version [4 or 5]
Parameters:
  version - app server version 4 or 5



start
public void start() throws IOException(Code)
.



stop
public void stop()(Code)
.



writeJar
protected void writeJar(String baseName, File jarFile, Hashtable files, String publicId) throws BuildException(Code)
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.
Parameters:
  baseName - the base name.
Parameters:
  jarFile - the jar file to write to.
Parameters:
  files - the files to write to the jar.
Parameters:
  publicId - the id to use.
throws:
  BuildException - if there is an error.



Fields inherited from org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
final public static String ANALYZER_CLASS_FULL(Code)(Java Doc)
final public static String ANALYZER_CLASS_SUPER(Code)(Java Doc)
final public static String ANALYZER_FULL(Code)(Java Doc)
final public static String ANALYZER_NONE(Code)(Java Doc)
final public static String ANALYZER_SUPER(Code)(Java Doc)
final public static String DEFAULT_ANALYZER(Code)(Java Doc)
final public static int DEFAULT_BUFFER_SIZE(Code)(Java Doc)
final protected static String EJB_DD(Code)(Java Doc)
final public static int JAR_COMPRESS_LEVEL(Code)(Java Doc)
final protected static String MANIFEST(Code)(Java Doc)
final protected static String META_DIR(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool
protected void addFileToJar(JarOutputStream jStream, File inputFile, String logicalFilename) throws BuildException(Code)(Java Doc)
protected void addSupportClasses(Hashtable ejbFiles)(Code)(Java Doc)
protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix)(Code)(Java Doc)
protected void checkAndAddDependants(Hashtable checkEntries) throws BuildException(Code)(Java Doc)
protected void checkConfiguration(String descriptorFileName, SAXParser saxParser) throws BuildException(Code)(Java Doc)
public void configure(EjbJar.Config config)(Code)(Java Doc)
public Path createClasspath()(Code)(Java Doc)
protected ClassLoader getClassLoaderForBuild()(Code)(Java Doc)
protected Path getCombinedClasspath()(Code)(Java Doc)
protected EjbJar.Config getConfig()(Code)(Java Doc)
protected DescriptorHandler getDescriptorHandler(File srcDir)(Code)(Java Doc)
protected File getDestDir()(Code)(Java Doc)
protected String getJarBaseName(String descriptorFileName)(Code)(Java Doc)
protected Location getLocation()(Code)(Java Doc)
protected File getManifestFile(String prefix)(Code)(Java Doc)
protected String getPublicId()(Code)(Java Doc)
protected Task getTask()(Code)(Java Doc)
public String getVendorDDPrefix(String baseName, String descriptorFileName)(Code)(Java Doc)
File getVendorOutputJarFile(String baseName)(Code)(Java Doc)
protected void log(String message, int level)(Code)(Java Doc)
protected boolean needToRebuild(Hashtable ejbFiles, File jarFile)(Code)(Java Doc)
protected Hashtable parseEjbFiles(String descriptorFileName, SAXParser saxParser) throws IOException, SAXException(Code)(Java Doc)
public void processDescriptor(String descriptorFileName, SAXParser saxParser)(Code)(Java Doc)
protected void registerKnownDTDs(DescriptorHandler handler)(Code)(Java Doc)
public void setClasspath(Path classpath)(Code)(Java Doc)
public void setDestdir(File inDir)(Code)(Java Doc)
public void setGenericJarSuffix(String inString)(Code)(Java Doc)
public void setTask(Task task)(Code)(Java Doc)
protected boolean usingBaseJarName()(Code)(Java Doc)
public void validateConfigured() throws BuildException(Code)(Java Doc)
protected void writeJar(String baseName, File jarfile, Hashtable files, String publicId) throws BuildException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w_ww__.__j___av__a___2___s_._c__om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.