Commits

Meikel Brandmeyer committed 9c3f81f

Add flag for incremental compilation

  • Participants
  • Parent commits c547a69

Comments (0)

Files changed (2)

scriptoresque-base/src/main/groovy/clojuresque/ClojureScriptBasePlugin.groovy

                 optimizations = "advanced"
                 target = "none"
                 pretty = false
+                incremental = true
                 delayedDestinationDir = {
                     FileUtil.file(project.buildDir, "javascript", set.name)
                 }

scriptoresque-base/src/main/groovy/clojuresque/tasks/ClojureScriptCompileTask.groovy

     @Input
     def pretty
 
+    @Input
+    def incremental
+
     @OutputDirectory
     @Delayed
     def destinationDir
         if (cDir == null) {
             throw new StopExecutionException("closureDir not set!")
         }
+        if (!incremental) {
+            FileUtil.remove(cDir)
+        }
         cDir.mkdirs()
 
         if (getOutputFileName() == null) {