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;
import org.gradle.api.internal.file.FileResolver;
import org.gradle.internal.reflect.Instantiator;
public class DefaultJavaScriptSourceSetContainer extends AbstractNamedDomainObjectContainer implements JavaScriptSourceSetContainer {
private final Project project;
private final Instantiator instantiator;
private final FileResolver fileResolver;
public DefaultJavaScriptSourceSetContainer(Project project, Instantiator instantiator, FileResolver fileResolver) {
super(JavaScriptSourceSet.class, instantiator);
this.project = project;
this.instantiator = instantiator;
this.fileResolver = fileResolver;
}
@Override
protected JavaScriptSourceSet doCreate(String name) {
return instantiator.newInstance(DefaultJavaScriptSourceSet.class, name, project, instantiator, fileResolver);
}
}