From 716726aa50f5bf0fafacc94cad6392bb29c16504 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 8 Feb 2018 13:26:37 -0800 Subject: [PATCH] Update Eclipse Oomph setup for Oxygen See gh-8513 --- CONTRIBUTING.adoc | 3 +- eclipse/spring-boot-project.setup | 47 ++++++++++++------------------- 2 files changed, 19 insertions(+), 31 deletions(-) diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 1c4b06660f..846566bce1 100755 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -153,7 +153,7 @@ Spring Boot includes a `.setup` files which can be used with the Eclipse Install provision a new environment. To use the installer: * Download and run the latest Eclipse Installer from - http://www.eclipse.org/downloads/[eclipse.org/downloads/]. + http://www.eclipse.org/downloads/[eclipse.org/downloads/] (under "Get Eclipse"). * Switch to "Advanced Mode" using the drop down menu on the right. * Select "`Eclipse IDE for Java Developers`" under "`Eclipse.org`" as the product to install and click "`next`". @@ -225,4 +225,3 @@ The sample applications are used as integration tests during the build (when you they cannot be called directly, and so instead are launched via the `maven-invoker-plugin`. If you encounter build failures running the integration tests, check the `build.log` file in the appropriate sample directory. - diff --git a/eclipse/spring-boot-project.setup b/eclipse/spring-boot-project.setup index acd7baeb57..abcd30a269 100644 --- a/eclipse/spring-boot-project.setup +++ b/eclipse/spring-boot-project.setup @@ -11,8 +11,8 @@ xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0" xmlns:workingsets="http://www.eclipse.org/oomph/workingsets/1.0" xsi:schemaLocation="http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/maven/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Maven.ecore http://www.eclipse.org/oomph/predicates/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore http://www.eclipse.org/oomph/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/WorkingSets.ecore" - name="spring.boot" - label="Spring Boot"> + name="spring.boot.1.5.x" + label="Spring Boot 1.5.x"> + name="epp.package.java"/> - - - - - + url="http://download.eclipse.org/technology/epp/packages/oxygen/R/"/> + url="http://download.eclipse.org/releases/oxygen/"/> + url="http://andrei.gmxhome.de/eclipse/"/> - - + Install the tools needed in the IDE to work with the source code for ${scope.project.label} + xsi:type="maven:MavenImportTask"> + rootFolder="${checkout.location}" + locateNestedProjects="true"/> + rootFolder="${checkout.location}/spring-boot-samples" + locateNestedProjects="true"/> + rootFolder="${checkout.location}/spring-boot-deployment-tests" + locateNestedProjects="true"/> @@ -224,9 +213,9 @@ key="/instance/org.eclipse.jdt.ui/smartPaste" value="true"/> + xsi:type="setup:PreferenceTask" + key="/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.text.custom_templates" + value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="java" deleted="false" description="Surround code with formatter off and formatter on tags" enabled="true" name="noformat">// @formatter:off $${cursor} $${line_selection} // @formatter:on</template></templates>"/>