IntroductionThis package contains a custom BuildListener and Task that display messages via Growl/JGrowl. PrerequisitesDetailsSetting things up in Mac OS with Growl- Make sure the following settings are enabled in Growl's Network preferences:
- "Listen for incoming notifications"
- "Allow remote application registration"
- Put growllistener.jar into Ant's lib directory
- Put binaryblizzard.jar (From JGrowl) into Ant's lib directory
Setting things up in Linux with JGrowl- Startup JGrowl
- Put growllistener.jar into Ant's lib directory
- Put binaryblizzard.jar (From JGrowl) into Ant's lib directory
Using the Growl BuildListener- To make ant use the new listener, invoke ant like this:
- ant -listener net.slimeslurp.growl.GrowlListener
- You could also add "-listener net.slimeslurp.growl.GrowlListener" to your ANT_OPTS environment variable
- If you set a property called gbl.endsticky in your build file, the Build Finished notification will be "sticky"
Using the GrowlEcho task- Add a taskdef to your build like this:
<taskdef name="growl" classname="net.slimeslurp.growl.GrowlEcho"/>
- Use the task like this:
<growl message="The message"/>
- GrowlEcho now support accepts a sticky attribute which, when set, will cause the notification to be "sticky"
|
I didn't see a way to use the listener with Gant. Have you gotten that working?
The JGrowl link above is broken, does anybody know where else it can be acquired?
"-listener net.slimeslurp.growl.GrowlListener?" must be added to ANT_ARGS, and not to ANT_OPTS: http://ant.apache.org/manual/running.html#envvars