Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Growl for Java
Java Groovy C
Branch: master
Failed to load latest commit information.
src Skip native muck test if not on a mac
README.md Updated readme
pom.xml

README.md

Description

Support for Growl Notifications.

Uses HawtJNI to generate a native library to access Growl.

Updated to support Growling from AppleScript if the native library is not installed, else defaulting to a version that simply swallows notifications (for platforms w/o Growl support).

License

Apache 2.0

Features

  • Native Growl support using HawtJNI
  • AppleScript Growl when JNA is not present
  • Fallback to null implementation on unsupported platforms

Example Usage

import org.sonatype.grrrowl.Growler;
...
Growler growler = new Growler("My Application")
    .add("Notification1", "Notification2")
    .enableAll()
....
growler.growl("Notification1", "Title for Notification1", "Description for Notification1");

or using enums:

import org.sonatype.grrrowl.Growler;

enum Notifications {
    Notification1,
    Notification2 
}
...
Growler growler = new Growler("My Application")
    .add(Notifications.class)
    .enableAll();
....
growler.growl(Notifications.Notification1, "Title for Notification1", "Description for Notification1");

Building

Requirements

Check-out and build:

git clone git://github.com/jdillon/grrrowl.git
cd grrrowl
mvn install
Something went wrong with that request. Please try again.