diff --git a/.gitignore b/.gitignore index 95fb6e5a..60946993 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ junit.xml /*.docx .DS_Store .lsp/ -*.jfr \ No newline at end of file +*.jfr +.clj-kondo/ \ No newline at end of file diff --git a/src/stencil/process.clj b/src/stencil/process.clj index 7ffac84c..fb8617bf 100644 --- a/src/stencil/process.clj +++ b/src/stencil/process.clj @@ -6,7 +6,8 @@ [io.github.erdos.stencil.impl FileHelper ZipHelper]) (:require [clojure.java.io :as io] [stencil.log :as log] - [stencil.model :as model])) + [stencil.model :as model] + [stencil.model.common :refer [unix-path]])) (set! *warn-on-reflection* true) @@ -57,7 +58,7 @@ (io! (with-open [zipstream (new ZipOutputStream outstream)] (doseq [[k writer] writers-map - :let [rel-path (FileHelper/toUnixSeparatedString (.toPath (io/file k))) + :let [rel-path (unix-path (io/file k)) ze (new ZipEntry rel-path)]] (assert (not (.contains rel-path "../"))) (log/trace "ZIP: writing {}" rel-path)