Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-110

Support directory operations sanely.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • None
    • None
    • wagon-provider-api
    • None

    Description

      The Wagon provider API is confused for directory operations. To simplify, I propose a new interface be created (e.g. DirectoryWagon) that wagons can implement...

      bool isDirectory(String path) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException;
      String[] getFileList(String path) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException;
      void mkdir(String path) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException;
      void mkdirs(String path) throw throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException;
      

      This would also require removing all directory related methods from the Wagon interface. The AbstractWagon implementation could transparently use the primitives from the DirectoryWagon interface (if implemented) to handle directory operations.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ldaley Luke Daley
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: