Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      inside removeDir(..), each file needs to be checked to see if it's a symbolic link. If so, the link should be deleted, not the referenced location. I think we can address this by adding a check similar to:

      if ( !f.getCanonicalPath().startsWith( d.getCanonicalPath() ) )
      {
      // don't process as a subdir, just erase the file. WILL THIS WORK?
      }

        Activity

        Hide
        jdcasey John Casey added a comment -

        added "followSymLinks" flag. Also added detection of symbolic links, and behavior which will either traverse the symlink while deleting, or else simply delete the link, depending on the value of the followSymLinks flag. The default value is false.

        Show
        jdcasey John Casey added a comment - added "followSymLinks" flag. Also added detection of symbolic links, and behavior which will either traverse the symlink while deleting, or else simply delete the link, depending on the value of the followSymLinks flag. The default value is false .
        Hide
        jdcasey John Casey added a comment -

        We should add a "followSymlinks" flag to the API in plexus FileUtils, and then give the clean mojo a parameter to control it.

        Show
        jdcasey John Casey added a comment - We should add a "followSymlinks" flag to the API in plexus FileUtils, and then give the clean mojo a parameter to control it.

          People

          • Assignee:
            jdcasey John Casey
            Reporter:
            jdcasey John Casey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development