gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 05:34:49 29 4
gpt4 key购买 nike

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

Zip.setUpdate介绍

[英]If true, updates an existing file, otherwise overwrite any existing one; optional defaults to false.
[中]如果为true,则更新现有文件,否则覆盖任何现有文件;可选默认为false。

代码示例

代码示例来源:origin: org.ow2.jonas.autostart/builder

zip.setUpdate(true);
zip.setProject(p);
try {
  zip.setUpdate(true);
  zip.setProject(p);
  try {

代码示例来源:origin: org.ow2.jonas.autostart/builder

/**
 * Zip jonas-starter folder to jonas-starter.jar.
 */
public void zipStarter() {
  Project p = new Project();
  Zip zip = new Zip();
  zip.setBasedir(getStarterDefaultLocation());
  zip.setDestFile(new File(this.starterJarFileLocation.getAbsolutePath(), this.starterJarFileName));
  zip.setUpdate(true);
  zip.setProject(p);
  try {
    zip.execute();
    setStarterDefaultLocation(new File(this.starterJarFileLocation.getAbsolutePath(), this.starterJarFileName));
    renameStarterJarFile();
    this.output.write(this.starterJarFileName + " successfully created !");
    this.output.write("Location: " + this.starterDefaultLocation);
  } catch (Exception e) {
    this.output.write("Error in packaging jonas-starter : " + e.getMessage());
  }
}

代码示例来源:origin: org.ow2.jonas.autostart/builder

zip.setBasedir(getJonasRoot());
zip.setDestFile(new File(this.workdirectory, JONAS_ROOT_ZIP_FILE));
zip.setUpdate(true);
zip.setProject(project);
try {
  zip.setBasedir(getJonasBase());
  zip.setDestFile(new File(this.workdirectory, JONAS_BASE_ZIP_FILE));
  zip.setUpdate(true);
  zip.setProject(project);
  try {

代码示例来源:origin: stackoverflow.com

zipFileSet.setDir(new File(libsToAddDir));
task.addFileset(zipFileSet);
task.setUpdate(true);

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com