Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Assign the springio*Test tasks executable
Browse files Browse the repository at this point in the history
Fixes: gh-38
  • Loading branch information
Rob Winch committed May 5, 2014
1 parent 2aa691d commit f9eba00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.

This file was deleted.

Expand Up @@ -67,6 +67,7 @@ class SpringioPlatformPlugin implements Plugin<Project> {
html.destination = project.file("$project.buildDir/reports/springio-$jdk-tests/")
junitXml.destination = project.file("$project.buildDir/springio-$jdk-test-results/")
}
executable exec
}
springioTest.dependsOn springioJdkTest
}
Expand Down
Expand Up @@ -16,10 +16,11 @@ class SpringioPlatformPluginTests extends Specification {
Project project
@AutoCleanup("deleteDir")
File jdkHome = Files.createTempDir()
File java

def setup() {
project = ProjectBuilder.builder().build()
def java = new File(jdkHome,'bin/java')
java = new File(jdkHome,'bin/java')
java.parentFile.mkdirs()
java.createNewFile()
}
Expand Down Expand Up @@ -79,6 +80,7 @@ class SpringioPlatformPluginTests extends Specification {
project.apply plugin: JavaPlugin
then:
jdk7TestTask
jdk7TestTask.executable == java.absolutePath
}

def "Does not create springioJDK7Test if JDK7_HOME missing Task"() {
Expand All @@ -97,6 +99,7 @@ class SpringioPlatformPluginTests extends Specification {
project.apply plugin: JavaPlugin
then:
jdk8TestTask
jdk8TestTask.executable == java.absolutePath
}

def "Does not create springioJDK8Test if JDK8_HOME missing Task"() {
Expand Down

0 comments on commit f9eba00

Please sign in to comment.