Skip to content

Instantly share code, notes, and snippets.

@mobileink
Created February 12, 2016 14:45
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 mobileink/a2f86196eb67435e9623 to your computer and use it in GitHub Desktop.
Save mobileink/a2f86196eb67435e9623 to your computer and use it in GitHub Desktop.
simple boot file copying with filter and path alteration
(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