Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48405

Use NIO in Util.deleteFile for better error messages

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      Switching to NIO will improve the error messages when a file cannot be deleted, and will allow us to remove some JNR and Ant Chmod usages in Util#makeWritable.

      This should affect all of the recursive deletion methods in hudson.model.FilePath and hudson.model.Util as they all eventually call Util#deleteFile.

          [JENKINS-48405] Use NIO in Util.deleteFile for better error messages

          Devin Nusbaum created issue -
          Devin Nusbaum made changes -
          Labels New: diagnostics jdk7
          Devin Nusbaum made changes -
          Link New: This issue relates to JENKINS-36088 [ JENKINS-36088 ]
          Devin Nusbaum made changes -
          Link New: This issue relates to JENKINS-47324 [ JENKINS-47324 ]
          Devin Nusbaum made changes -
          Description Original: Switching to NIO will improve the error messages when a file cannot be deleted, and will allow us to remove some JNR and Ant Chmod usages in Util#makeWritable.

          This should affect all of the recursive deletion methods in {{hudson.model.FilePath}} and {{hudson.model.Util}} as they all eventually call {{Util#deleteFile}}.
          New: Switching to NIO will improve the error messages when a file cannot be deleted, and will allow us to remove some JNR and Ant Chmod usages in {{Util#makeWritable}}.

          This should affect all of the recursive deletion methods in {{hudson.model.FilePath}} and {{hudson.model.Util}} as they all eventually call {{Util#deleteFile}}.
          Devin Nusbaum made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

            dnusbaum Devin Nusbaum
            dnusbaum Devin Nusbaum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: