Skip to content

Commit

Permalink
keep reflection and use reflection config instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrogradeorbit committed Dec 4, 2019
1 parent 77102d0 commit 702d3cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions graal-configs/reflect-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"allDeclaredMethods": true,
"allPublicMethods": true
},
{
"name":"java.io.BufferedWriter",
"allDeclaredMethods": true,
"allPublicMethods": true
},
{
"name":"java.io.OutputStreamWriter",
"allDeclaredMethods": true,
Expand Down
7 changes: 3 additions & 4 deletions src/bootleg/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
[clojure.tools.cli :refer [parse-opts]]
[clojure.string :as string]
[clojure.java.io :as io])
(:import [java.io BufferedWriter])
(:gen-class))

(def version (utils/embed ".meta/VERSION"))
Expand Down Expand Up @@ -44,11 +43,11 @@
(try
(if (:data options)
(-> result (utils/pprint {:writer out}))
(->> result utils/as-html (.write ^BufferedWriter out)))
(->> result utils/as-html (.write out)))
(finally
(if (:output options)
(.close ^BufferedWriter out)
(.flush ^BufferedWriter out))))))
(.close out)
(.flush out))))))

(defn -main
"main entry point for site generation"
Expand Down

0 comments on commit 702d3cb

Please sign in to comment.