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 258008 - Trailing "\n" is not removed from Djava.library.path="..."\n in project properties (Java)
Summary: Trailing "\n" is not removed from Djava.library.path="..."\n in project prope...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.2
Hardware: PC Windows 10 x64
: P1 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 09:21 UTC by chjan
Modified: 2016-03-14 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chjan 2016-02-16 09:21:04 UTC
By huge surprise and thus a major timethief, due to the fact that an \n was inserted by me in the project properties / run / VM options, the application was unable to locate native libraries, causing malfunction. 

Here is a copy of the string from the resultin project.properties file.

run.jvmargs=-Djava.library.path="C:\\Users\\....\\Documents\\NetBeansProjects\\SPtest\\SoundPimp\\lib"\n

I don't know if it is relevant to report this a general bug for input fields in Netbeans? For you to find out, but it was hard to find this bug because one expects input algorithms to contain the removal of leading or trailing stuff.

Another thing: Why is the setting of library path not a separate field in the input scheme of project properties? Would be timesaving.
Comment 1 chjan 2016-02-16 09:22:22 UTC
I could not find a bug category "Netbeans GUI" or similar, hence I put it under Java/Editor. Please make sure the bug is recategorized as necessary, or notify me to do it.
Comment 2 Tomas Zezula 2016-03-14 12:45:05 UTC
Fixed jet-main b3da58e18186

The project properties / run / VM options no more allows '\n', the new line is consumed now. The text area is there only to make long options better visible. The fact that the '\n' was allowed and stored to Ant properties was a bug.