jp.tomorrowkey.gradle.notifier.Commander.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of notifier-plugin Show documentation
Show all versions of notifier-plugin Show documentation
Ring sound when last task is finished
package jp.tomorrowkey.gradle.notifier
import org.gradle.api.logging.Logger
public class Commander {
private Logger logger;
public Commander(Logger logger) {
this.logger = logger;
}
public void execute(String... commands) {
if(commands == null) {
throw new IllegalArgumentException("commands must not be null");
}
logger.info("commands")
commands.each() { command ->
logger.info(" command=" + command)
}
commands.execute()
}
}