- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.tools.ant.types.ZipScanner
类的一些代码示例,展示了ZipScanner
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipScanner
类的具体详情如下:
包路径:org.apache.tools.ant.types.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;
}
本文整理了Java中org.apache.tools.ant.types.ZipScanner.setSrc()方法的一些代码示例,展示了ZipScanner.setSrc()的具体用法。这些代码示例
本文整理了Java中org.apache.tools.ant.types.ZipScanner.()方法的一些代码示例,展示了ZipScanner.()的具体用法。这些代码示例主要来源于Github/
我是一名优秀的程序员,十分优秀!