Skip to content

Instantly share code, notes, and snippets.

@empiricalthought
Created July 27, 2012 14:53
Show Gist options
  • Save empiricalthought/3188486 to your computer and use it in GitHub Desktop.
Save empiricalthought/3188486 to your computer and use it in GitHub Desktop.
(defun huwigs-build-ipregistry (clean)
"Build the IP Registry UI project.
Argument CLEAN if prefix arg is given, clean and then build."
(interactive "P")
(let ((default-directory *ipregistry-project-directory*)
(command (if clean
"/home/huwigs/bin/mvn -B clean pmd:check tomcat6:run"
"/home/huwigs/bin/mvn -DskipTests=true tomcat6:run"))
(tags-revert-without-query t))
(setenv "JAVA_HOME" *java-home*)
(shell-command "/usr/bin/etags -R")
(visit-tags-table *ipregistry-project-directory*)
(setq compilation-parse-errors-filename-function 'huwigs-compilation-parse-maven-filenames-function)
(compile command)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment