[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] [jira] Created: (UDIG-1738) fail to delete project directory when in windows
|
fail to delete project directory when in windows
------------------------------------------------
Key: UDIG-1738
URL: http://jira.codehaus.org/browse/UDIG-1738
Project: uDIG
Issue Type: Bug
Components: application
Affects Versions: UDIG 1.2.0
Environment: XP, JRE 1.5
Reporter: 朱明海
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$
}
}
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira