gpt4 book ai didi

org.apache.tools.ant.types.ZipFileSet.setFile()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 22:46:49 26 4
gpt4 key购买 nike

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

ZipFileSet.setFile介绍

暂无

代码示例

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

/**
 * File to incorporate as application.xml.
 * @param descr the descriptor file
 */
public void setAppxml(File descr) {
  deploymentDescriptor = descr;
  if (!deploymentDescriptor.exists()) {
    throw new BuildException(
      "Deployment descriptor: %s does not exist.",
      deploymentDescriptor);
  }
  // Create a ZipFileSet for this file, and pass it up.
  ZipFileSet fs = new ZipFileSet();
  fs.setFile(deploymentDescriptor);
  fs.setFullpath(XML_DESCRIPTOR_PATH);
  super.addFileset(fs);
}

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

/**
 * set the deployment descriptor to use (WEB-INF/web.xml);
 * required unless <tt>update=true</tt>
 * @param descr the deployment descriptor file
 */
public void setWebxml(File descr) {
  deploymentDescriptor = descr;
  if (!deploymentDescriptor.exists()) {
    throw new BuildException("Deployment descriptor:  does not exist.",
      deploymentDescriptor);
  }
  // Create a ZipFileSet for this file, and pass it up.
  ZipFileSet fs = new ZipFileSet();
  fs.setFile(deploymentDescriptor);
  fs.setFullpath(XML_DESCRIPTOR_PATH);
  super.addFileset(fs);
}

代码示例来源:origin: org.mobicents.servers.jainslee.core/ant-tasks

private void processDescriptor(File xmlDtor, String xmlDtorName) {
  if (!xmlDtor.exists())
    throw new BuildException("Deployment descriptor: " + xmlDtor + " does not exist.");
  // Add a new fileset for the DD.
  ZipFileSet fs = new ZipFileSet();
  fs.setFile(xmlDtor);
  fs.setFullpath("META-INF/" + xmlDtorName);
  super.addFileset(fs);
}

代码示例来源:origin: org.mobicents.servers.jainslee.core/ant-tasks

private void setServicexml(File [] servicexml) {
  this.servicexml = servicexml;
for (int i = 0; i < servicexml.length; i++) {
  if (!servicexml[i].exists()) {
  throw new BuildException("Service deployment descriptor: "
         + servicexml[i]
         + " does not exist.");
  }
}
for (int i = 0; i < servicexml.length; i++) {
  ZipFileSet fs = new ZipFileSet();
  fs.setFile(servicexml[i]);
  fs.setFullpath(servicexml[i].getName());
  super.addFileset(fs);
}
  // look for oc-service.xml extension dd
  if (extXmlStr != null) {
    File extXml = (metainfbase == null) ? new File(extXmlStr) : new File(metainfbase, extXmlStr);
  if (!extXml.exists()) {
  throw new BuildException("Service extension deployment descriptor: "
         + extXml
         + " does not exist.");
  }
    ZipFileSet fs = new ZipFileSet();
    fs.setFile(extXml);
    fs.setFullpath("META-INF/oc-service.xml");
    super.addFileset(fs);
  }
}

代码示例来源:origin: org.mobicents.servers.jainslee.core/ant-tasks

fs.setFile(componentFile);
  fs.setFullpath(componentFile.getName());
  super.addFileset(fs);
fs.setFile(deployableunitxml);
fs.setFullpath("META-INF/deployable-unit.xml");
super.addFileset(fs);

代码示例来源:origin: jenkinsci/maven-hpi-plugin

z.setFile(hpi.getFile());
z.setFullpath("/WEB-INF/plugins/"+hpi.getArtifactId()+".hpi");
rezip.addZipfileset(z);

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