当前位置: 首页>>代码示例>>Java>>正文


Java Internal类代码示例

本文整理汇总了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));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:10,代码来源:GenerateBuildDashboard.java

示例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;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:Groovydoc.java

示例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;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:10,代码来源:Groovydoc.java

示例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());
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:14,代码来源:JacocoReport.java

示例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.");
    }

}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:19,代码来源:Sign.java

示例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());
}
 
开发者ID:gradle-clojure,项目名称:gradle-clojure,代码行数:11,代码来源:ClojureCompile.java

示例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());
}
 
开发者ID:gradle-clojure,项目名称:gradle-clojure,代码行数:9,代码来源:ClojureCompile.java

示例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;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:18,代码来源:AbstractArchiveTask.java

示例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));
    }
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:12,代码来源:Zip.java

示例10: getNamer

import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Override
@Internal
Namer<T> getNamer();
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:4,代码来源:ReportContainer.java

示例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;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:AbstractJettyRunTask.java

示例12: getNames

import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Override
@Internal
SortedSet<String> getNames();
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:4,代码来源:ReportContainer.java

示例13: getScannerListeners

import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
public List<Scanner.Listener> getScannerListeners() {
    return this.scannerListeners;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:AbstractJettyRunTask.java

示例14: getStopKey

import org.gradle.api.tasks.Internal; //导入依赖的package包/类
/**
 * Returns the key to use to stop Jetty.
 */
@Internal
public String getStopKey() {
    return stopKey;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:AbstractJettyRunTask.java

示例15: getTargetCompatibility

import org.gradle.api.tasks.Internal; //导入依赖的package包/类
@Internal
JavaVersion getTargetCompatibility();
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:3,代码来源:JavaPlatform.java


注:本文中的org.gradle.api.tasks.Internal类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。