Commits

Meikel Brandmeyer committed fe455cd

Improve classpath handling for doc task

  • Participants
  • Parent commits 1c8a2af

Comments (0)

Files changed (1)

clojuresque/src/main/groovy/clojuresque/ClojureDocTask.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 clojuredoc() {
         if (destinationDir == null) {