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

cc.catalysts.gradle.plugins.gwt.GwtExtension.groovy Maven / Gradle / Ivy

The newest version!
package cc.catalysts.gradle.plugins.gwt

import org.gradle.api.NamedDomainObjectContainer

/**
 * @author Catalysts GmbH, www.catalysts.cc
 */
public class GwtExtension {

    final private NamedDomainObjectContainer modules;
    private String style
    private String workers
    private String warFolder

    public GwtExtension(NamedDomainObjectContainer modules) {
        this.modules = modules
        style = 'OBF'
        workers = '1'
        warFolder = 'src/main/webapp'
        codeSrvStartupUrl = 'http://localhost:8888/'
    }

    public modules(Closure closure) {
        modules.configure(closure)
    }

    public style(style) {
        this.style = style
    }

    private String codeSrvStartupUrl

    public codeSrvStartupUrl(codeSrvStartupUrl) {
        this.codeSrvStartupUrl = codeSrvStartupUrl
    }

    public build(Closure closure) {
        closure(this)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy