Skip to content

Commit

Permalink
Upgrade to latest MetaDataTransformer
Browse files Browse the repository at this point in the history
which no longer requires java.util.Properties
  • Loading branch information
egli committed Jun 27, 2024
1 parent 777943e commit 2f157ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
[ring/ring-core "1.12.1"]
[ring/ring-defaults "0.5.0"]
[selmer "1.12.61"]
[ch.sbs/dtbook-update-metadata "0.8"]
[ch.sbs/dtbook-update-metadata "0.9"]
[thheller/shadow-cljs "2.25.7" :scope "provided"]
[trptcolin/versioneer "0.2.0"]]

Expand Down
6 changes: 2 additions & 4 deletions src/clj/daisyproducer2/documents/update_metadata.clj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@
[old new meta-data]
(let [in (io/input-stream old)
out (io/output-stream new)
meta-data (rename-meta-data-keys meta-data)
env (doto (java.util.Properties.)
(.putAll meta-data))]
(MetaDataTransformer/transform in out env)))
meta-data (rename-meta-data-keys meta-data)]
(MetaDataTransformer/transform in out meta-data)))

0 comments on commit 2f157ab

Please sign in to comment.