Liking cljdoc? Tell your friends :D
Clojure only.

fr.jeremyschoffen.mbt.alpha.core.jar.protocols

Protocols used in to create a flexible way to approach the creation of jar sources.

See fr.jeremyschoffen.mbt.alpha.core.jar.sources to have an example of how to use these protocols.

Protocols used in to create a flexible way to approach the creation of jar sources.

See [[fr.jeremyschoffen.mbt.alpha.core.jar.sources]] to have an example of how to use these
protocols.
      
raw docstring

JarEntriescljprotocol

Protocol to implement in order to confer types the capacity to add files to a jar.

Protocol to implement in order to confer types the capacity to add files to a jar.

add!clj

(add! this conf)

Add files to a jar according to what the implementer wants to add. Note that when implementing this function the use of [[fr.jeremyschoffen.mbt.alpha.core.jar.temp/add-entries]] is the obvious way.

Args:

Add files to a jar according to what the implementer wants to add. Note that when implementing this function the
use of [[fr.jeremyschoffen.mbt.alpha.core.jar.temp/add-entries]] is the obvious way.

Args:
- `this`: the instance of [[fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries]] which contains
  its own logic as to what it wants to put in a jar.
- `conf`: the build configuration in the form of a map. (see [[fr.jeremyschoffen.mbt.alpha.core.specs]])
sourceraw docstring

JarSourcecljprotocol

Protocol used make types capable of generating instances of fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries.

Protocol used make types capable of generating instances of
[[fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries]].

to-entriesclj

(to-entries this)
(to-entries this exclude)

Function making instances of fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries.

Args:

  • this: the value out of which we want to make a fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries.
  • exclude: An exclusion function that will be specific to the fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries being made. 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:
    • :jar.entry/src: absolute path to the entry
    • :jar.entry/dest: relative path (to the dest jar) indicating where to place the entry in the jar
    • :jar/temp-output: path to the temporary directory
Function making instances of [[fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries]].

Args:
- `this`: the value out of which we want to make a
[[fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries]].
- `exclude`: An exclusion function that will be specific to the
  [[fr.jeremyschoffen.mbt.alpha.core.jar.protocols/JarEntries]] being made. 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:
  - `:jar.entry/src`: absolute path to the entry
  - `:jar.entry/dest`: relative path (to the dest jar) indicating where to place the entry in the jar
  - `:jar/temp-output`: path to the temporary directory
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close