org.apache.tools.ant.taskdefs.Jar.cleanUp()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(133)

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

Jar.cleanUp介绍

[英]Make sure we don't think we already have a MANIFEST next time this task gets executed.
[中]确保下次执行此任务时,我们不认为已经有清单。

代码示例

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

/**
   * Make sure we don't think we already have a application.xml next
   * time this task gets executed.
   */
  @Override
  protected void cleanUp() {
    descriptorAdded = false;
    super.cleanUp();
  }
}

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

/**
   * Make sure we don't think we already have a web.xml next time this task
   * gets executed.
   */
  @Override
  protected void cleanUp() {
    if (addedWebXmlFile == null
      && deploymentDescriptor == null
      && needxmlfile
      && !isInUpdateMode()
      && hasUpdatedFile()) {
      throw new BuildException(
        "No WEB-INF/web.xml file was added.\nIf this is your intent, set needxmlfile='false' ");
    }
    addedWebXmlFile = null;
    super.cleanUp();
  }
}

代码示例来源:origin: org.sonatype.plugins/jarjar-maven-plugin

protected void cleanUp() {
  super.cleanUp();
  cleanHelper();
}

相关文章