Java Doc for FetchScriptGenerator.java in  » IDE-Eclipse » Eclipse-plug-in-development » org » eclipse » pde » internal » build » 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 » IDE Eclipse » Eclipse plug in development » org.eclipse.pde.internal.build 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.pde.internal.build.AbstractScriptGenerator
      org.eclipse.pde.internal.build.FetchScriptGenerator

FetchScriptGenerator
public class FetchScriptGenerator extends AbstractScriptGenerator (Code)
Generates Ant scripts with a repository specific factory to retrieve plug-ins and features from a repository.

Inner Class :public class MapFileEntry implements Comparable

Field Summary
final public static  StringFEATURES_RECURSIVELY
    
final public static  StringFEATURE_AND_PLUGINS
    
final public static  StringFEATURE_ONLY
    
final public static  StringFETCH_FILE_PREFIX
    
protected  StringcvsPassFileLocation
    
protected  SortedMapdirectory
    
protected  PropertiesdirectoryFile
    
protected  StringdirectoryLocation
    
protected  Stringelement
    
protected  VersionelementVersion
    
protected  IFeaturefeature
    
protected  PropertiesfeatureProperties
    
protected  booleanfetchChildren
    
protected  PropertiesfetchTags
    
protected  MapmapInfos
    
protected  ListmkdirLocations
    
protected  booleanrecursiveGeneration
    
protected  PropertiesrepositoryFeatureTags
    
protected  PropertiesrepositoryPluginTags
    

Constructor Summary
public  FetchScriptGenerator()
    
public  FetchScriptGenerator(String element)
    

Method Summary
public static  booleanclear(File root)
     Deletes all the files and directories from the given root down (inclusive).
protected  IPathcomputeFinalLocation(String type, String elementName, Version version)
    
public  voidgenerate()
    
protected  voidgenerateChildrenFetchScript()
    
protected  voidgenerateEpilogue()
     Just ends the script.
protected  voidgenerateFetchElementTarget()
    
protected  booleangenerateFetchEntry(String entry, Version version, boolean manifestFileOnly)
    
protected  voidgenerateFetchPluginsTarget()
    
protected  voidgenerateFetchRecusivelyTarget()
    
protected  voidgenerateFetchScript()
     Main call for generating the script.
protected  voidgenerateFetchTarget()
    
protected  voidgenerateMkdirs(String location)
     Helper method to control for what locations a mkdir Ant task was already generated so we can reduce replication.
protected  voidgeneratePrologue()
     Defines, the XML declaration and Ant project.
protected  Object[]getRepositoryInfo(String elementName, Version version)
     Get information stored in the directory file.
protected  voidretrieveFeature(String elementName, String elementType, Map elementInfos)
     Return the feature object for the feature with the given info.
public  voidsetCvsPassFileLocation(String cvsPassFileLocation)
     Sets the CVS password file location to be the given value.
public  voidsetDirectoryLocation(String directoryLocation)
     Set the directory location to be the given value.
public  voidsetElement(String element)
    
public  voidsetFetchChildren(boolean fetchChildren)
     Sets whether children of the current element should be fetched.
public  voidsetFetchTag(Properties value)
     Sets the CVS tag to use when fetching.
public  voidsetFetchTagAsString(String value)
     Sets the CVS tag to use when fetching.
public  voidsetRecursiveGeneration(boolean recursiveGeneration)
    

Field Detail
FEATURES_RECURSIVELY
final public static String FEATURES_RECURSIVELY(Code)



FEATURE_AND_PLUGINS
final public static String FEATURE_AND_PLUGINS(Code)



FEATURE_ONLY
final public static String FEATURE_ONLY(Code)



FETCH_FILE_PREFIX
final public static String FETCH_FILE_PREFIX(Code)



cvsPassFileLocation
protected String cvsPassFileLocation(Code)



directory
protected SortedMap directory(Code)



directoryFile
protected Properties directoryFile(Code)



directoryLocation
protected String directoryLocation(Code)



element
protected String element(Code)



elementVersion
protected Version elementVersion(Code)



feature
protected IFeature feature(Code)



featureProperties
protected Properties featureProperties(Code)



fetchChildren
protected boolean fetchChildren(Code)



fetchTags
protected Properties fetchTags(Code)



mapInfos
protected Map mapInfos(Code)



mkdirLocations
protected List mkdirLocations(Code)



recursiveGeneration
protected boolean recursiveGeneration(Code)



repositoryFeatureTags
protected Properties repositoryFeatureTags(Code)



repositoryPluginTags
protected Properties repositoryPluginTags(Code)




Constructor Detail
FetchScriptGenerator
public FetchScriptGenerator()(Code)



FetchScriptGenerator
public FetchScriptGenerator(String element)(Code)




Method Detail
clear
public static boolean clear(File root)(Code)
Deletes all the files and directories from the given root down (inclusive). Returns false if we could not delete some file or an exception occurred at any point in the deletion. Even if an exception occurs, a best effort is made to continue deleting.
Parameters:
  root - boolean



computeFinalLocation
protected IPath computeFinalLocation(String type, String elementName, Version version)(Code)



generate
public void generate() throws CoreException(Code)

See Also:   AbstractScriptGenerator.generate



generateChildrenFetchScript
protected void generateChildrenFetchScript() throws CoreException(Code)

throws:
  CoreException -



generateEpilogue
protected void generateEpilogue()(Code)
Just ends the script.



generateFetchElementTarget
protected void generateFetchElementTarget()(Code)



generateFetchEntry
protected boolean generateFetchEntry(String entry, Version version, boolean manifestFileOnly) throws CoreException(Code)



generateFetchPluginsTarget
protected void generateFetchPluginsTarget() throws CoreException(Code)



