Save This Page
Home » maven-ant-tasks-2.1.0-src » org.apache » maven » artifact » ant » [javadoc | source]
org.apache.maven.artifact.ant
abstract public class: AbstractArtifactWithRepositoryTask [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.maven.artifact.ant.AbstractArtifactTask
            org.apache.maven.artifact.ant.AbstractArtifactWithRepositoryTask

All Implemented Interfaces:
    Cloneable

Direct Known Subclasses:
    DependenciesTask, InstallWagonProviderTask, Pom

Base class for atifact tasks that are able to download artifact from repote repositories.
Field Summary
public final  String MD5_ALGO_NAME     
public final  String UTF_ENC_NAME     
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.maven.artifact.ant.AbstractArtifactWithRepositoryTask Summary:
addConfiguredRemoteRepository,   createRemoteArtifactRepositories,   createRemoteArtifactRepositories,   generateDefaultRepositoryId,   getRemoteRepositories
Methods from org.apache.maven.artifact.ant.AbstractArtifactTask:
addLocalRepository,   addPom,   createAntRemoteRepository,   createAntRemoteRepositoryBase,   createDummyArtifact,   createDummyPom,   createLocalArtifactRepository,   createMinimalProject,   createRemoteArtifactRepository,   diagnoseError,   doExecute,   execute,   getArtifactRepositoryFactory,   getContainer,   getDefaultLocalRepository,   getLocalRepository,   getPom,   getPomRefId,   getProfileManager,   getSettings,   getSupportedProtocols,   getSupportedProtocolsAsString,   initializePom,   isExternalRepo,   lookup,   lookup,   matchPattern,   releaseArtifactRepositoryFactory,   setPomRefId,   setProfiles,   setSettingsFile,   showVersion,   updateRepositoryWithSettings
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.maven.artifact.ant.AbstractArtifactWithRepositoryTask Detail:
 public  void addConfiguredRemoteRepository(RemoteRepository remoteRepository) 
    This is called automatically by ant when the task is initialized. Need to use "addConfigured..." instead of "add..." because the repository Id and URL need to be set before the method is called.
 protected List createRemoteArtifactRepositories() 
 protected List createRemoteArtifactRepositories(List pomRepositories) 
    Create the list of ArtifactRepository-ies where artifacts can be downloaded. If no remote repository has been configured, adds central repository.
 public String generateDefaultRepositoryId(RemoteRepository repository) 
    Generates an MD5 digest based on the url of the repository. This is safer to use for the id than the url. MANTTASKS-142
 public List getRemoteRepositories()