Created
May 12, 2010 14:50
-
-
Save hugoduncan/398673 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 myns.plugin | |
(:import | |
[maven.clojure.annotations | |
Goal RequiresDependencyResolution Parameter] | |
org.apache.maven.plugin.Mojo)) | |
(deftype | |
#^{Goal "mygoal" | |
RequiresDependencyResolution "compile"} | |
Plugin | |
[ #^{:volatile-mutable true} log | |
#^{Parameter {:expression "${basedir}" | |
:required true | |
:readonly true}} | |
base-directory] | |
Mojo | |
(setLog | |
[_ logger] | |
(set! log logger)) | |
(getLog | |
[_] | |
log) | |
(execute | |
[this] | |
(.info log (str "Base directory" base-directory)))) | |
(defn make-Plugin | |
[] | |
(Plugin. nil nil)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment