Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-332

Create a FileHandler interface for all file operations in Cargo

    Details

    • Type: Improvement
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 0.8
    • Fix versions: 0.9
    • Components: Core
    • Labels:
      None

      Description

      Right now file operations are performed either by calling the Cargo util.FileUtils class or by using the Ant's FileUtils class. It can be improved by creating a single FileHandler interface (with a DefaultFileHandler implementation). The advantages are:

      • single location for all file operations
      • ability to create mock implementations of the FileHandler class which allows writing more easily unit tests for cargo classes

        Attachments

          Activity

            People

            • Assignee:
              vincentmassol Vincent Massol (Inactive)
              Reporter:
              vincentmassol Vincent Massol (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: