SOLR-4914: Close OutputStreamWriter properly, use System.getProperty("line.separator") instead of \n

Fixes Windows test failures.


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1502468 13f79535-47bb-0310-9956-ffa450edef68
SOLR-4914: Use Properties.store(OutputStream, String) for back compatibility

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1502481 13f79535-47bb-0310-9956-ffa450edef68
Fix warnings in forbidden-apis

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1502484 13f79535-47bb-0310-9956-ffa450edef68
Refactor forbidden-apis a bit to make it easier to add new signatures, no need to have so many files slowing down the build; add Properties file rules

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1502493 13f79535-47bb-0310-9956-ffa450edef68