Created
September 25, 2010 19:44
-
-
Save michaelklishin/597196 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns leiningen.hooks.javac | |
(:require leiningen.test) | |
(:use [clojure.contrib.io :only [file delete-file delete-file-recursively]] | |
[leiningen.javac :only (javac extract-javac-tasks)] | |
robert.hooke)) | |
(defn java-compilation-hook [task & args] | |
(println "About to compile Java sources") | |
(apply javac args) | |
(apply task args)) | |
(add-hook #'leiningen.test/test java-compilation-hook) | |
(add-hook #'leiningen.repl/repl java-compilation-hook) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment