Created
February 12, 2012 21:55
-
-
Save shyiko/1811037 to your computer and use it in GitHub Desktop.
Maven powered with Ubuntu Notify OSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mvn $* | |
if [ $? -gt 0 ] | |
then | |
notify-send -i /usr/share/icons/Humanity/status/64/dialog-warning.svg "Maven" "Build failed." | |
else | |
notify-send -i /usr/share/icons/Humanity/actions/64/gtk-info.svg "Maven" "Build succeeded." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download and add it to the PATH.
Use mvnfy instead of mvn when you want notification of build completion.
Example : mvnfy clean package
Result : http://i42.tinypic.com/30hl8o0.png