All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.tomorrowkey.gradle.notifier.BeepNotifier.groovy Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package jp.tomorrowkey.gradle.notifier

import java.awt.*

class BeepNotifier implements Notifier {

    def count;

    public BeepNotifier(count = 3) {
        this.count = count;
    }

    @Override
    void performNotify(Object task, Object state) {
        def toolkit = Toolkit.getDefaultToolkit();
        count.times {
            toolkit.beep()
            sleep(100)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy