Created
October 5, 2010 19:19
-
-
Save lancepantz/612152 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
(deftask clean | |
"Remove cake build artifacts." | |
(ant Delete {:verbose true} | |
(add-fileset {:dir (file) :includes "*.jar"}) | |
(add-fileset {:dir (file) :includes "*.war"})) | |
(add-fileset {:dir (file ".cake" "run") :includes "*"}) | |
(doseq [dir ["classes" "build" "test/classes"]] | |
(clean-dir (file dir))) | |
(when (= ["deps"] (:clean *opts*)) | |
(clean-dir (file "lib")) | |
(ant Delete {:verbose true} | |
(add-fileset {:dir (file) :includes "pom.xml"})))) | |
(deftask default #{help}) | |
(deftask file | |
"Invoke a file task." | |
(run-task (first (:file *opts*)))) | |
(deftask clean | |
"Remove cake build artifacts." | |
(ant Delete {:verbose true} | |
(add-fileset {:dir (file) :includes "*.jar"}) | |
<<<<<<< HEAD | |
(add-fileset {:dir (file) :includes "*.war"})) | |
(doseq [dir ["classes" "build" "test/classes"]] | |
======= | |
(add-fileset {:dir (file) :includes "*.war"}) | |
(add-fileset {:dir (file ".cake" "run") :includes "*"})) | |
(doseq [dir ["classes" "build"]] | |
>>>>>>> f | |
(clean-dir (file dir))) | |
(when (= ["deps"] (:clean *opts*)) | |
(clean-dir (file "lib")) | |
(ant Delete {:verbose true} | |
(add-fileset {:dir (file) :includes "pom.xml"})))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment