Skip to content

Commit

Permalink
WEB-INF resources can be added via war-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
ohpauleez committed May 20, 2013
1 parent 32984db commit 202a8de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject ohpauleez/lein-pedestal "0.1.0-beta5"
(defproject ohpauleez/lein-pedestal "0.1.0-beta7"
:description "Pedestal plugin for Leiningen"
:url "https://github.com/ohpauleez/lein-pedestal"
:license {:name "Eclipse Public License"
Expand Down
8 changes: 0 additions & 8 deletions src/leiningen/pedestal/war.clj
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@
(concat [(get-in project [:pedestal :war-resources-path] "war-resources")]
(get-in project [:pedestal :war-resource-paths])))))

(defn web-inf-resources-paths [project]
(keep identity
(distinct
(concat [(get-in project [:pedestal :web-inf-resources-path] "web-inf-resources")]
(get-in project [:pedestal :web-inf-resource-paths])))))

(defn in-war-path [war-path root file]
(str war-path
(-> (.toURI (io/file root))
Expand Down Expand Up @@ -156,8 +150,6 @@
(dir-entry war-stream project "WEB-INF/classes/" path))
(doseq [path (war-resources-paths project)]
(dir-entry war-stream project "" path))
(doseq [path (web-inf-resources-paths project)]
(dir-entry war-stream project "WEB-INF/" path))
(doseq [pp-fn postprocess-fns]
(pp-fn project war-stream))
war-stream))
Expand Down

0 comments on commit 202a8de

Please sign in to comment.