本文整理汇总了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);
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例6: createInclude
import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createInclude() {
usedMatchingTask = true;
return super.createInclude();
}
示例7: createIncludesFile
import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createIncludesFile() {
usedMatchingTask = true;
return super.createIncludesFile();
}
示例8: createExclude
import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createExclude() {
usedMatchingTask = true;
return super.createExclude();
}
示例9: createExcludesFile
import org.apache.tools.ant.types.PatternSet; //导入方法依赖的package包/类
@Override public PatternSet.NameEntry createExcludesFile() {
usedMatchingTask = true;
return super.createExcludesFile();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}