File tree Expand file tree Collapse file tree 4 files changed +24
-7
lines changed Expand file tree Collapse file tree 4 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 30
30
<dependency >
31
31
<groupId >com.google.javascript</groupId >
32
32
<artifactId >closure-compiler</artifactId >
33
- <version >v20151216 </version >
33
+ <version >v20160125 </version >
34
34
</dependency >
35
35
<dependency >
36
36
<groupId >org.clojure</groupId >
50
50
<dependency >
51
51
<groupId >org.clojure</groupId >
52
52
<artifactId >tools.reader</artifactId >
53
- <version >1.0.0-alpha1 </version >
53
+ <version >1.0.0-alpha3 </version >
54
54
</dependency >
55
55
</dependencies >
56
56
Original file line number Diff line number Diff line change 10
10
:test-paths [" src/test/clojure" " src/test/cljs" " src/test/self" ]
11
11
:dependencies [[org.clojure/clojure " 1.7.0" ]
12
12
[org.clojure/data.json " 0.2.6" ]
13
- [org.clojure/tools.reader " 1.0.0-alpha1 " ]
13
+ [org.clojure/tools.reader " 1.0.0-alpha3 " ]
14
14
[org.clojure/google-closure-library " 0.0-20151016-61277aea" ]
15
- [com.google.javascript/closure-compiler " v20151216 " ]
15
+ [com.google.javascript/closure-compiler " v20160125 " ]
16
16
[org.mozilla/rhino " 1.7R5" ]]
17
17
:profiles {:1.6 {:dependencies [[org.clojure/clojure " 1.6.0" ]]}
18
18
:uberjar {:aot :all :main clojure.main}}
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
CLOJURE_RELEASE=" 1.8.0"
6
- CLOSURE_RELEASE=" 20151216 "
6
+ CLOSURE_RELEASE=" 20160125 "
7
7
DJSON_RELEASE=" 0.2.6"
8
8
GCLOSURE_LIB_RELEASE=" 0.0-20151016-61277aea"
9
9
RHINO_RELEASE=" 1_7R5"
10
- TREADER_RELEASE=" 1.0.0-alpha1 "
10
+ TREADER_RELEASE=" 1.0.0-alpha3 "
11
11
12
12
# check dependencies
13
13
curl -V > /dev/null || { echo " cURL is missing, or not on your system path." ; exit 1; }
Original file line number Diff line number Diff line change 64
64
[javax.xml.bind DatatypeConverter]
65
65
[java.nio.file Path Paths Files StandardWatchEventKinds WatchKey
66
66
WatchEvent FileVisitor FileVisitResult]
67
+ [java.nio.charset Charset StandardCharsets]
67
68
[com.sun.nio.file SensitivityWatchEventModifier]
68
69
[com.google.common.base Throwables]))
69
70
169
170
:pretty-print :print-input-delimiter :pseudo-names :recompile-dependents :source-map
170
171
:source-map-inline :source-map-timestamp :static-fns :target :verbose :warnings })
171
172
173
+ (def string->charset
174
+ {" iso-8859-1" StandardCharsets/ISO_8859_1
175
+ " us-ascii" StandardCharsets/US_ASCII
176
+ " utf-16" StandardCharsets/UTF_16
177
+ " utf-16be" StandardCharsets/UTF_16BE
178
+ " utf-16le" StandardCharsets/UTF_16LE
179
+ " utf-8" StandardCharsets/UTF_8})
180
+
181
+ (defn to-charset [charset]
182
+ (cond
183
+ (instance? Charset charset) charset
184
+ (string? charset) (get string->charset (string/lower-case charset))
185
+ :else
186
+ (throw
187
+ (ex-info (str " Invalid :closure-output-charset " charset) {}))))
188
+
172
189
(defn set-options
173
190
" TODO: Add any other options that we would like to support."
174
191
[opts ^CompilerOptions compiler-options]
221
238
(setExtraAnnotationNames (map name (:closure-extra-annotations opts)))))
222
239
223
240
(. compiler-options
224
- (setOutputCharset (:closure-output-charset opts " UTF-8" )))
241
+ (setOutputCharset (to-charset ( :closure-output-charset opts " UTF-8" ) )))
225
242
226
243
compiler-options )
227
244
You can’t perform that action at this time.
0 commit comments