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.
File path separator ("\" on Windows and "/" in non-Windows world) is in fact file-system dependent. When on Windows, File.separator is "\", while in many file systems (jar, system, remote) it's natural to use "/". In the case of remote file system it leads to usability issues like issue 248653. So I propose to create an API that allows to get this file-system depended separator
I would propose to use attributes, like we did with line separators a while ago.
Created attachment 154370 [details] The proposed fix
The patch seems OK to me. Thank you.
(In reply to Jaroslav Havlin from comment #3) Thank you! I'm going to integrate it shortly.
The fix is pushed into cnd-main http://hg.netbeans.org/cnd-main/rev/3de333a33a3e
Integrated into 'main-silver', will be available in build *201507010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3de333a33a3e User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fix for #253156 - There should be a way to determine file path separator