Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Created September 25, 2010 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelklishin/597196 to your computer and use it in GitHub Desktop.
Save michaelklishin/597196 to your computer and use it in GitHub Desktop.
(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