generateFetchRecusivelyTarget
protected void generateFetchRecusivelyTarget() throws CoreException(Code)



generateFetchScript
protected void generateFetchScript() throws CoreException(Code)
Main call for generating the script.
throws:
  CoreException -



generateFetchTarget
protected void generateFetchTarget()(Code)



generateMkdirs
protected void generateMkdirs(String location)(Code)
Helper method to control for what locations a mkdir Ant task was already generated so we can reduce replication.
Parameters:
  location -



generatePrologue
protected void generatePrologue()(Code)
Defines, the XML declaration and Ant project.



getRepositoryInfo
protected Object[] getRepositoryInfo(String elementName, Version version) throws CoreException(Code)
Get information stored in the directory file.
Parameters:
  elementName - String
throws:
  CoreException -



retrieveFeature
protected void retrieveFeature(String elementName, String elementType, Map elementInfos) throws CoreException(Code)
Return the feature object for the feature with the given info. Generate an Ant script which will retrieve the "feature.xml" file from CVS, and then call the feature object constructor from Update.
Parameters:
  elementName - the feature to retrieve
Parameters:
  elementType - the element type
Parameters:
  elementInfos - the element information
throws:
  CoreException -



setCvsPassFileLocation
public void setCvsPassFileLocation(String cvsPassFileLocation)(Code)
Sets the CVS password file location to be the given value.
Parameters:
  cvsPassFileLocation - the CVS password file location



setDirectoryLocation
public void setDirectoryLocation(String directoryLocation)(Code)
Set the directory location to be the given value.
Parameters:
  directoryLocation -



setElement
public void setElement(String element)(Code)



setFetchChildren
public void setFetchChildren(boolean fetchChildren)(Code)
Sets whether children of the current element should be fetched.
Parameters:
  fetchChildren -



setFetchTag
public void setFetchTag(Properties value)(Code)
Sets the CVS tag to use when fetching. This overrides whatever is in the directory database. This is typically used when doing a nightly build by setting the tag to HEAD.
Parameters:
  value - a string CVS tag



setFetchTagAsString
public void setFetchTagAsString(String value)(Code)
Sets the CVS tag to use when fetching. This overrides whatever is in the directory database. This is typically used when doing a nightly build by setting the tag to HEAD.
Parameters:
  value - a string CVS tag



setRecursiveGeneration
public void setRecursiveGeneration(boolean recursiveGeneration)(Code)



Fields inherited from org.eclipse.pde.internal.build.AbstractScriptGenerator
protected static boolean buildingOSGi(Code)(Java Doc)
protected static boolean embeddedSource(Code)(Java Doc)
protected List featuresForFilterRoots(Code)(Java Doc)
protected boolean filterState(Code)(Java Doc)
protected static boolean forceUpdateJarFormat(Code)(Java Doc)
protected Properties platformProperties(Code)(Java Doc)
protected String[] pluginPath(Code)(Java Doc)
protected List pluginsForFilterRoots(Code)(Java Doc)
protected boolean reportResolutionErrors(Code)(Java Doc)
protected AntScript script(Code)(Java Doc)
protected BuildTimeSiteFactory siteFactory(Code)(Java Doc)
protected String[] sitePaths(Code)(Java Doc)
protected static String workingDirectory(Code)(Java Doc)

Methods inherited from org.eclipse.pde.internal.build.AbstractScriptGenerator
public void closeScript()(Code)(Java Doc)
protected String findFile(String location, boolean makeRelative)(Code)(Java Doc)
protected void flushState()(Code)(Java Doc)
abstract public void generate() throws CoreException(Code)(Java Doc)
public static List getConfigInfos()(Code)(Java Doc)
public static boolean getDefaultBuildingOSGi()(Code)(Java Doc)
public static String getDefaultConfigInfos()(Code)(Java Doc)
public static boolean getDefaultEmbeddedSource()(Code)(Java Doc)
public static String getDefaultOutputFormat()(Code)(Java Doc)
public static boolean getForceUpdateJarFormat()(Code)(Java Doc)
public static String getImmutableAntProperty(String key)(Code)(Java Doc)
public static String getImmutableAntProperty(String key, String defaultValue)(Code)(Java Doc)
public String getLocation(BundleDescription model)(Code)(Java Doc)
public String[] getPluginPath()(Code)(Java Doc)
public static boolean getPropertyAsBoolean(String key)(Code)(Java Doc)
public BuildTimeSite getSite(boolean refresh) throws CoreException(Code)(Java Doc)
public static String getWorkingDirectory()(Code)(Java Doc)
protected boolean havePDEUIState()(Code)(Java Doc)
public static boolean isBuildingOSGi()(Code)(Java Doc)
public void openScript(String scriptLocation, String scriptName) throws CoreException(Code)(Java Doc)
public static Properties readProperties(String location, String fileName, int errorLevel) throws CoreException(Code)(Java Doc)
public void setBuildSiteFactory(BuildTimeSiteFactory siteFactory)(Code)(Java Doc)
public void setBuildingOSGi(boolean b)(Code)(Java Doc)
public static void setConfigInfo(String spec) throws CoreException(Code)(Java Doc)
public static void setEmbeddedSource(boolean embed)(Code)(Java Doc)
public void setFilterState(boolean filter)(Code)(Java Doc)
public static void setForceUpdateJar(boolean force)(Code)(Java Doc)
public void setNextId(long nextId)(Code)(Java Doc)
public void setPDEState(State state)(Code)(Java Doc)
public void setPlatformProperties(String filename)(Code)(Java Doc)
public void setPluginPath(String[] path)(Code)(Java Doc)
public void setStateExtraData(HashMap classpath, Map patchData)(Code)(Java Doc)
protected static void setStaticAntProperties(Properties properties)(Code)(Java Doc)
public void setWorkingDirectory(String location)(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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.