Java Doc for EjbJar.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) 


org.apache.tools.ant.taskdefs.MatchingTask
   org.apache.tools.ant.taskdefs.optional.ejb.EjbJar

EjbJar
public class EjbJar extends MatchingTask (Code)
Provides automated EJB JAR file creation.

Extends the MatchingTask class provided in the default ant distribution to provide a directory scanning EJB jarfile generator.

The task works by taking the deployment descriptors one at a time and parsing them to locate the names of the classes which should be placed in the jar. The classnames are translated to java.io.Files by replacing periods with File.separatorChar and resolving the generated filename as a relative path under the srcDir attribute. All necessary files are then assembled into a jarfile. One jarfile is constructed for each deployment descriptor found.


Inner Class :public static class DTDLocation extends org.apache.tools.ant.types.DTDLocation
Inner Class :static class Config
Inner Class :public static class NamingScheme extends EnumeratedAttribute
Inner Class :public static class CMPVersion extends EnumeratedAttribute



Method Summary
protected  voidaddDeploymentTool(EJBDeploymentTool deploymentTool)
    
public  BorlandDeploymentToolcreateBorland()
     Adds a deployment tool for Borland server.
public  PathcreateClasspath()
     Adds to the classpath used to locate the super classes and interfaces of the classes that will make up the EJB JAR.
public  DTDLocationcreateDTD()
     Create a DTD location record.
public  IPlanetDeploymentToolcreateIplanet()
     Adds a deployment tool for iPlanet Application Server.
public  JbossDeploymentToolcreateJboss()
     Adds a deployment tool for JBoss server.
public  JonasDeploymentToolcreateJonas()
     Adds a deployment tool for JOnAS server.
public  FileSetcreateSupport()
     Adds a fileset for support elements.
public  WeblogicDeploymentToolcreateWeblogic()
     Adds a deployment tool for Weblogic server.
public  WeblogicTOPLinkDeploymentToolcreateWeblogictoplink()
     Adds a deployment tool for Weblogic when using the Toplink Object-Relational mapping.
public  WebsphereDeploymentToolcreateWebsphere()
     Adds a deployment tool for Websphere 4.0 server.
public  voidexecute()
     Invoked by Ant after the task is prepared, when it is ready to execute this task. This will configure all of the nested deployment tools to allow them to process the jar.
public  StringgetCmpversion()
     Gets the CMP version.
public  FilegetDestdir()
     Gets the destination directory.
public  voidsetBasejarname(String inValue)
     Set the base name of the EJB JAR that is to be created if it is not to be determined from the name of the deployment descriptor files.
public  voidsetBasenameterminator(String inValue)
     The string which terminates the bean name. The convention used by this task is that bean descriptors are named as the BeanName with some suffix.
public  voidsetClasspath(Path classpath)
     Set the classpath to use when resolving classes for inclusion in the jar.
public  voidsetCmpversion(CMPVersion version)
     Sets the CMP version.
public  voidsetDependency(String analyzer)
     Set the analyzer to use when adding in dependencies to the JAR.
public  voidsetDescriptordir(File inDir)
     Set the descriptor directory.
public  voidsetDestdir(File inDir)
     Set the destination directory.
public  voidsetFlatdestdir(boolean inValue)
     Controls whether the destination JARs are written out in the destination directory with the same hierarchical structure from which the deployment descriptors have been read.
public  voidsetGenericjarsuffix(String inString)
     Set the suffix for the generated jar file.
public  voidsetManifest(File manifest)
     Set the Manifest file to use when jarring.
public  voidsetNaming(NamingScheme namingScheme)
    
public  voidsetSrcdir(File inDir)
     Sets the source directory, which is the directory that contains the classes that will be added to the EJB jar.



Method Detail
addDeploymentTool
protected void addDeploymentTool(EJBDeploymentTool deploymentTool)(Code)
Add a deployment tool to the list of deployment tools that will be processed
Parameters:
  deploymentTool - a deployment tool instance to which descriptorswill be passed for processing.



createBorland
public BorlandDeploymentTool createBorland()(Code)
Adds a deployment tool for Borland server. the deployment tool instance to be configured.



createClasspath
public Path createClasspath()(Code)
Adds to the classpath used to locate the super classes and interfaces of the classes that will make up the EJB JAR. the path to be configured.



createDTD
public DTDLocation createDTD()(Code)
Create a DTD location record. This stores the location of a DTD. The DTD is identified by its public Id. The location may either be a file location or a resource location. the DTD location object to be configured by Ant



createIplanet
public IPlanetDeploymentTool createIplanet()(Code)
Adds a deployment tool for iPlanet Application Server. the deployment tool instance to be configured.



createJboss
public JbossDeploymentTool createJboss()(Code)
Adds a deployment tool for JBoss server. the deployment tool instance to be configured.



createJonas
public JonasDeploymentTool createJonas()(Code)
Adds a deployment tool for JOnAS server. the deployment tool instance to be configured.



createSupport
public FileSet createSupport()(Code)
Adds a fileset for support elements. a fileset which can be populated with support files.



createWeblogic
public WeblogicDeploymentTool createWeblogic()(Code)
Adds a deployment tool for Weblogic server. the deployment tool instance to be configured.



createWeblogictoplink
public WeblogicTOPLinkDeploymentTool createWeblogictoplink()(Code)
Adds a deployment tool for Weblogic when using the Toplink Object-Relational mapping. the deployment tool instance to be configured.



createWebsphere
public WebsphereDeploymentTool createWebsphere()(Code)
Adds a deployment tool for Websphere 4.0 server. the deployment tool instance to be configured.



execute
public void execute() throws BuildException(Code)
Invoked by Ant after the task is prepared, when it is ready to execute this task. This will configure all of the nested deployment tools to allow them to process the jar. If no deployment tools have been configured a generic tool is created to handle the jar. A parser is configured and then each descriptor found is passed to all the deployment tool elements for processing.
exception:
  BuildException - thrown whenever a problem isencountered that cannot be recovered from, to signal to antthat a major problem occurred within this task.



getCmpversion
public String getCmpversion()(Code)
Gets the CMP version. CMP version
since:
   ant 1.6



getDestdir
public File getDestdir()(Code)
Gets the destination directory. destination directory
since:
   ant 1.6



setBasejarname
public void setBasejarname(String inValue)(Code)
Set the base name of the EJB JAR that is to be created if it is not to be determined from the name of the deployment descriptor files.
Parameters:
  inValue - the basename that will be used when writing the jarfile containing the EJB



setBasenameterminator
public void setBasenameterminator(String inValue)(Code)
The string which terminates the bean name. The convention used by this task is that bean descriptors are named as the BeanName with some suffix. The baseNameTerminator string separates the bean name and the suffix and is used to determine the bean name.
Parameters:
  inValue - a string which marks the end of the basename.



setClasspath
public void setClasspath(Path classpath)(Code)
Set the classpath to use when resolving classes for inclusion in the jar.
Parameters:
  classpath - the classpath to use.



setCmpversion
public void setCmpversion(CMPVersion version)(Code)
Sets the CMP version.
Parameters:
  version - CMP version.Must be either 1.0 or 2.0.
Default is 1.0.
Initially, only the JBoss implementation does something specific for CMP 2.0.

since:
   ant 1.6



setDependency
public void setDependency(String analyzer)(Code)
Set the analyzer to use when adding in dependencies to the JAR.
Parameters:
  analyzer - the name of the dependency analyzer or a class.



setDescriptordir
public void setDescriptordir(File inDir)(Code)
Set the descriptor directory. The descriptor directory contains the EJB deployment descriptors. These are XML files that declare the properties of a bean in a particular deployment scenario. Such properties include, for example, the transactional nature of the bean and the security access control to the bean's methods.
Parameters:
  inDir - the directory containing the deployment descriptors.



setDestdir
public void setDestdir(File inDir)(Code)
Set the destination directory. The EJB jar files will be written into this directory. The jar files that exist in this directory are also used when determining if the contents of the jar file have changed. Note that this parameter is only used if no deployment tools are specified. Typically each deployment tool will specify its own destination directory.
Parameters:
  inDir - the destination directory in which to generate jars



setFlatdestdir
public void setFlatdestdir(boolean inValue)(Code)
Controls whether the destination JARs are written out in the destination directory with the same hierarchical structure from which the deployment descriptors have been read. If this is set to true the generated EJB jars are written into the root of the destination directory, otherwise they are written out in the same relative position as the deployment descriptors in the descriptor directory.
Parameters:
  inValue - the new value of the flatdestdir flag.



