2
0
Fork 0
mirror of https://github.com/ethauvin/rife2-hello.git synced 2025-04-26 07:47:13 -07:00

Gradle plugin test fix

This commit is contained in:
Geert Bevin 2023-03-05 08:51:14 -05:00
parent d8c41b45d9
commit 5ca1fa305b

View file

@ -29,8 +29,9 @@ class TemplateCompilationTest extends AbstractFunctionalTest {
buildFile << """ buildFile << """
tasks.register("dumpRunClasspath") { tasks.register("dumpRunClasspath") {
doLast { doLast {
def rootPath = rootProject.projectDir.toPath()
tasks.named("run").get().classpath.files.each { 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") run("dumpRunClasspath")
then: "template sources must be present in the classpath" 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"() { def "compiles templates when running #task"() {