clojure.data.xml
This commit is contained in:
parent
dce1029c27
commit
3ed5f69b20
4 changed files with 18 additions and 2 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
[org.clojure/core.async "0.4.500"]
|
[org.clojure/core.async "0.4.500"]
|
||||||
[org.clojure/tools.cli "0.4.2"]
|
[org.clojure/tools.cli "0.4.2"]
|
||||||
[org.clojure/data.csv "0.1.4"]
|
[org.clojure/data.csv "0.1.4"]
|
||||||
|
[org.clojure/data.xml "0.2.0-alpha6"]
|
||||||
[cheshire "5.9.0"]]
|
[cheshire "5.9.0"]]
|
||||||
:profiles {:test {:dependencies [[clj-commons/conch "0.9.2"]]}
|
:profiles {:test {:dependencies [[clj-commons/conch "0.9.2"]]}
|
||||||
:uberjar {:global-vars {*assert* false}
|
:uberjar {:global-vars {*assert* false}
|
||||||
|
|
|
||||||
|
|
@ -181,5 +181,9 @@
|
||||||
"allPublicMethods":true,
|
"allPublicMethods":true,
|
||||||
"allPublicFields": true,
|
"allPublicFields": true,
|
||||||
"allPublicConstructors": true
|
"allPublicConstructors": true
|
||||||
}
|
},
|
||||||
|
{"name":"com.sun.xml.internal.stream.XMLInputFactoryImpl",
|
||||||
|
"methods":[{"name":"<init>","parameterTypes":[] }]},
|
||||||
|
{"name":"com.sun.xml.internal.stream.XMLOutputFactoryImpl",
|
||||||
|
"methods":[{"name":"<init>","parameterTypes":[] }]}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
9
src/babashka/impl/xml.clj
Normal file
9
src/babashka/impl/xml.clj
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(ns babashka.impl.xml
|
||||||
|
{:no-doc true}
|
||||||
|
(:require [clojure.data.xml :as xml]))
|
||||||
|
|
||||||
|
(def xml-namespace
|
||||||
|
{'parse-str xml/parse-str
|
||||||
|
'element xml/element
|
||||||
|
'emit-str xml/emit-str})
|
||||||
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
[babashka.impl.clojure.stacktrace :refer [print-stack-trace]]
|
[babashka.impl.clojure.stacktrace :refer [print-stack-trace]]
|
||||||
[babashka.impl.conch :refer [conch-namespace]]
|
[babashka.impl.conch :refer [conch-namespace]]
|
||||||
[babashka.impl.csv :as csv]
|
[babashka.impl.csv :as csv]
|
||||||
|
[babashka.impl.xml :as xml]
|
||||||
[babashka.impl.pipe-signal-handler :refer [handle-pipe! pipe-signal-received?]]
|
[babashka.impl.pipe-signal-handler :refer [handle-pipe! pipe-signal-received?]]
|
||||||
[babashka.impl.repl :as repl]
|
[babashka.impl.repl :as repl]
|
||||||
[babashka.impl.socket-repl :as socket-repl]
|
[babashka.impl.socket-repl :as socket-repl]
|
||||||
|
|
@ -251,7 +252,8 @@ Everything after that is bound to *command-line-args*."))
|
||||||
'me.raynes.conch.low-level conch-namespace
|
'me.raynes.conch.low-level conch-namespace
|
||||||
'clojure.core.async async-namespace
|
'clojure.core.async async-namespace
|
||||||
'clojure.data.csv csv/csv-namespace
|
'clojure.data.csv csv/csv-namespace
|
||||||
'cheshire.core cheshire-core-namespace}
|
'cheshire.core cheshire-core-namespace
|
||||||
|
'clojure.data.xml xml/xml-namespace}
|
||||||
:bindings {'java.lang.System/exit exit ;; override exit, so we have more control
|
:bindings {'java.lang.System/exit exit ;; override exit, so we have more control
|
||||||
'System/exit exit}
|
'System/exit exit}
|
||||||
:env env
|
:env env
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue