Commits

Meikel Brandmeyer committed 175411c

Allow to retrieve the source directories from a ClojureSourceSet

Adjusted implementation of DefaultClojureSourceSet

Comments (0)

Files changed (2)

src/main/groovy/de/kotka/gradle/ClojureSourceSet.groovy

 
 import groovy.lang.Closure
 
+import java.io.File
+import java.util.Set
+
 public interface ClojureSourceSet {
     public SourceDirectorySet getClojure()
     public ClojureSourceSet clojure(Closure closure)
     public FileTree getAllClojure()
+    public Set<File> getSrcDirs()
 }

src/main/groovy/de/kotka/gradle/DefaultClojureSourceSet.groovy

 
 import groovy.lang.Closure
 
+import java.io.File
+import java.util.Set
+
 public class DefaultClojureSourceSet implements ClojureSourceSet {
     private DefaultSourceDirectorySet clojure
     private PatternSet clojurePatterns
     public FileTree getAllClojure() {
         return allClojure
     }
+
+    public Set<File> getSrcDirs() {
+        return clojure.srcDirs
+    }
 }