Commits

Howard Lewis Ship  committed 05a8b64 Draft

Make use of the Project API to configure the action using jvmOptions

  • Participants
  • Parent commits bd69d6c

Comments (0)

Files changed (2)

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

         }
 
 
-        project.clojureexec {
-            this.jvmOptions()
+        project.clojureexec { action ->
+
+            project.configure action, this.jvmOptions
+
             systemProperties "clojure.compile.path": this.destinationDir.path
             classpath = project.files(
                 this.clojureRoots.srcDirs,

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

 
     @TaskAction
     public void runTests() {
-        project.clojureexec {
-            this.jvmOptions()
+        project.clojureexec { action ->
+            project.configure action, this.jvmOptions
+
             classpath = project.files(
                 this.testRoots.srcDirs,
                 this.classesDir,