Skip to content

Instantly share code, notes, and snippets.

@tjweir
Created December 3, 2008 21:20
Show Gist options
  • Save tjweir/31700 to your computer and use it in GitHub Desktop.
Save tjweir/31700 to your computer and use it in GitHub Desktop.
#! /bin/sh
#/usr/bin/mvn $* | awk '{ print; if($0 ~ ".*Downloading.*") system("/usr/local/bin/growlnotify -n mavenError -t Maven Downloading -m\""$0 "\"") if($0 ~ ".*ERROR.*") system("/usr/local/bin/growlnotify -n mavenError -t Maven Error -m\""$0 "\"") } END { system("/usr/local/bin/growlnotify -n mavenComplete -t Maven -m \"Build Complete\"") }'
/usr/bin/mvn $* | awk '{ print;
if($0 ~ ".*Downloading.*")
system("/usr/local/bin/growlnotify -n mavenError -t Maven Downloading -m\""$0 "\"")
if($0 ~ ".*ERROR.*") system("/usr/local/bin/growlnotify -n mavenError -t Maven Error -m\""$0 "\"") }
END {
system("/usr/local/bin/growlnotify -n mavenComplete -t Maven -m \"Build Complete\"") }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment