Class AntWorkspaceResolver.Resolver

All Implemented Interfaces:
Validatable, DependencyResolver, HasLatestStrategy
Enclosing class:
AntWorkspaceResolver

private class AntWorkspaceResolver.Resolver extends AbstractWorkspaceResolver
  • Field Details

  • Constructor Details

    • Resolver

      private Resolver()
  • Method Details

    • getModuleDescriptors

      private Map<ModuleDescriptor,File> getModuleDescriptors()
    • getDependency

      public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException
      Description copied from interface: DependencyResolver
      Resolve a module by id, getting its module descriptor and resolving the revision if it's a latest one (i.e. a revision uniquely identifying the revision of a module in the current environment - If this revision is not able to identify uniquely the revision of the module outside of the current environment, then the resolved revision must begin by ##)
      Parameters:
      dd - DependencyDescriptor
      data - ResolveData
      Returns:
      ResolvedModuleRevision
      Throws:
      ParseException - if something goes wrong
    • createWorkspaceArtifacts

      protected List<Artifact> createWorkspaceArtifacts(ModuleDescriptor md)
      Specified by:
      createWorkspaceArtifacts in class AbstractWorkspaceResolver
    • download

      public DownloadReport download(Artifact[] artifacts, DownloadOptions options)
      Description copied from interface: DependencyResolver
      Download artifacts with specified DownloadOptions.

      The resolver will always make a best effort, and do not stop when an artifact is not available. It rather continue to attempt to download other requested artifacts, and report what has been done in the returned DownloadReport.

      The returned DownloadReport is never null, and always contain an ArtifactDownloadReport for each requested Artifact.

      Parameters:
      artifacts - an array of artifacts to download. Must not be null.
      options - options to apply for this download. Must not be null.
      Returns:
      a DownloadReport with details about each Artifact download.