Skip to content

Instantly share code, notes, and snippets.

@tomjack
Created August 24, 2010 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomjack/fc267f2b16d88bff7acd to your computer and use it in GitHub Desktop.
Save tomjack/fc267f2b16d88bff7acd to your computer and use it in GitHub Desktop.
(defn read-components [zipfile]
(when-let [entry (.getEntry zipfile "META-INF/plexus/components.xml")]
(->> (xml-zip (xml/parse (.getInputStream zipfile entry)))
children
(filter #(= (:tag %) :components))
first
:content)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment