Commits

Meikel Brandmeyer committed 1c8a2af

Improve classpath handling for test task

  • Participants
  • Parent commits b850a3c

Comments (0)

Files changed (1)

File clojuresque/src/main/groovy/clojuresque/ClojureTestTask.groovy

 
 import org.gradle.api.file.FileCollection
 import org.gradle.api.file.SourceDirectorySet
+import org.gradle.api.tasks.InputFiles
 import org.gradle.api.tasks.TaskAction
 
 import java.io.File
     def Closure jvmOptions = {}
     def List<String> tests = []
 
+    @InputFiles
+    public FileCollection getTestClasspath() {
+        return this.testClasspath
+    }
+
+    public void testClasspath(Object... coll) {
+        testClasspath = testClasspath.plus(project.files(coll))
+    }
+
     @TaskAction
     public void runTests() {
         project.clojureexec {