org.apache.tools.ant.Project.getDefaultInputStream()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.apache.tools.ant.Project.getDefaultInputStream()方法的一些代码示例,展示了Project.getDefaultInputStream()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getDefaultInputStream()方法的具体详情如下:
包路径:org.apache.tools.ant.Project
类名称:Project
方法名:getDefaultInputStream

Project.getDefaultInputStream介绍

[英]Get this project's input stream.
[中]获取此项目的输入流。

代码示例

代码示例来源:origin: apache/groovy

if (currentStreamCount == 0) {
  savedProjectInputStream = project.getDefaultInputStream();
  savedIn = System.in;
  savedErr = System.err;

代码示例来源:origin: org.apache.ant/ant

/**
 * Initialize a subproject.
 * @param subProject the subproject to initialize.
 */
public void initSubProject(final Project subProject) {
  ComponentHelper.getComponentHelper(subProject)
    .initSubProject(ComponentHelper.getComponentHelper(this));
  subProject.setDefaultInputStream(getDefaultInputStream());
  subProject.setKeepGoingMode(this.isKeepGoingMode());
  subProject.setExecutor(getExecutor().getSubProjectExecutor());
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Set up properties on the redirector that we needed to store locally.
 */
protected void setupRedirector() {
  redirector.setInput(input);
  redirector.setInputString(inputString);
  redirector.setOutput(output);
  redirector.setError(error);
  if (redirectorElement != null) {
    redirectorElement.configure(redirector);
  }
  if (!spawn && input == null && inputString == null) {
    // #24918: send standard input to the process by default.
    redirector.setInputStream(
      new KeepAliveInputStream(getProject().getDefaultInputStream()));
  }
}

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

InputStream savedProjectInputStream = project.getDefaultInputStream();
InputStream savedIn = System.in;
PrintStream savedErr = System.err;

代码示例来源:origin: org.codehaus.groovy/groovy-ant

if (currentStreamCount == 0) {
  savedProjectInputStream = project.getDefaultInputStream();
  savedIn = System.in;
  savedErr = System.err;

代码示例来源:origin: org.kohsuke.droovy/groovy

InputStream savedProjectInputStream = project.getDefaultInputStream();

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

InputStream savedProjectInputStream = project.getDefaultInputStream();

代码示例来源:origin: org.codehaus.groovy/groovy-jdk14

InputStream savedProjectInputStream = project.getDefaultInputStream();

相关文章