setGenericjarsuffix
public void setGenericjarsuffix(String inString)(Code)
Set the suffix for the generated jar file. When generic jars are generated, they have a suffix which is appended to the the bean name to create the name of the jar file. Note that this suffix includes the extension fo te jar file and should therefore end with an appropriate extension such as .jar or .ear
Parameters:
  inString - the string to use as the suffix.



setManifest
public void setManifest(File manifest)(Code)
Set the Manifest file to use when jarring. As of EJB 1.1, manifest files are no longer used to configure the EJB. However, they still have a vital importance if the EJB is intended to be packaged in an EAR file. By adding "Class-Path" settings to a Manifest file, the EJB can look for classes inside the EAR file itself, allowing for easier deployment. This is outlined in the J2EE specification, and all J2EE components are meant to support it.
Parameters:
  manifest - the manifest to be used in the EJB jar



setNaming
public void setNaming(NamingScheme namingScheme)(Code)
Set the naming scheme used to determine the name of the generated jars from the deployment descriptor
Parameters:
  namingScheme - the naming scheme to be used



setSrcdir
public void setSrcdir(File inDir)(Code)
Sets the source directory, which is the directory that contains the classes that will be added to the EJB jar. Typically this will include the home and remote interfaces and the bean class.
Parameters:
  inDir - the source directory.



Fields inherited from org.apache.tools.ant.taskdefs.MatchingTask
protected FileSet fileset(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.MatchingTask
public void XsetIgnore(String ignoreString)(Code)(Java Doc)
public void XsetItems(String itemString)(Code)(Java Doc)
public void add(FileSelector selector)(Code)(Java Doc)
public void addAnd(AndSelector selector)(Code)(Java Doc)
public void addContains(ContainsSelector selector)(Code)(Java Doc)
public void addContainsRegexp(ContainsRegexpSelector selector)(Code)(Java Doc)
public void addCustom(ExtendSelector selector)(Code)(Java Doc)
public void addDate(DateSelector selector)(Code)(Java Doc)
public void addDepend(DependSelector selector)(Code)(Java Doc)
public void addDepth(DepthSelector selector)(Code)(Java Doc)
public void addDifferent(DifferentSelector selector)(Code)(Java Doc)
public void addFilename(FilenameSelector selector)(Code)(Java Doc)
public void addMajority(MajoritySelector selector)(Code)(Java Doc)
public void addModified(ModifiedSelector selector)(Code)(Java Doc)
public void addNone(NoneSelector selector)(Code)(Java Doc)
public void addNot(NotSelector selector)(Code)(Java Doc)
public void addOr(OrSelector selector)(Code)(Java Doc)
public void addPresent(PresentSelector selector)(Code)(Java Doc)
public void addSelector(SelectSelector selector)(Code)(Java Doc)
public void addSize(SizeSelector selector)(Code)(Java Doc)
public void addType(TypeSelector selector)(Code)(Java Doc)
public void appendSelector(FileSelector selector)(Code)(Java Doc)
public PatternSet.NameEntry createExclude()(Code)(Java Doc)
public PatternSet.NameEntry createExcludesFile()(Code)(Java Doc)
public PatternSet.NameEntry createInclude()(Code)(Java Doc)
public PatternSet.NameEntry createIncludesFile()(Code)(Java Doc)
public PatternSet createPatternSet()(Code)(Java Doc)
protected DirectoryScanner getDirectoryScanner(File baseDir)(Code)(Java Doc)
final protected FileSet getImplicitFileSet()(Code)(Java Doc)
public FileSelector[] getSelectors(Project p)(Code)(Java Doc)
public boolean hasSelectors()(Code)(Java Doc)
public int selectorCount()(Code)(Java Doc)
public Enumeration selectorElements()(Code)(Java Doc)
public void setCaseSensitive(boolean isCaseSensitive)(Code)(Java Doc)
public void setDefaultexcludes(boolean useDefaultExcludes)(Code)(Java Doc)
public void setExcludes(String excludes)(Code)(Java Doc)
public void setExcludesfile(File excludesfile)(Code)(Java Doc)
public void setFollowSymlinks(boolean followSymlinks)(Code)(Java Doc)
public void setIncludes(String includes)(Code)(Java Doc)
public void setIncludesfile(File includesfile)(Code)(Java Doc)
public void setProject(Project project)(Code)(Java Doc)

w_w__w_.__j___a___v___a__2__s._c__o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.