Class DefaultWagonDownload

java.lang.Object
org.codehaus.mojo.wagon.shared.DefaultWagonDownload
All Implemented Interfaces:
WagonDownload

@Component(role=WagonDownload.class, hint="default") public class DefaultWagonDownload extends Object implements WagonDownload
  • Constructor Details

    • DefaultWagonDownload

      public DefaultWagonDownload()
  • Method Details

    • getFileList

      public List<String> getFileList(org.apache.maven.wagon.Wagon wagon, WagonFileSet fileSet, org.apache.maven.plugin.logging.Log logger) throws org.apache.maven.wagon.WagonException
      Specified by:
      getFileList in interface WagonDownload
      Parameters:
      wagon - - a Wagon instance
      fileSet - - Criteria to build the list
      logger - - logger used
      Returns:
      a list of files at the remote host relative to RemoteFileSet's directory
      Throws:
      org.apache.maven.wagon.WagonException - if any wagon error
    • download

      public void download(org.apache.maven.wagon.Wagon wagon, WagonFileSet remoteFileSet, org.apache.maven.plugin.logging.Log logger) throws org.apache.maven.wagon.WagonException
      Specified by:
      download in interface WagonDownload
      Parameters:
      wagon - - a Wagon instance
      remoteFileSet - - Criteria to build the list
      logger - - logger used
      Throws:
      org.apache.maven.wagon.WagonException - if any wagon error
    • exists

      public boolean exists(org.apache.maven.wagon.Wagon wagon, String resource) throws org.apache.maven.wagon.WagonException
      Specified by:
      exists in interface WagonDownload
      Parameters:
      wagon - - a Wagon instance
      resource - - resource to test
      Returns:
      true if found, false otherwise
      Throws:
      org.apache.maven.wagon.WagonException - if any wagon error