logo lein-resource

A task that copies the files for the resource-paths to the target-path, applying stencil to each file allowing the files to be updated as they are copied. ## Usage ### Copy Execute the plugin to copy the files. lein resource ### Clean Remove the files created by the plugin. lein resource clean ### Print Print the value of a stencil specified as an argument, useful for build scripts lein resource print "{{version}}" export MY_PROJECT_VERSION=$(lein resource print "{{name}}:{{version}}") ### Pretty Print Dump the map of values sent to stencil. lein resource pprint ## Configuration To configure the plugin,add to the project.clj: ### Sample Configuration :resource { ;; required or will do nothing :resource-paths ["src-resource"] OR :resource-paths [ ["src-resource" { :includes [] ;; list of regex :excludes [] ;; list of regex :target-path "" ;; directory to store files :extra-values {} ;; override the top level ;; values for this resource }]] ;; optional default to the global one :target-path "target/html" ;; When true, only copy files where src is ;; newer than default :update false ;; optional - this is the default :includes [ #".*" ] ;; optional - default is no excludes ;; which is en empty vector :excludes [ #".*~" ] ;; optional - list of regex of files to skip stencil :skip-stencil [ ] ;; optional - if true, do not echo progress to the screen :silent false ;; optional - if true, echo lots of debug info :verbose false ;; optional - default to nil :extra-values { :year ~(.get (java.util.GregorianCalendar.) (java.util.Calendar/YEAR)) } ## Links ### Marginalia [Marginalia](http://gdeer81.github.io/marginalia) [Markdown](http://daringfireball.net/projects/markdown/syntax) [MathJax](http://www.mathjax.org/) ### test.check [test.check](https://github.com/clojure/test.check)

homepage: github.com/m0smith/lein-resource
fresh index:
last release: 1 month ago, first release: 4 years ago
packaging: jar
get this artifact from: clojars





This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:



© Jiri Pinkas 2015 - 2016. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.