From 240155b4ea0544873594e79f49c3bbe46cee0d9d Mon Sep 17 00:00:00 2001 From: Colin Goodheart-Smithe Date: Mon, 8 Jun 2015 14:39:17 +0100 Subject: [PATCH] Adds eclipse settings files to set correct encoding and complier preferences This is done in the maven-eclipse-plugin so now all eclipse files are generated by mV eclipse:eclipse and can safely be ignored --- .gitignore | 15 ++++++--------- pom.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 5d31f3c7b7b..b0c803ca912 100644 --- a/.gitignore +++ b/.gitignore @@ -16,21 +16,18 @@ docs/build.log backwards/ ## eclipse ignores (use 'mvn eclipse:eclipse' to build eclipse projects) -## The only configuration files which are not ignored are certain files in -## .settings (as listed below) since these files ensure common coding -## style across Eclipse and IDEA. -## Other files (.project, .classpath) should be generated through Maven which -## will correctly set the classpath based on the declared dependencies. +## All files (.project, .classpath, .settings/*) should be generated through Maven which +## will correctly set the classpath based on the declared dependencies and write settings +## files to ensure common coding style across Eclipse and IDEA. .project .classpath +/.settings eclipse-build */.project */.classpath */eclipse-build -/.settings/ -!/.settings/org.eclipse.core.resources.prefs -!/.settings/org.eclipse.jdt.core.prefs -!/.settings/org.eclipse.jdt.ui.prefs +*/.settings +plugins/*/.settings ## netbeans ignores nb-configuration.xml diff --git a/pom.xml b/pom.xml index 20e2705fcbb..304a060a6cc 100644 --- a/pom.xml +++ b/pom.xml @@ -1028,6 +1028,56 @@ eclipse-build true + + + .settings/org.eclipse.core.resources.prefs + + =UTF-8 +]]> + + + + .settings/org.eclipse.jdt.core.prefs + + + + + + .settings/org.eclipse.jdt.ui.prefs + + +]]> + + +