uDIG
  1. uDIG
  2. UDIG-1738

fail to delete project directory when in windows

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: UDIG 1.2.0
    • Fix Version/s: None
    • Component/s: application
    • Labels:
      None
    • Environment:
      XP, JRE 1.5

      Description

      fail to delete project directory when deleting project in windows xp,because following code should include File.separator but includes '/':
      ...

      if (deleteProjectFiles) {
      try

      { resourceSet.getResources().remove(resource); resource.unload(); int lastIndexOf = path.lastIndexOf('/'); if (lastIndexOf == -1) lastIndexOf = path.length(); path = path.substring(0, lastIndexOf); final File file = new File(path); deleteFile(file); }

      catch (Exception e)

      { ProjectUIPlugin.log("Error deleting project file", e); //$NON-NLS-1$ }

      }
      ...

        Activity

        Hide
        Andrea Antonello added a comment -
        Can you tell us in which class that happens or even better attach a patch to the report?
        I want to test and fix this asap.
        Show
        Andrea Antonello added a comment - Can you tell us in which class that happens or even better attach a patch to the report? I want to test and fix this asap.

          People

          • Assignee:
            Andrea Antonello
            Reporter:
            朱明海
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: