2
0
Fork 0
mirror of https://github.com/ethauvin/rife2-hello.git synced 2025-04-25 15:37:10 -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 << """
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"() {