Created
February 12, 2016 14:45
-
-
Save mobileink/a2f86196eb67435e9623 to your computer and use it in GitHub Desktop.
simple boot file copying with filter and path alteration
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
(core/deftask webapp | |
"copy webapp to build" | |
[] | |
(println "TASK: webapp") | |
(comp | |
(builtin/sift :include #{#".*.clj$"} | |
:invert true) | |
(builtin/target :dir #{(output-webapp-dir)} | |
:no-clean true))) | |
(def project-dir (System/getProperty "user.dir")) | |
(def build-dir (str/join "/" [project-dir "build/exploded-app"])) | |
(defn output-classes-dir [] (str/join "/" [build-dir "WEB-INF" "classes"])) | |
(core/deftask clj-cp | |
"copy clj files to target" | |
[] | |
(println "TASK: clj-dev " (output-classes-dir)) | |
(comp | |
(builtin/sift :include #{#".*\.clj$"}) | |
(builtin/target :dir #{(output-classes-dir)} | |
:no-clean true))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment