com.eriwen.gradle.js.source.internal.DefaultJavaScriptSourceSetContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-js-plugin Show documentation
Show all versions of gradle-js-plugin Show documentation
A Gradle plugin for working with JS.
package com.eriwen.gradle.js.source.internal;
import com.eriwen.gradle.js.source.JavaScriptSourceSet;
import com.eriwen.gradle.js.source.JavaScriptSourceSetContainer;
import org.gradle.api.Project;
import org.gradle.api.internal.AbstractNamedDomainObjectContainer;
public class DefaultJavaScriptSourceSetContainer extends AbstractNamedDomainObjectContainer implements JavaScriptSourceSetContainer {
private final Project project;
public DefaultJavaScriptSourceSetContainer(Project project) {
super(JavaScriptSourceSet.class, InternalGradle.toInstantiator(project));
this.project = project;
}
@Override
protected JavaScriptSourceSet doCreate(String name) {
return getInstantiator().newInstance(DefaultJavaScriptSourceSet.class, name, project);
}
}