Commits

Meikel Brandmeyer committed 40613bc

Inherit jvmOpts from CompileTask

  • Participants
  • Parent commits e086aaa

Comments (0)

Files changed (4)

clojuresque/src/main/groovy/clojuresque/ClojureBasePlugin.groovy

                 delayedDestinationDir = {
                     project.file(project.docsDir.path + "/clojuredoc")
                 }
+                jvmOpts = { compileTask.jvmOpts }
                 source set.clojure
                 clojureRoots = set.clojure
                 delayedClasspath = { compileTask.classpath }
     }
 
     private void configureTests(project) {
+        def compileTask = project.tasks[
+            project.sourceSets.main.getCompileTaskName("clojure")
+        ]
         def clojureTest = project.task("clojureTest",
                 type: ClojureTestTask) {
             source project.sourceSets.test.clojure
             testRoots = project.sourceSets.test.clojure
+            delayedJvmOpts = { compileTask.jvmOpts }
             delayedClasspath  = { project.configurations.testRuntime }
             delayedClassesDir = { project.sourceSets.main.output.classesDir }
             delayedJunitOutputDir = {

clojuresque/src/main/groovy/clojuresque/tasks/ClojureCompileTask.groovy

     def fileMode = null
 
     def clojureRoots
+
+    @Delayed
     def jvmOptions = {}
 
     @TaskAction

clojuresque/src/main/groovy/clojuresque/tasks/ClojureDocTask.groovy

     def classpath
 
     def clojureRoots
-    def jvmOptions = {}
+
+    @Delayed
+    def jvmOptions
 
     @TaskAction
     public void clojuredoc() {

clojuresque/src/main/groovy/clojuresque/tasks/ClojureTestTask.groovy

     def classpath
 
     def testRoots
-    def jvmOptions = {}
+
+    @Delayed
+    def jvmOptions
     def junit = false
 
     @Delayed