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

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

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

Project.setKeepGoingMode介绍

[英]Set "keep-going" mode. In this mode Ant will try to execute as many targets as possible. All targets that do not depend on failed target(s) will be executed. If the keepGoing setter/getter methods are used in conjunction with the ant.executor.class property, they will have no effect.
[中]设置“继续”模式。在这种模式下,Ant将尝试执行尽可能多的目标。将执行不依赖失败目标的所有目标。如果keepGoing setter/getter方法与ant.executor.class属性结合使用,则它们将无效。

代码示例

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

project.setKeepGoingMode(keepGoingMode);
if (proxy) {

代码示例来源: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: dita-ot/dita-ot

project.init();
project.setBaseDir(ditaDir);
project.setKeepGoingMode(false);
for (final Map.Entry<String, String> arg : args.entrySet()) {
  project.setUserProperty(arg.getKey(), arg.getValue());

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

project.setUserProperty(MagicNames.ANT_FILE_TYPE, MagicNames.ANT_FILE_TYPE_FILE);
project.setKeepGoingMode(keepGoingMode);
if (proxy) {

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

args.entrySet().forEach(e -> project.setUserProperty(e.getKey(), e.getValue()));
project.setKeepGoingMode(false);
ProjectHelper.configureProject(project, buildFile);
final Vector<String> ts = new Vector<>();

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

project.setUserProperty("result.dir", resDir.getAbsolutePath());
project.setUserProperty("temp.dir", tempDir.getAbsolutePath());
project.setKeepGoingMode(false);
ProjectHelper.configureProject(project, buildFile);
final Vector<String> targets = new Vector<>();

相关文章