本文整理汇总了Java中org.gradle.language.base.sources.BaseLanguageSourceSet类的典型用法代码示例。如果您正苦于以下问题:Java BaseLanguageSourceSet类的具体用法?Java BaseLanguageSourceSet怎么用?Java BaseLanguageSourceSet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BaseLanguageSourceSet类属于org.gradle.language.base.sources包,在下文中一共展示了BaseLanguageSourceSet类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addGeneratedScala
import org.gradle.language.base.sources.BaseLanguageSourceSet; //导入依赖的package包/类
@Override
public void addGeneratedScala(LanguageSourceSet input, SourceDirectorySetFactory sourceDirectorySetFactory) {
String lssName = input.getName() + "ScalaSources";
// TODO: To get rid of this, we need a `FunctionalSourceSet` instance here, and that's surprisingly difficult to get.
ScalaLanguageSourceSet generatedScalaSources = BaseLanguageSourceSet.create(ScalaLanguageSourceSet.class, DefaultScalaLanguageSourceSet.class, getIdentifier().child(lssName), sourceDirectorySetFactory);
generatedScalaSources.builtBy();
generatedScala.put(input, generatedScalaSources);
}
示例2: addGeneratedJavaScript
import org.gradle.language.base.sources.BaseLanguageSourceSet; //导入依赖的package包/类
@Override
public void addGeneratedJavaScript(LanguageSourceSet input, SourceDirectorySetFactory sourceDirectorySetFactory) {
String lssName = input.getName() + "JavaScript";
JavaScriptSourceSet javaScript = BaseLanguageSourceSet.create(JavaScriptSourceSet.class, DefaultJavaScriptSourceSet.class, getIdentifier().child(lssName), sourceDirectorySetFactory);
javaScript.builtBy();
generatedJavaScript.put(input, javaScript);
}
示例3: registerBaseLanguageSourceSet
import org.gradle.language.base.sources.BaseLanguageSourceSet; //导入依赖的package包/类
@ComponentType
void registerBaseLanguageSourceSet(TypeBuilder<LanguageSourceSet> builder) {
builder.defaultImplementation(BaseLanguageSourceSet.class);
builder.internalView(LanguageSourceSetInternal.class);
}