make-manifest

leiningen.jar

  • (make-manifest project)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source leiningen/jar.clj:12 top

(defn make-manifest [project]
  (Manifest.
   (ByteArrayInputStream.
    (to-byte-array
     (str (join "\n"
                ["Manifest-Version: 1.0" ; DO NOT REMOVE!
                 "Created-By: Leiningen"
                 (str "Built-By: " (System/getProperty "user.name"))
                 (str "Build-Jdk: " (System/getProperty "java.version"))
                 (when-let [main (:main project)]
                   (str "Main-Class: " (.replaceAll (str main) "-" "_")))])
          "\n")))))
Vars in leiningen.jar/make-manifest: defn str
Used in 0 other vars

Comments top

No comments for make-manifest. Log in to add a comment.