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

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

本文整理了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

  1. /**
  2. * Make sure we don't think we already have a application.xml next
  3. * time this task gets executed.
  4. */
  5. @Override
  6. protected void cleanUp() {
  7. descriptorAdded = false;
  8. super.cleanUp();
  9. }
  10. }

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

  1. /**
  2. * Make sure we don't think we already have a web.xml next time this task
  3. * gets executed.
  4. */
  5. @Override
  6. protected void cleanUp() {
  7. if (addedWebXmlFile == null
  8. && deploymentDescriptor == null
  9. && needxmlfile
  10. && !isInUpdateMode()
  11. && hasUpdatedFile()) {
  12. throw new BuildException(
  13. "No WEB-INF/web.xml file was added.\nIf this is your intent, set needxmlfile='false' ");
  14. }
  15. addedWebXmlFile = null;
  16. super.cleanUp();
  17. }
  18. }

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

  1. protected void cleanUp() {
  2. super.cleanUp();
  3. cleanHelper();
  4. }

相关文章