mystic coders

Using growl with ant for build notifications

25 March, 2006 (18:20) | Java, Apple

Something that just struck me as handy, was Growl notifications for certain steps in the ant build process. If you’re doing something else, its always nice to see “Build completed”. I could go into a long process on how to create an ant plugin, integrate it with Growls’ Java bindings, and have a very tightly integrated plugin. But I won’t. Just install growlnotify from the Growl dmg, and use ant’s exec command with “Mac OS X” as an attribute, so the Windows folks won’t get unhappy error messages.

Here’s the little snippet of ant code:

<exec executable="/usr/local/bin/growlnotify" os="Mac OS X" logError="true">
<arg line="-m 'Build has been completed'"/>
</exec>

There seems to be a similar framework out there taking its inspiration from Growl, called Snarl.

Write a comment





About mystic

Mystic is located in Southern California, we are a dedicated team of magic makers for your organizations needs. We can take your needs and turn them into the solution that fits perfectly for your company.
Learn More

 

Categories

Archive