diff --git a/pom.xml b/pom.xml index b4d7c404b42..4df3b52391b 100644 --- a/pom.xml +++ b/pom.xml @@ -883,6 +883,26 @@ + + org.apache.maven.plugins + maven-eclipse-plugin + + + + .settings/org.eclipse.jdt.core.prefs + src/eclipse/dot.settings/org.eclipse.jdt.core.prefs + + + .settings/org.eclipse.jdt.ui.prefs + src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs + + + .settings/org.eclipse.core.resources.prefs + src/eclipse/dot.settings/org.eclipse.core.resources.prefs + + + + diff --git a/src/eclipse/README b/src/eclipse/README new file mode 100644 index 00000000000..ee4874d2311 --- /dev/null +++ b/src/eclipse/README @@ -0,0 +1,6 @@ +Eclipse configuration files + +You can use them by running + mvn eclipse:clean eclipse:eclipse +and importing the project into Eclipse (File > Import > Existing Project into +workspace) or refreshing it (F5) if you already imported it. diff --git a/src/eclipse/dot.settings/org.eclipse.core.resources.prefs b/src/eclipse/dot.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000000..99f26c0203a --- /dev/null +++ b/src/eclipse/dot.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/src/eclipse/dot.settings/org.eclipse.jdt.core.prefs b/src/eclipse/dot.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..a35498a9916 --- /dev/null +++ b/src/eclipse/dot.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,10 @@ +eclipse.preferences.version=1 +# We target Java 1.6 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.source=1.6 +# Lines should be splitted at 140 chars +org.eclipse.jdt.core.formatter.lineSplit=140 +# Indentation is 4 spaces +org.eclipse.jdt.core.formatter.tabulation.char=space +org.eclipse.jdt.core.formatter.tabulation.size=4 diff --git a/src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs b/src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..0856eebe16b --- /dev/null +++ b/src/eclipse/dot.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +formatter_settings_version=12 +# Intellij IDEA import rules +org.eclipse.jdt.ui.importorder=;java;javax;\#; +org.eclipse.jdt.ui.ondemandthreshold=5 +org.eclipse.jdt.ui.staticondemandthreshold=3 +# License header +org.eclipse.jdt.ui.text.custom_code_templates=