Skip to content

Instantly share code, notes, and snippets.

@lancepantz
Created October 5, 2010 19:19
Show Gist options
  • Save lancepantz/612152 to your computer and use it in GitHub Desktop.
Save lancepantz/612152 to your computer and use it in GitHub Desktop.
(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