本文整理汇总了Java中org.gradle.api.tasks.Internal类的典型用法代码示例。如果您正苦于以下问题:Java Internal类的具体用法?Java Internal怎么用?Java Internal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Internal类属于org.gradle.api.tasks包,在下文中一共展示了Internal类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEnabledInputReports
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
private Set<Report> getEnabledInputReports() {
Set<NamedDomainObjectSet<? extends Report>> enabledReportSets = CollectionUtils.collect(aggregated, new Transformer<NamedDomainObjectSet<? extends Report>, Reporting<? extends ReportContainer<?>>>() {
public NamedDomainObjectSet<? extends Report> transform(Reporting<? extends ReportContainer<?>> reporting) {
return reporting.getReports().getEnabled();
}
});
return new LinkedHashSet<Report>(CollectionUtils.flattenCollections(Report.class, enabledReportSets));
}
示例2: getPathToOverview
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Nullable @Internal
private String getPathToOverview() {
TextResource overview = getOverviewText();
if (overview!=null) {
return overview.asFile().getAbsolutePath();
}
return null;
}
示例3: getAntGroovydoc
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
public AntGroovydoc getAntGroovydoc() {
if (antGroovydoc == null) {
IsolatedAntBuilder antBuilder = getServices().get(IsolatedAntBuilder.class);
ClassPathRegistry classPathRegistry = getServices().get(ClassPathRegistry.class);
antGroovydoc = new AntGroovydoc(antBuilder, classPathRegistry);
}
return antGroovydoc;
}
示例4: getAllClassDirs
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
/**
* Gets the class directories that coverage will be reported for. All classes in these directories will be included in the report.
*
* @return class dirs to report coverage of
*/
@Internal
public FileCollection getAllClassDirs() {
FileCollection additionalDirs = getAdditionalClassDirs();
if (additionalDirs == null) {
return classDirectories;
}
return classDirectories.plus(getAdditionalClassDirs());
}
示例5: getSingleSignature
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
/**
* Returns the single signature generated by this task.
*
* @return The signature.
* @throws IllegalStateException if there is not exactly one signature.
*/
@Internal
public Signature getSingleSignature() {
final DomainObjectSet<Signature> signatureSet = getSignatures();
if (signatureSet.size() == 0) {
throw new IllegalStateException("Expected %s to contain exactly one signature, however, it contains no signatures.");
} else if (signatureSet.size() == 1) {
return signatureSet.iterator().next();
} else {
throw new IllegalStateException("Expected %s to contain exactly one signature, however, it contains no " + String.valueOf(signatureSet.size()) + " signatures.");
}
}
示例6: getSourceRoots
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
private Set<String> getSourceRoots() {
return getSourceRootsFiles().stream().map(it -> {
try {
return it.getCanonicalPath();
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}).collect(Collectors.toSet());
}
示例7: getSourceRootsFiles
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
private List<File> getSourceRootsFiles() {
// accessing the List<Object> field not the FileTree from getSource
return source.stream()
.filter(it -> it instanceof SourceDirectorySet)
.flatMap(it -> ((SourceDirectorySet) it).getSrcDirs().stream())
.collect(Collectors.toList());
}
示例8: getArchiveName
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
/**
* Returns the archive name. If the name has not been explicitly set, the pattern for the name is:
* <code>[baseName]-[appendix]-[version]-[classifier].[extension]</code>
*
* @return the archive name.
*/
@Internal("Represented as part of archivePath")
public String getArchiveName() {
if (customName != null) {
return customName;
}
String name = GUtil.elvis(getBaseName(), "") + maybe(getBaseName(), getAppendix());
name += maybe(name, getVersion());
name += maybe(name, getClassifier());
name += GUtil.isTrue(getExtension()) ? "." + getExtension() : "";
return name;
}
示例9: getCompressor
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
protected ZipCompressor getCompressor() {
switch (entryCompression) {
case DEFLATED:
return new DefaultZipCompressor(allowZip64, ZipOutputStream.DEFLATED);
case STORED:
return new DefaultZipCompressor(allowZip64, ZipOutputStream.STORED);
default:
throw new IllegalArgumentException(String.format("Unknown Compression type %s", entryCompression));
}
}
示例10: getNamer
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Override
@Internal
Namer<T> getNamer();
示例11: getHttpPort
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
/**
* Returns the TCP port for Jetty to listen on for incoming HTTP requests.
*/
@Internal
public Integer getHttpPort() {
return httpPort;
}
示例12: getNames
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Override
@Internal
SortedSet<String> getNames();
示例13: getScannerListeners
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
public List<Scanner.Listener> getScannerListeners() {
return this.scannerListeners;
}
示例14: getStopKey
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
/**
* Returns the key to use to stop Jetty.
*/
@Internal
public String getStopKey() {
return stopKey;
}
示例15: getTargetCompatibility
import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
JavaVersion getTargetCompatibility();