| |
|
| 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 | |
FEATURES_RECURSIVELY | final public static String FEATURES_RECURSIVELY(Code) | | |
FEATURE_AND_PLUGINS | final public static String FEATURE_AND_PLUGINS(Code) | | |
FETCH_FILE_PREFIX | final public static String FETCH_FILE_PREFIX(Code) | | |
cvsPassFileLocation | protected String cvsPassFileLocation(Code) | | |
elementVersion | protected Version elementVersion(Code) | | |
feature | protected IFeature feature(Code) | | |
fetchChildren | protected boolean fetchChildren(Code) | | |
recursiveGeneration | protected boolean recursiveGeneration(Code) | | |
FetchScriptGenerator | public FetchScriptGenerator()(Code) | | |
FetchScriptGenerator | public FetchScriptGenerator(String element)(Code) | | |
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) | | |
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 - |
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) | | |
|
|
|