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 223053

Summary: Opening Java Project stored inside NB Module dir unintentionally converts line endings
Product: projects Reporter: Petr Somol <psomol>
Component: AntAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal CC: 280Z28
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Petr Somol 2012-11-30 13:24:49 UTC
This is a slightly annoying but relatively unimportant issue that happens on Windows. I'll describe it on a concrete case:

1) hg clone "NB sources" correctly creates files with Unix style line endings although we are on Windows
2) Open JavaWebStart module
3) go to Files view to see that there is an embedded project under JWS called AntTasks
4) right-click AntTasks and choose Open Project of Folder
5) on opening the project NB silently converts these two files

javawebstart\AntTasks\nbproject\build-impl.xml
javawebstart\AntTasks\nbproject\genfiles.properties

so that they get Windows style endings. 

This can be verified,e.g., by 'hg status'. This unwanted conversion then can cause problems when committing.
Comment 1 Milos Kleint 2012-12-11 09:21:56 UTC
it's a j2se project
Comment 2 Tomas Zezula 2012-12-11 09:26:01 UTC
The GeneratedFilesHelper is in project/ant
Comment 3 Milos Kleint 2013-04-11 07:00:16 UTC
*** Bug 204710 has been marked as a duplicate of this bug. ***
Comment 4 Martin Balin 2016-07-07 08:38:22 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss