From 5ca1fa305bb338b86e308561df7dbbc40606075e Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Sun, 5 Mar 2023 08:51:14 -0500 Subject: [PATCH] Gradle plugin test fix --- .../com/uwyn/rife2/gradle/TemplateCompilationTest.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-logic/src/test/groovy/com/uwyn/rife2/gradle/TemplateCompilationTest.groovy b/build-logic/src/test/groovy/com/uwyn/rife2/gradle/TemplateCompilationTest.groovy index 12f14a6..9d2571e 100644 --- a/build-logic/src/test/groovy/com/uwyn/rife2/gradle/TemplateCompilationTest.groovy +++ b/build-logic/src/test/groovy/com/uwyn/rife2/gradle/TemplateCompilationTest.groovy @@ -29,8 +29,9 @@ class TemplateCompilationTest extends AbstractFunctionalTest { buildFile << """ tasks.register("dumpRunClasspath") { doLast { + def rootPath = rootProject.projectDir.toPath() tasks.named("run").get().classpath.files.each { - println "Classpath entry: \$it" + println "Classpath entry: \${rootPath.relativize(it.toPath())}" } } } @@ -40,7 +41,7 @@ class TemplateCompilationTest extends AbstractFunctionalTest { run("dumpRunClasspath") then: "template sources must be present in the classpath" - outputContains("Classpath entry: ${file("src/main/templates").absolutePath}") + outputContains("Classpath entry: src/main/templates") } def "compiles templates when running #task"() {