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: | dist.jar ought not include spaces | ||
---|---|---|---|
Product: | java | Reporter: | javydreamercsw <javydreamercsw> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | SPACE_IN_PATH |
Priority: | P4 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
javydreamercsw
2011-10-03 23:07:52 UTC
Missing steps to see the error:: 7) Build Marauroa Zone Extension module 8) Build Zone List Manager module Note: Created tag Bug 203008 in the mentioned repository so the state to reproduce the error is maintained. Never use spaces in JAR names. Regardless of anything in NB, it will not work correctly with javac. *** This bug has been marked as a duplicate of bug 195730 *** I understand the space comment but then the issue is that NetBeans assigned that name on it's own. If you create a Java project and the project name has spaces the dist.jar property should replace the spaces with '_' or something. Is not like I manually put the spaces there. (In reply to comment #3) > If you create a Java project and the project name has > spaces the dist.jar property should replace the spaces with '_' or something. So do not put spaces in the project name, and bug #195730 will not be triggered. The _display name_ may have whatever characters you like, but using spaces in the actual (sub-)folder path or any other identifiers is a bad idea. That said, replacing ' ' with '_' (or more precisely, PropertyUtils.getUsablePropertyName) in dist.jar would be useful. > [It's] not like I manually put the spaces there. That seems to contradict what you say in step #5 in comment #0. In general, please provide a small, self-contained test case if you want developers to evaluate. This kind of issue does not happen "randomly" so there should be no reason why such a test case should be hard to create, given the ability to reproduce a problem in your real projects. Works fine on Unix but I will rather use PropertyUtils.getUsablePropertyName for dist.jar fixed jet-main 3c4a85520a42 Newly created j2se project uses PropertyUtils.getUsablePropertName() Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/3c4a85520a42 User: Tomas Zezula <tzezula@netbeans.org> Log: #203008:dist.jar ought not include spaces |