Commits

Meikel Brandmeyer  committed b850a3c

Improve classpath handling for compile task

  • Participants
  • Parent commits 478dfa0

Comments (0)

Files changed (1)

File clojuresque/src/main/groovy/clojuresque/ClojureCompileTask.groovy

 
 import org.gradle.api.file.FileCollection
 import org.gradle.api.file.SourceDirectorySet
+import org.gradle.api.tasks.InputFiles
 import org.gradle.api.tasks.OutputDirectory
 import org.gradle.api.tasks.StopExecutionException
 import org.gradle.api.tasks.TaskAction
         return this.destinationDir
     }
 
+    @InputFiles
+    public FileCollection getCompileClasspath() {
+        return this.compileClasspath
+    }
+
+    public void compileClasspath(Object... coll) {
+        compileClasspath = compileClasspath.plus(project.files(coll))
+    }
+
     @TaskAction
     public void compile() {
         if (destinationDir == null) {