Java Doc for GenJar.java in  » Code-Analyzer » GenJar » org » apache » tools » ant » taskdefs » optional » genjar » 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 » Code Analyzer » GenJar » org.apache.tools.ant.taskdefs.optional.genjar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.taskdefs.optional.genjar.GenJar

GenJar
public class GenJar extends Task (Code)
Driver class for the task.

This class is instantiated when Ant encounters the <genjar> element.
author:
   Original Code: John W. Kohler
author:
   Jesse Stockall
version:
   $Revision: 1.11 $ $Date: 2003/03/06 01:22:00 $




Constructor Summary
public  GenJar()
    

Method Summary
public  ClassSpeccreateClass()
     Builds a element.
public  ClassFiltercreateClassfilter()
     Builds a classfilter element.
public  PathcreateClasspath()
     Builds the classpath.
public  LibrarySpeccreateLibrary()
     Builds a library element.
public  ObjectcreateManifest()
     Builds a manifest element.
public  ResourcecreateResource()
     Builds a resource element.
public  voidexecute()
    
 voidgenerateClassDependancies(String classFileName, List classes)
     Generates a list of classes upon which the named class is dependant.
 voidgenerateDependancies(List entries)
     Generates a list of all classes upon which the list of classes depend.
 InputStreamresolveEntry(JarEntrySpec spec)
    
 InputStreamresolveEntry(String cname)
    
public  voidsetClasspath(Path s)
     Sets the classpath attribute.
public  voidsetClasspathRef(Reference r)
     Sets the Classpathref attribute.
public  voidsetDestDir(Path path)
     Sets the name of the directory where the classes will be copied.
public  voidsetJarfile(File jarFile)
     Sets the name of the jar file to be created.
public  voidsetTrace(String t)
    


Constructor Detail
GenJar
public GenJar()(Code)
Constructor for the GenJar object




Method Detail
createClass
public ClassSpec createClass()(Code)
Builds a element. A element.



createClassfilter
public ClassFilter createClassfilter()(Code)
Builds a classfilter element. A element.



createClasspath
public Path createClasspath()(Code)
Builds the classpath. A element.



createLibrary
public LibrarySpec createLibrary()(Code)
Builds a library element. A element.



createManifest
public Object createManifest()(Code)
Builds a manifest element. A element.



createResource
public Resource createResource()(Code)
Builds a resource element. A element.



execute
public void execute() throws BuildException(Code)
main execute for genjar
  1. setup logger
  2. ensure classpath is setup (with any additions from sub-elements
  3. initialize file resolvers
  4. initialize the manifest
  5. resolve resource file paths resolve class file paths generate dependancy graphs for class files and resolve those paths check for duplicates
  6. generate manifest entries for all candidate files
  7. build jar

throws:
  BuildException - Oops!



generateClassDependancies
void generateClassDependancies(String classFileName, List classes) throws IOException(Code)
Generates a list of classes upon which the named class is dependant.
Parameters:
  classes - A List into which the class names are placed
Parameters:
  classFileName - Description of the Parameter
throws:
  IOException - Description of the Exception



generateDependancies
void generateDependancies(List entries) throws IOException(Code)
Generates a list of all classes upon which the list of classes depend.
Parameters:
  entries - List of JarEntrySpecs used as a list of class names fromwhich to start.
exception:
  IOException - If there's an error reading a class file



resolveEntry
InputStream resolveEntry(JarEntrySpec spec) throws IOException(Code)
Description of the Method
Parameters:
  spec - Description of the Parameter Description of the Return Value
throws:
  IOException - Description of the Exception



resolveEntry
InputStream resolveEntry(String cname) throws IOException(Code)
Resolves a partial file name against the classpath elements
Parameters:
  cname - Description of the Parameter An InputStream open on the named file or null
throws:
  IOException - Description of the Exception



setClasspath
public void setClasspath(Path s)(Code)
Sets the classpath attribute.
Parameters:
  s - The new classpath.



setClasspathRef
public void setClasspathRef(Reference r)(Code)
Sets the Classpathref attribute.
Parameters:
  r - The new classpathRef.



setDestDir
public void setDestDir(Path path)(Code)
Sets the name of the directory where the classes will be copied.
Parameters:
  path - The directory name.



setJarfile
public void setJarfile(File jarFile)(Code)
Sets the name of the jar file to be created.
Parameters:
  jarFile - The new jarfile value



setTrace
public void setTrace(String t)(Code)

Parameters:
  t -



w__ww_.__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.