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

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

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

Project.setDefaultInputStream介绍

[英]Set the default System input stream. Normally this stream is set to System.in. This inputStream is used when no task input redirection is being performed.
[中]设置默认的系统输入流。通常,该流被设置为系统。在里面当没有执行任务输入重定向时,使用此inputStream。

代码示例

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

project.setDefaultInputStream(savedIn);
  demuxInputStream = new DemuxInputStream(project);
  System.setIn(demuxInputStream);
if (currentStreamCount == 0) {
  project.setDefaultInputStream(savedProjectInputStream);
  System.setOut(savedOut);
  System.setErr(savedErr);

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

project.setDefaultInputStream(System.in);

代码示例来源: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: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

project.setDefaultInputStream(savedIn);
  System.setIn(new DemuxInputStream(project));
} finally {
  project.setDefaultInputStream(savedProjectInputStream);
  System.setIn(savedIn);
  System.setOut(savedOut);

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

project.setDefaultInputStream(savedIn);
  demuxInputStream = new DemuxInputStream(project);
  System.setIn(demuxInputStream);
if (currentStreamCount == 0) {
  project.setDefaultInputStream(savedProjectInputStream);
  System.setOut(savedOut);
  System.setErr(savedErr);

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

project.setDefaultInputStream(savedIn);
  System.setIn(new DemuxInputStream(project));
} finally {
  project.setDefaultInputStream(savedProjectInputStream);
  System.setIn(savedIn);

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

project.setDefaultInputStream(savedIn);
  System.setIn(new DemuxInputStream(project));
} finally {
  project.setDefaultInputStream(savedProjectInputStream);
  System.setIn(savedIn);

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

project.setDefaultInputStream(savedIn);
  System.setIn(new DemuxInputStream(project));
} finally {
  project.setDefaultInputStream(savedProjectInputStream);
  System.setIn(savedIn);

代码示例来源:origin: dita-ot/dita-ot

project.setDefaultInputStream(System.in);

相关文章