Api providing facilities to copy files from different sources into a unique directory. This directory is intended to be zipped into a jar file.
The function fr.jeremyschoffen.mbt.alpha.core.jar.temp/add-srcs! is the entry point when
copying sources to the temp directory.
Api providing facilities to copy files from different sources into a unique directory.
This directory is intended to be zipped into a jar file.
The function [[fr.jeremyschoffen.mbt.alpha.core.jar.temp/add-srcs!]] is the entry point when
copying sources to the temp directory.
(add-entries! {entries :fr.jeremyschoffen.mbt.alpha.jar/entries :as param})Use fr.jeremyschoffen.mbt.alpha.core.jar.temp/add-entry! to copy all the entries
under the key :fr...mbt.alpha.jar/entries
Use [[fr.jeremyschoffen.mbt.alpha.core.jar.temp/add-entry!]] to copy all the entries under the key `:fr...mbt.alpha.jar/entries`
(add-entry! {output :fr.jeremyschoffen.mbt.alpha.jar/temp-output
exclude? :fr.jeremyschoffen.mbt.alpha.jar/exclude?
entry :fr.jeremyschoffen.mbt.alpha.jar/entry})Function that copies a jar entry into the temp output, handling the exclusion cases and the clashes.
Function that copies a jar entry into the temp output, handling the exclusion cases and the clashes.
(add-srcs! {srcs :fr.jeremyschoffen.mbt.alpha.jar/srcs :as param})Copy the files grouped under the key :fr...mbt.alpha.jar/srcs into the temp jar directory specified under the key
:fr...mbt.alpha.jar/temp-output.
A source can be is anything that satifies fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarSource
An optional exclusion function can be passed under the key :fr...mbt.alpha.jar/exclude. If this function returns true, the jar
entry will be excluded from the jar. It must take only one argument which will be a map with the following keys:
:fr...mbt.alpha.jar.entry/src: absolute path to the entry:fr...mbt.alpha.jar.entry/dest: relative path (to the dest jar) indicating where to place the entry in the jar:fr...mbt.alpha.jar/temp-output: path to the temporary directoryThe return value is a sequence of map, each one basically a jar/entry with additional keys:
:fr...mbt.alpha.jar/temp-output a reminder of the temp output path:fr...mbt.alpha.jar.adding/result: the :filtered-out keyword in the case of an exclusion, whichever value was returned by
whichever copying function was used otherwise.:fr...mbt.alpha.jar.clash/strategy: a keyword indicating which clash strategy has been used for this entry if a clash happenedCopy the files grouped under the key `:fr...mbt.alpha.jar/srcs` into the temp jar directory specified under the key
`:fr...mbt.alpha.jar/temp-output`.
A source can be is anything that satifies [[fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarSource]]
An optional exclusion function can be passed under the key `:fr...mbt.alpha.jar/exclude`. If this function returns true, the jar
entry will be excluded from the jar. It must take only one argument which will be a map with the following keys:
- `:fr...mbt.alpha.jar.entry/src`: absolute path to the entry
- `:fr...mbt.alpha.jar.entry/dest`: relative path (to the dest jar) indicating where to place the entry in the jar
- `:fr...mbt.alpha.jar/temp-output`: path to the temporary directory
The return value is a sequence of map, each one basically a `jar/entry` with additional keys:
- `:fr...mbt.alpha.jar/temp-output` a reminder of the temp output path
- `:fr...mbt.alpha.jar.adding/result`: the `:filtered-out` keyword in the case of an exclusion, whichever value was returned by
whichever copying function was used otherwise.
- `:fr...mbt.alpha.jar.clash/strategy`: a keyword indicating which clash strategy has been used for this entry if a clash happened
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |