cmr.plugin.jar.core
Documentation forthcoming
config-data
(config-data jar in-jar-filepath)Extract the EDN configuration data stored in a jarfile at the given location in the JAR.
create-has-plugin-name-reducer
(create-has-plugin-name-reducer plugin-name _)This creates a reducer that will generate a collection of JAR files that have a MANIFEST file and that also have a key in the MANIFEST file which exactly matches the given plugin name.
create-has-plugin-type-reducer
(create-has-plugin-type-reducer plugin-name plugin-type)This creates a reducer that will generate a collection of JAR files that have a MANIFEST file and that also have a key in the MANIFEST file which exactly matches both the given plugin name as well as the plugin type.
create-regex-plugin-name-reducer
(create-regex-plugin-name-reducer plugin-name _)This creates a reducer that will generate a collection of JAR files that have a MANIFEST file and that also have a key in the MANIFEST file which matches the given plugin name (possibly a regular expression).
create-regex-plugin-reducer
(create-regex-plugin-reducer plugin-name plugin-type)This creates a reducer that will generate a collection of JAR files that have a MANIFEST file and that: 1) have a key in the MANIFEST file which regex-matches (Clojure-style regex string) the configured plugin name, and 2) have a value for the plugin key which regex-matches (Clojure-style regex string) the configured plugin type.
create-regex-plugin-type-reducer
(create-regex-plugin-type-reducer plugin-name plugin-type)This creates a reducer that will generate a collection of JAR files that have a MANIFEST file and that: 1) have a key in the MANIFEST file which exactly matches the given plugin name, and 2) have a value for the plugin key that matches the configured plugin type, where the plugin type is possibly a regular expression.
has-manifest-reducer
(has-manifest-reducer acc jar)This is a reducer that will generate a collection of JAR files that have a MANIFEST file.
jarfiles
(jarfiles plugin-name plugin-type reducer-factory)Given a plugin name (MANIFEST file entry), plugin type (the MANIFEST file entry’s value), and a reducer-factory function, return all the JAR files that are accumulated by the redcuer.
no-manifest-reducer
(no-manifest-reducer acc jar)This reducer will generate a collection of JAR files that have no MANIFEST file. Primarily useful for debugging/curiosity.
tagged-jars
(tagged-jars jarfiles plugin-name plugin-type)Generate a collection of JarFile maps, each with a :file and :object key for easy readability and use.