Skip to content

Instantly share code, notes, and snippets.

@tranchis
tranchis / pom2proj.clj
Last active February 25, 2018 06:02 — forked from thickey/pom2proj.clj
Fixed some NPE when fields are not set in pom.xml
(ns pom2proj
(:require [clojure.xml :as xml]
[clojure.zip :as zip]
[clojure.java.io :as io]
[clojure.data.zip.xml :as zx])
(:use [clojure.pprint :only [pprint]]))
(defn- text-attrs
[loc ks]
(map (fn [k]