gpt4 book ai didi

org.apache.tools.ant.types.ZipScanner类的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 02:37:31 24 4
gpt4 key购买 nike

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

ZipScanner介绍

[英]Scans zip archives for resources.
[中]扫描zip档案中的资源。

代码示例

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

/**
 * @since Ant 1.5.2
 */
private synchronized ZipScanner getZipScanner() {
  if (zs == null) {
    zs = new ZipScanner();
    zs.setEncoding(encoding);
    zs.setSrc(zipFile);
  }
  return zs;
}

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

/**
 * Return a new archive scanner based on this one.
 * @return a new ZipScanner with the same encoding as this one.
 */
@Override
protected ArchiveScanner newArchiveScanner() {
  ZipScanner zs = new ZipScanner();
  zs.setEncoding(getEncoding());
  return zs;
}

代码示例来源:origin: de.smartics.exceptions/smart-exceptions-report

@Override
public DirectoryScanner createScanner(final File root)
{
 final ZipScanner scanner = new ZipScanner();
 scanner.setSrc(root);
 configureAndScan(scanner);
 return scanner;
}

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

String name = entry.getName();
if (entry.isDirectory()) {
  name = trimSeparator(name);
  dirEntries.put(name, r);
  if (match(name)) {
    matchDirEntries.put(name, r);
  if (match(name)) {
    matchFileEntries.put(name, r);

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

filesets[i].getDirectoryScanner(getProject());
if (rs instanceof ZipScanner) {
  ((ZipScanner) rs).setEncoding(encoding);

代码示例来源:origin: de.smartics.util/project-analysis-javadoc

/**
 * {@inheritDoc}
 * 
 * @see de.smartics.analysis.javadoc.scan.layout.ScannerFactory#createScanner(java.lang.String)
 */
// @Override
public DirectoryScanner createScanner(final String root)
{
 final ZipScanner scanner = new ZipScanner();
 scanner.setSrc(new File(root));
 configureAndScan(scanner);
 return scanner;
}

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

((ZipScanner) ds).setEncoding(encoding);

代码示例来源:origin: org.paxml/PaxmlCore

private String[] getFiles(File container) {
  DirectoryScanner ds;
  if (container.isDirectory()) {
    ds = new DirectoryScanner();
    if (log.isDebugEnabled()) {
      log.debug("Scanning directory for sql files: " + container.getAbsolutePath());
    }
  } else {
    ds = new ZipScanner();
    if (log.isDebugEnabled()) {
      log.debug("Scanning zip file for sql files: " + container.getAbsolutePath());
    }
  }
  ds.setIncludes(getArray(include));
  ds.setExcludes(getArray(exclude));
  if (ds instanceof ZipScanner) {
    ((ZipScanner) ds).setSrc(container);
  } else {
    ds.setBasedir(container);
  }
  ds.setCaseSensitive(true);
  ds.scan();
  String[] files = ds.getIncludedFiles();
  return files;
}

代码示例来源:origin: org.paxml/paxml-core

private String[] getFiles(File container) {
  DirectoryScanner ds;
  if (container.isDirectory()) {
    ds = new DirectoryScanner();
    if (log.isDebugEnabled()) {
      log.debug("Scanning directory for sql files: " + container.getAbsolutePath());
    }
  } else {
    ds = new ZipScanner();
    if (log.isDebugEnabled()) {
      log.debug("Scanning zip file for sql files: " + container.getAbsolutePath());
    }
  }
  ds.setIncludes(getArray(include));
  ds.setExcludes(getArray(exclude));
  if (ds instanceof ZipScanner) {
    ((ZipScanner) ds).setSrc(container);
  } else {
    ds.setBasedir(container);
  }
  ds.setCaseSensitive(true);
  ds.scan();
  String[] files = ds.getIncludedFiles();
  return files;
}

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