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.

Bug 78948 - Trailing spaces in suite project.properties causes modules to be ignored
Summary: Trailing spaces in suite project.properties causes modules to be ignored
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Solaris
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-22 23:47 UTC by Nathan Fiedler
Modified: 2006-06-23 02:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My Emacs major mode for *.properties which marks trailing spaces in pink (6.75 KB, text/plain)
2006-06-23 02:37 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Fiedler 2006-06-22 23:47:21 UTC
If the nbproject/project.properties file in my module suite has trailing spaces
on lines that start with "project.", then NB does not see the corresponding
modules as being a part of the suite. This causes problems with respect to
adding module dependencies, since the "hidden" modules are not considered a part
of the suite.

I don't know how the spaces got into the file in the first place, probably
someone was editing the file by hand. Nonetheless, this is bad behavior and NB
should be able to deal with the whitespace.

This problem appears in 5.0, 5.0 u1, and 5.5 beta, on Solaris 10 x86, but not on
Windows XP. Possibly happens on other Unix-like systems.
Comment 1 Jesse Glick 2006-06-23 02:36:22 UTC
Trailing spaces are part of the value, according to the java.util.Properties
specification. If you edit properties files as text you must take care not to
insert superfluous trailing spaces, lest you change the meaning of the
Map<String,String>. There are modules available on the NB update centers which
highlight trailing spaces for you which might be useful. Probably the
text/x-properties editor ought to display such trailing spaces in a special color.
Comment 2 Jesse Glick 2006-06-23 02:37:21 UTC
Created attachment 31326 [details]
My Emacs major mode for *.properties which marks trailing spaces in pink
Comment 3 Jesse Glick 2006-06-23 02:38:14 UTC
Note: similar issues exist for Java manifest files, and of course the notorious
TAB-in-Makefile problem.