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

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

The newest version!
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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy