From 417c98304d298e55d2decb5c8c56ecd764f31522 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 20 Nov 2017 11:46:34 +0000 Subject: [PATCH] Remove assumption about file separator that is incorrect on Windows Closes gh-11087 --- .../gradle/plugin/JavaPluginActionIntegrationTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/JavaPluginActionIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/JavaPluginActionIntegrationTests.java index c1cb759ccc..753e18cbef 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/JavaPluginActionIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/JavaPluginActionIntegrationTests.java @@ -128,9 +128,10 @@ public class JavaPluginActionIntegrationTests { assertThat(result.task(":compileJava").getOutcome()) .isEqualTo(TaskOutcome.SUCCESS); assertThat(result.getOutput()).contains( - "compileJava compiler args: [-parameters, -Aorg.springframework.boot.configurationprocessor.additionalMetadataLocations=" - + this.gradleBuild.getProjectDir().getCanonicalPath() - + "/src/main/resources]"); + "compileJava compiler args: [-parameters, -Aorg.springframework.boot." + + "configurationprocessor.additionalMetadataLocations=" + + new File(this.gradleBuild.getProjectDir(), "src/main/resources") + .getCanonicalPath()); } @Test