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


Java ContainsSelector类代码示例

本文整理汇总了Java中org.apache.tools.ant.types.selectors.ContainsSelector的典型用法代码示例。如果您正苦于以下问题:Java ContainsSelector类的具体用法?Java ContainsSelector怎么用?Java ContainsSelector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ContainsSelector类属于org.apache.tools.ant.types.selectors包,在下文中一共展示了ContainsSelector类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: removeFileContaining

import org.apache.tools.ant.types.selectors.ContainsSelector; //导入依赖的package包/类
private void removeFileContaining(String content) {
	DirectoryScanner ds = new DirectoryScanner();
	String[] includes = {"**/*.process"};
	ds.setIncludes(includes);
	ds.setBasedir(testSrcDirectory);
	//ds.setCaseSensitive(true);

	ContainsSelector contentToRemove = new ContainsSelector();
	contentToRemove.setText(content);

	FileSelector[] selectors = {contentToRemove};
	ds.setSelectors(selectors);
	ds.scan();

	String[] files = ds.getIncludedFiles();
	for (int i = 0; i < files.length; i++) {
		String file = testSrcDirectory + File.separator + files[i];
		getLog().debug("Deleting file with starter : '" + file + "'");
		getLog().info("Deleting file with starter : '" + file + "'");
		FileUtils.deleteQuietly(new File(file));
	}

}
 
开发者ID:fastconnect,项目名称:tibco-fcunit,代码行数:24,代码来源:PrepareTestMojo.java

示例2: addContains

import org.apache.tools.ant.types.selectors.ContainsSelector; //导入依赖的package包/类
public void addContains(ContainsSelector selector) {
    selectors.addContains(selector);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:PathFileSet.java

示例3: addContains

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

示例4: addContains

import org.apache.tools.ant.types.selectors.ContainsSelector; //导入依赖的package包/类
/**
 * Add a contains selector entry on the selector list.
 * @param selector the <code>ContainsSelector</code> to add.
 */
@Override
public void addContains(ContainsSelector selector) {
    appendSelector(selector);
}
 
开发者ID:apache,项目名称:ant,代码行数:9,代码来源:AbstractFileSet.java

示例5: addContains

import org.apache.tools.ant.types.selectors.ContainsSelector; //导入依赖的package包/类
/**
 * add a contains selector entry on the selector list
 *
 * @param selector the selector to be added
 */
@Override
public void addContains(ContainsSelector selector) {
    usedMatchingTask = true;
    super.addContains(selector);
}
 
开发者ID:apache,项目名称:ant,代码行数:11,代码来源:Delete.java

示例6: addContains

import org.apache.tools.ant.types.selectors.ContainsSelector; //导入依赖的package包/类
/**
 * add a contains selector entry on the selector list
 * @param selector the selector to add
 */
@Override
public void addContains(ContainsSelector selector) {
    fileset.addContains(selector);
}
 
开发者ID:apache,项目名称:ant,代码行数:9,代码来源:MatchingTask.java


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