Java 类org.gradle.api.tasks.Internal 实例源码

项目:Reer    文件:GenerateBuildDashboard.java   
@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));
}
项目:Reer    文件:Groovydoc.java   
@Nullable @Internal
private String getPathToOverview() {
    TextResource overview = getOverviewText();
    if (overview!=null) {
        return overview.asFile().getAbsolutePath();
    }
    return null;
}
项目:Reer    文件:Groovydoc.java   
@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;
}
项目:Reer    文件:JacocoReport.java   
/**
 * 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());
}
项目:Reer    文件:Sign.java   
/**
 * 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.");
    }

}
项目:gradle-clojure    文件:ClojureCompile.java   
@Internal
private Set<String> getSourceRoots() {
  return getSourceRootsFiles().stream().map(it -> {
    try {
      return it.getCanonicalPath();
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    }
  }).collect(Collectors.toSet());
}
项目:gradle-clojure    文件:ClojureCompile.java   
@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());
}
项目:Reer    文件:AbstractArchiveTask.java   
/**
 * 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;
}
项目:Reer    文件:Zip.java   
@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));
    }
}
项目:Reer    文件:ReportContainer.java   
@Override
@Internal
Namer<T> getNamer();
项目:Reer    文件:AbstractJettyRunTask.java   
/**
 * Returns the TCP port for Jetty to listen on for incoming HTTP requests.
 */
@Internal
public Integer getHttpPort() {
    return httpPort;
}
项目:Reer    文件:ReportContainer.java   
@Override
@Internal
SortedSet<String> getNames();
项目:Reer    文件:AbstractJettyRunTask.java   
@Internal
public List<Scanner.Listener> getScannerListeners() {
    return this.scannerListeners;
}
项目:Reer    文件:AbstractJettyRunTask.java   
/**
 * Returns the key to use to stop Jetty.
 */
@Internal
public String getStopKey() {
    return stopKey;
}
项目:Reer    文件:JavaPlatform.java   
@Internal
JavaVersion getTargetCompatibility();
项目:Reer    文件:AbstractJettyRunTask.java   
@Internal
public JettyPluginServer getServer() {
    return this.server;
}
项目:Reer    文件:WindowsResourceCompile.java   
/**
 * The tool chain used for compilation.
 */
@Internal
public NativeToolChain getToolChain() {
    return toolChain;
}
项目:Reer    文件:TwirlCompile.java   
@Internal
private Compiler<TwirlCompileSpec> getCompiler() {
    ToolProvider toolProvider = ((PlayToolChainInternal) getToolChain()).select(platform);
    return toolProvider.newCompiler(TwirlCompileSpec.class);
}
项目:Reer    文件:JavaScriptMinify.java   
@Internal
private Compiler<JavaScriptCompileSpec> getCompiler() {
    ToolProvider select = ((PlayToolChainInternal) getToolChain()).select(playPlatform);
    return select.newCompiler(JavaScriptCompileSpec.class);
}
项目:Reer    文件:JettyRun.java   
@Internal
public Set<File> getExtraScanTargets() {
    return extraScanTargets;
}
项目:Reer    文件:FindBugs.java   
/**
 * The filename of a filter specifying which bugs are reported.
 */
@Internal
public File getIncludeFilter() {
    TextResource config = getIncludeFilterConfig();
    return config == null ? null : config.asFile();
}
项目:Reer    文件:FindBugs.java   
/**
 * The filename of a filter specifying bugs to exclude from being reported.
 */
@Internal
public File getExcludeFilter() {
    TextResource config = getExcludeFilterConfig();
    return config == null ? null : config.asFile();
}
项目:Reer    文件:AbstractJettyRunTask.java   
/**
 * Specifies whether the Jetty server should run in the background. When {@code true}, this task completes as soon as the server has started. When {@code false}, this task blocks until the Jetty
 * server is stopped.
 */
@Internal
public boolean isDaemon() {
    return daemon;
}
项目:Reer    文件:FindBugsReportsInternal.java   
@Internal
SingleFileReport getFirstEnabled();
项目:Reer    文件:CreateStartScripts.java   
/**
 * Returns the full path to the Windows script. The target directory is represented by the output directory, the file name is the application name plus the file extension .bat.
 */
@Internal
public File getWindowsScript() {
    return new File(getOutputDir(), getApplicationName() + ".bat");
}
项目:Reer    文件:Assemble.java   
/**
 * The tool chain being used to build.
 */
@Internal
public NativeToolChain getToolChain() {
    return toolChain;
}
项目:Reer    文件:JettyRun.java   
@Internal
public List<File> getClassPathFiles() {
    return classPathFiles;
}
项目:Reer    文件:GenerateProjectFileTask.java   
@Internal
public Transformer<String, File> getTransformer() {
    return RelativeFileNameTransformer.forFile(getProject().getRootDir(), visualStudioProject.getProjectFile().getLocation());
}
项目:Reer    文件:GenerateProjectFileTask.java   
@Internal
public VisualStudioProject getVisualStudioProject() {
    return visualStudioProject;
}
项目:Reer    文件:AbstractJettyRunTask.java   
/**
 * Returns the context path to use to deploy the web application.
 */
@Internal
public String getContextPath() {
    return contextPath;
}
项目:Reer    文件:GenerateFiltersFileTask.java   
@Internal
public VisualStudioProject getVisualStudioProject() {
    return visualStudioProject;
}
项目:Reer    文件:AbstractPublishToMaven.java   
@Internal
protected MavenPublicationInternal getPublicationInternal() {
    return toPublicationInternal(getPublication());
}
项目:Reer    文件:AbstractJettyRunTask.java   
@Internal
public Connector[] getConnectors() {
    return connectors;
}
项目:Reer    文件:AbstractJettyRunTask.java   
@Internal
public JettyPluginWebAppContext getWebAppConfig() {
    return webAppConfig;
}
项目:Reer    文件:RhinoShellExec.java   
@Internal("Represented as part of args")
public List<String> getScriptArgs() {
    return CollectionUtils.stringize(scriptArgs);
}
项目:Reer    文件:GroovyCompile.java   
@Internal
public Compiler<GroovyJavaJointCompileSpec> getCompiler() {
    return getCompiler(createSpec());
}
项目:Reer    文件:GroovyCompileOptions.java   
/**
 * Returns the directory where Java stubs for Groovy classes will be stored during Java/Groovy joint
 * compilation. Defaults to {@code null}, in which case a temporary directory will be used.
 */
@Internal
// TOOD:LPTR Should be just a relative path
public File getStubDir() {
    return stubDir;
}
项目:Reer    文件:Test.java   
@Internal
ListenerBroadcast<TestListener> getTestListenerBroadcaster() {
    return testListenerBroadcaster;
}
项目:Reer    文件:AbstractArchiveTask.java   
/**
 * Returns the extension part of the archive name.
 */
@Internal("Represented as part of archiveName")
public String getExtension() {
    return extension;
}
项目:Reer    文件:Test.java   
@Internal
public TestFramework getTestFramework() {
    return testFramework(null);
}