wip
This commit is contained in:
parent
48fbd08608
commit
254aa73a48
4 changed files with 181 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -14,6 +14,7 @@ pom.xml.asc
|
|||
.clj-kondo/.cache
|
||||
!java/src/babashka/impl/LockFix.class
|
||||
!test-resources/babashka/src_for_classpath_test/foo.jar
|
||||
!test-resources/pom.xml
|
||||
.cpcache
|
||||
*reflection.json
|
||||
/tmp
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ enumerated explicitly.
|
|||
- `clojure.pprint`: `pprint` (currently backed by [fipp](https://github.com/brandonbloom/fipp)'s `fipp.edn/pprint`)
|
||||
- [`clojure.tools.cli`](https://github.com/clojure/tools.cli) aliased as `tools.cli`
|
||||
- [`clojure.data.csv`](https://github.com/clojure/data.csv) aliased as `csv`
|
||||
- [`clojure.data.xml`](https://github.com/clojure/data.xml) aliased as `xml`
|
||||
- [`cheshire.core`](https://github.com/dakrone/cheshire) aliased as `json`
|
||||
- [`cognitect.transit`](https://github.com/cognitect/transit-clj) aliased as `transit`
|
||||
- [`clj-yaml.core`](https://github.com/clj-commons/clj-yaml) alias as `yaml`
|
||||
|
|
@ -1248,7 +1249,7 @@ $ examples/which.clj rg
|
|||
### pom.xml version
|
||||
|
||||
A script to retrieve the version from a `pom.xml` file. See
|
||||
[examples/pom_version.clj](https://github.com/borkdude/babashka/blob/master/examples/pom_version.clj). Written by [@wilkerlucio](https://github.com/wilkerlucio).
|
||||
[examples/pom_version.clj](examples/pom_version.clj). Written by [@wilkerlucio](https://github.com/wilkerlucio).
|
||||
|
||||
## Thanks
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
(ns babashka.impl.xml
|
||||
{:no-doc true}
|
||||
(:require [clojure.data.xml :as xml]))
|
||||
(:require [clojure.data.xml :as xml]
|
||||
[sci.impl.namespaces :refer [copy-var]]
|
||||
[sci.impl.vars :as vars]))
|
||||
|
||||
(def xns (vars/->SciNamespace 'clojure.data.xml))
|
||||
|
||||
(def xml-namespace
|
||||
{'parse-str xml/parse-str
|
||||
'element xml/element
|
||||
'emit-str xml/emit-str})
|
||||
|
||||
{'parse-str (copy-var xml/parse-str xns)
|
||||
'element (copy-var xml/element xns)
|
||||
'emit-str (copy-var xml/emit-str xns)})
|
||||
|
|
|
|||
170
test-resources/pom.xml
Normal file
170
test-resources/pom.xml
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>borkdude</groupId>
|
||||
<artifactId>babashka</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>0.0.87-SNAPSHOT</version>
|
||||
<name>babashka</name>
|
||||
<description>babashka</description>
|
||||
<url>https://github.com/borkdude/babashka</url>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Eclipse Public License 1.0</name>
|
||||
<url>http://opensource.org/licenses/eclipse-1.0.php</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<url>https://github.com/borkdude/babashka</url>
|
||||
<connection>scm:git:git://github.com/borkdude/babashka.git</connection>
|
||||
<developerConnection>scm:git:ssh://git@github.com/borkdude/babashka.git</developerConnection>
|
||||
<tag>8072df2b97207c46340c64912597e05eed726077</tag>
|
||||
</scm>
|
||||
<build>
|
||||
<sourceDirectory>src</sourceDirectory>
|
||||
<testSourceDirectory>test</testSourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>sci/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<directory>resources</directory>
|
||||
</testResource>
|
||||
<testResource>
|
||||
<directory>sci/resources</directory>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<directory>target</directory>
|
||||
<outputDirectory>target/classes</outputDirectory>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-source</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>sci/src</source>
|
||||
<source>babashka.curl/src</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
<url>https://repo1.maven.org/maven2/</url>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>clojars</id>
|
||||
<url>https://repo.clojars.org/</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencyManagement>
|
||||
<dependencies/>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.clojure</groupId>
|
||||
<artifactId>clojure</artifactId>
|
||||
<version>1.10.2-alpha1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.clojure</groupId>
|
||||
<artifactId>tools.reader</artifactId>
|
||||
<version>1.3.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>borkdude</groupId>
|
||||
<artifactId>edamame</artifactId>
|
||||
<version>0.0.11-alpha.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>borkdude</groupId>
|
||||
<artifactId>graal.locking</artifactId>
|
||||
<version>0.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>borkdude</groupId>
|
||||
<artifactId>sci.impl.reflector</artifactId>
|
||||
<version>0.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.clojure</groupId>
|
||||
<artifactId>core.async</artifactId>
|
||||
<version>1.0.567</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.clojure</groupId>
|
||||
<artifactId>tools.cli</artifactId>
|
||||
<version>0.4.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.clojure</groupId>
|
||||
<artifactId>data.csv</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cheshire</groupId>
|
||||
<artifactId>cheshire</artifactId>
|
||||
<version>5.10.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>fipp</groupId>
|
||||
<artifactId>fipp</artifactId>
|
||||
<version>0.6.22</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>clj-commons</groupId>
|
||||
<artifactId>clj-yaml</artifactId>
|
||||
<version>0.7.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.cognitect</groupId>
|
||||
<artifactId>transit-clj</artifactId>
|
||||
<version>1.0.324</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>clj-commons</groupId>
|
||||
<artifactId>conch</artifactId>
|
||||
<version>0.9.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.clojure-goes-fast</groupId>
|
||||
<artifactId>clj-async-profiler</artifactId>
|
||||
<version>0.4.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
<!-- This file was autogenerated by Leiningen.
|
||||
Please do not edit it directly; instead edit project.clj and regenerate it.
|
||||
It should not be considered canonical data. For more information see
|
||||
https://github.com/technomancy/leiningen -->
|
||||
Loading…
Reference in a new issue