Interface RemoteRepositoryContainer

All Known Implementing Classes:
RemoteRepositories, RemoteRepository

public interface RemoteRepositoryContainer
Common interface for Ant data types that hold one or more RemoteRepository definitions.

This abstraction allows reuse of repository containers across tasks such as dependency resolution, deployment, and installation.

Typical Implementations:

Implementing classes must support validation and retrieval of all contained RemoteRepository instances.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the list of remote repositories represented by this container.
    void
    validate(org.apache.tools.ant.Task task)
    Validates the repository configuration in the context of the given Ant task.
  • Method Details

    • validate

      void validate(org.apache.tools.ant.Task task)
      Validates the repository configuration in the context of the given Ant task.
      Parameters:
      task - the Ant task requesting validation (typically for logging or error reporting)
      Throws:
      org.apache.tools.ant.BuildException - if the configuration is invalid
    • getRepositories

      List<RemoteRepository> getRepositories()
      Returns the list of remote repositories represented by this container.
      Returns:
      list of RemoteRepository objects; never null