io.pedestal.service-tools.war
deprecated in 0.7.0
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
string-input-stream
(string-input-stream s)
Returns a ByteArrayInputStream for the given String.
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