Skip to content

Instantly share code, notes, and snippets.

@tobias
Created October 10, 2013 20:28
Show Gist options
  • Save tobias/6925060 to your computer and use it in GitHub Desktop.
Save tobias/6925060 to your computer and use it in GitHub Desktop.
(defn make-isolated-conf []
(let [conf-dir (io/file *home* "standalone/configuration")]
(spit (io/file conf-dir "standalone-isolated-test.xml")
(str/replace
(slurp (io/file conf-dir "standalone.xml"))
#"(?s)<subsystem xmlns=\"urn:jboss:domain:deployment-scanner:1\.1\">.*?</subsystem>"
""))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment