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:
parent
d8c41b45d9
commit
5ca1fa305b
1 changed files with 3 additions and 2 deletions
|
@ -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"() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue