mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-25 23:37:12 -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 << """
|
||||
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"() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue