io.pedestal.service-tools.war

app-server-ns

(app-server-ns opts)

default-pedestal-manifest

dir-entry

(dir-entry war opts war-root dir-path)

file-entry

(file-entry war opts war-path file)

in-war-path

(in-war-path war-path root file)

make-manifest

(make-manifest)(make-manifest manifest-map)

make-web-xml

(make-web-xml opts)

Given a map of options, return a string of XML - the web.xml for the service/WAR.

Available options and default values :web-xml - a slurpable path, which is returned as the web.xml string. NOTE: All other options will be ignored. :servlet-description “Pedestal HTTP Servlet” :servlet-display-name - defaults to :servlet-description :servlet-name “PedestalServlet” :servlet-class “io.pedestal.servlet.ClojureVarServlet” :url-patterns “/*” :server-ns - Requires there to be fns servlet-init servlet-service servlet-destroy

manifest-str

(manifest-str manifest-map)

Given a map of manifest keys/values, Return a string of the single Manifest contents

skip-file?

(skip-file? file war-path exclusions)

string-input-stream

(string-input-stream s)

war

(war opts)(war opts war-name-str)

Create a PedestalService.war file. Optionally pass in a war file name. Various options are supported via the opt map :target-path - where the war will be saved; defaults to “.” :manifest - a map of override/additional Manifest entries; keys and values are both strings :compile-path - an optional, additional path of compiled resources to include :resource-paths - a vector of all additional sources, resources, war-resources to include :war-exclusions - a vector of regex strings; patterns of file names to exclude in the war

war-file-path

(war-file-path target-dir war-name)

write-entry

(write-entry war war-path entry)

write-war

(write-war opts war-path & postprocess-fns)