From ae0700efc1674a80c28e61fb68977e99679611f8 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 20 Apr 2017 13:45:33 +0100 Subject: [PATCH] Try to make RunningDocumentationTests platform independent Windows seems unable to decide if the temp dir is in System32 or system32 which breaks the comparison. This commit attempts to appease the gods of case sensitity by reducing the portion of the path that we check so that system32 vs System32 doesn't come into it. See gh-8920 --- .../boot/gradle/docs/RunningDocumentationTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/RunningDocumentationTests.java b/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/RunningDocumentationTests.java index 4ca33d7047..e999470102 100644 --- a/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/RunningDocumentationTests.java +++ b/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/RunningDocumentationTests.java @@ -55,9 +55,8 @@ public class RunningDocumentationTests { public void bootRunSourceResources() throws IOException { assertThat(this.gradleBuild .script("src/main/gradle/running/boot-run-source-resources.gradle") - .build("configuredClasspath").getOutput()).contains( - new File(this.gradleBuild.getProjectDir(), "src/main/resources") - .getAbsolutePath()); + .build("configuredClasspath").getOutput()) + .contains(new File("src/main/resources").getPath()); } }