Bug 58575 - Set svn:eol-style native on all *.java files
Summary: Set svn:eol-style native on all *.java files
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2015-11-03 06:29 UTC by Javen O'Neal
Modified: 2016-06-17 07:25 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Javen O'Neal 2015-11-03 06:29:27 UTC
Some submitted patches contain lines that differ only by EOL.

Short term fix: recursively set svn:eol-style=native property to all *.java files

In the long term, should we have an SVN pre-commit hook or an ant test to make sure all checked in *.java files have svn:eol-style=native property set, or should we continue setting these properties manually as we remember? Would there ever be a case where a java file shouldn't have svn:eol-style=native set?
Comment 1 Javen O'Neal 2016-06-17 07:25:14 UTC
Added svn:auto-props in r1748802, which will check out files with native line endings if the subversion client >=1.8.

For developers using an older subversion client, they could add the following to their subversion config file:

Committers should add the following to ~/.subversion/config:
enable-auto-props = yes

*.java = svn:eol-style=native