当前位置: 首页>>代码示例>>Java>>正文


Java PatternSet.NameEntry方法代码示例

本文整理汇总了Java中org.apache.tools.ant.types.PatternSet.NameEntry方法的典型用法代码示例。如果您正苦于以下问题:Java PatternSet.NameEntry方法的具体用法?Java PatternSet.NameEntry怎么用?Java PatternSet.NameEntry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.tools.ant.types.PatternSet的用法示例。


在下文中一共展示了PatternSet.NameEntry方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: verifyPathAdheresToDesign

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
private void verifyPathAdheresToDesign(Design d, Path p) throws ClassFormatException, IOException {
	String files[] = p.list();
	for (int i = 0; i < files.length; i++) {
		File file = new File(files[i]);
		if (file.isDirectory()) {
			FileSet set = new FileSet();
			set.setDir(file);
			set.setProject(task.getProject());
			PatternSet.NameEntry entry1 = set.createInclude();
			PatternSet.NameEntry entry2 = set.createInclude();
			PatternSet.NameEntry entry3 = set.createInclude();
			entry1.setName("**/*.class");
			entry2.setName("**/*.jar");
			entry3.setName("**/*.war");
			DirectoryScanner scanner = set.getDirectoryScanner(task.getProject());
			scanner.setBasedir(file);
			String[] scannerFiles = scanner.getIncludedFiles();
			for (int j = 0; j < scannerFiles.length; j++) {
				verifyPartOfPath(scannerFiles[j], new File(file, scannerFiles[j]), d);
			}
		} else
			verifyPartOfPath(files[i], file, d);
	}
}
 
开发者ID:cniweb,项目名称:ant-contrib,代码行数:25,代码来源:VerifyDesignDelegate.java

示例2: createInclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * Add a name entry to the include list.
 * @return <code>PatternSet.NameEntry</code>.
 */
public synchronized PatternSet.NameEntry createInclude() {
    if (isReference()) {
        throw noChildrenAllowed();
    }
    ds = null;
    return defaultPatterns.createInclude();
}
 
开发者ID:apache,项目名称:ant,代码行数:12,代码来源:Files.java

示例3: createIncludesFile

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * Add a name entry to the include files list.
 * @return <code>PatternSet.NameEntry</code>.
 */
public synchronized PatternSet.NameEntry createIncludesFile() {
    if (isReference()) {
        throw noChildrenAllowed();
    }
    ds = null;
    return defaultPatterns.createIncludesFile();
}
 
开发者ID:apache,项目名称:ant,代码行数:12,代码来源:Files.java

示例4: createExclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * Add a name entry to the exclude list.
 * @return <code>PatternSet.NameEntry</code>.
 */
public synchronized PatternSet.NameEntry createExclude() {
    if (isReference()) {
        throw noChildrenAllowed();
    }
    ds = null;
    return defaultPatterns.createExclude();
}
 
开发者ID:apache,项目名称:ant,代码行数:12,代码来源:Files.java

示例5: createExcludesFile

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * Add a name entry to the excludes files list.
 * @return <code>PatternSet.NameEntry</code>.
 */
public synchronized PatternSet.NameEntry createExcludesFile() {
    if (isReference()) {
        throw noChildrenAllowed();
    }
    ds = null;
    return defaultPatterns.createExcludesFile();
}
 
开发者ID:apache,项目名称:ant,代码行数:12,代码来源:Files.java

示例6: createInclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createInclude() {
  usedMatchingTask = true;
  return super.createInclude();
}
 
开发者ID:spurious,项目名称:kawa-mirror,代码行数:5,代码来源:Kawac.java

示例7: createIncludesFile

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createIncludesFile() {
  usedMatchingTask = true;
  return super.createIncludesFile();
}
 
开发者ID:spurious,项目名称:kawa-mirror,代码行数:5,代码来源:Kawac.java

示例8: createExclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createExclude() {
  usedMatchingTask = true;
  return super.createExclude();
}
 
开发者ID:spurious,项目名称:kawa-mirror,代码行数:5,代码来源:Kawac.java

示例9: createExcludesFile

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createExcludesFile() {
  usedMatchingTask = true;
  return super.createExcludesFile();
}
 
开发者ID:spurious,项目名称:kawa-mirror,代码行数:5,代码来源:Kawac.java

示例10: createInclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * add a name entry on the include list
 * @return a NameEntry object to be configured
 */
@Override
public PatternSet.NameEntry createInclude() {
    usedMatchingTask = true;
    return super.createInclude();
}
 
开发者ID:apache,项目名称:ant,代码行数:10,代码来源:Delete.java

示例11: createIncludesFile

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * add a name entry on the include files list
 * @return a NameEntry object to be configured
 */
@Override
public PatternSet.NameEntry createIncludesFile() {
    usedMatchingTask = true;
    return super.createIncludesFile();
}
 
开发者ID:apache,项目名称:ant,代码行数:10,代码来源:Delete.java

示例12: createExclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * add a name entry on the exclude list
 * @return a NameEntry object to be configured
 */
@Override
public PatternSet.NameEntry createExclude() {
    usedMatchingTask = true;
    return super.createExclude();
}
 
开发者ID:apache,项目名称:ant,代码行数:10,代码来源:Delete.java

示例13: createExcludesFile

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * add a name entry on the include files list
 * @return a NameEntry object to be configured
 */
@Override
public PatternSet.NameEntry createExcludesFile() {
    usedMatchingTask = true;
    return super.createExcludesFile();
}
 
开发者ID:apache,项目名称:ant,代码行数:10,代码来源:Delete.java

示例14: createInclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * Add a name entry on the include list.
 * @return a NameEntry to be configured.
 */
public PatternSet.NameEntry createInclude() {
    defaultSetDefined = true;
    return defaultSet.createInclude();
}
 
开发者ID:apache,项目名称:ant,代码行数:9,代码来源:Chmod.java

示例15: createExclude

import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
/**
 * Add a name entry on the exclude list.
 * @return a nameentry to be configured.
 */
public PatternSet.NameEntry createExclude() {
    defaultSetDefined = true;
    return defaultSet.createExclude();
}
 
开发者ID:apache,项目名称:ant,代码行数:9,代码来源:Chmod.java


注:本文中的org.apache.tools.ant.types.PatternSet.NameEntry方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。