This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | ant/project tests failing due to space in path | ||
---|---|---|---|
Product: | projects | Reporter: | Jan Chalupa <jchalupa> |
Component: | Ant | Assignee: | Jesse Glick <jglick> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | dkonecny |
Priority: | P3 | Keywords: | SPACE_IN_PATH, TEST |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Patch |
Description
Jan Chalupa
2004-10-29 22:57:12 UTC
Created attachment 18615 [details]
Patch
Should read "... problem seems to be the URL.toPath() call..." The patch is not correct but it is simple to write one that is. *Never* extract the filename from a 'file' scheme URI using getPath (even if you .replace('/', File.separatorChar), which this patch did not). Always use new File(uri) which is designed for this purpose and may have additional specialized behavior which is intentionally not documented by the Java platform. committed Up-To-Date 1.9 ant/project/test/unit/src/org/netbeans/spi/project/support/ant/EditablePropertiesTest.java This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance. |