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 - Opening Java Project stored inside NB Module dir unintentionally converts line endings
Summary: Opening Java Project stored inside NB Module dir unintentionally converts lin...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 204710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-30 13:24 UTC by Petr Somol
Modified: 2016-07-07 08:38 UTC (History)
1 user (show)

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 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