• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PatternFilterable类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: execute

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public WorkResult execute(ScalaJavaJointCompileSpec spec) {
    scalaCompiler.execute(spec);

    PatternFilterable patternSet = new PatternSet();
    patternSet.include("**/*.java");
    FileTree javaSource = spec.getSource().getAsFileTree().matching(patternSet);
    if (!javaSource.isEmpty()) {
        spec.setSource(javaSource);
        javaCompiler.execute(spec);
    }

    return new WorkResult() {
        public boolean getDidWork() {
            return true;
        }
    };
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:18,代码来源:DefaultScalaJavaJointCompiler.java


示例2: matching

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
@Override
public FileTree matching(PatternFilterable patterns) {
    if (tree instanceof PatternFilterableFileTree) {
        PatternFilterableFileTree filterableTree = (PatternFilterableFileTree) tree;
        return new FileTreeAdapter(filterableTree.filter(patterns));
    }
    return super.matching(patterns);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:FileTreeAdapter.java


示例3: SyncCopyActionDecoratorFileVisitor

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
private SyncCopyActionDecoratorFileVisitor(Set<RelativePath> visited, PatternFilterable preserveSpec) {
    this.visited = visited;
    PatternSet preserveSet = new PatternSet();
    if (preserveSpec != null) {
        preserveSet.include(preserveSpec.getIncludes());
        preserveSet.exclude(preserveSpec.getExcludes());
    }
    this.preserveSet = preserveSet;
    this.preserveSpec = preserveSet.getAsSpec();
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:11,代码来源:SyncCopyActionDecorator.java


示例4: setExplodedAppDirectory

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
/**
 * Sets the output directory of Sync Task and preserves the setting so it can be recovered later
 * via getter.
 */
public void setExplodedAppDirectory(File explodedAppDirectory) {
  this.explodedAppDirectory = explodedAppDirectory;
  into(explodedAppDirectory);
  preserve(
      new Action<PatternFilterable>() {
        @Override
        public void execute(PatternFilterable patternFilterable) {
          patternFilterable.include("WEB-INF/appengine-generated/datastore-indexes-auto.xml");
        }
      });
}
 
开发者ID:GoogleCloudPlatform,项目名称:app-gradle-plugin,代码行数:16,代码来源:ExplodeWarTask.java


示例5: setIncludes

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public PatternFilterable setIncludes(Iterable<String> includes) {
    patterns.setIncludes(includes);
    return this;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultSourceDirectorySet.java


示例6: setExcludes

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public PatternFilterable setExcludes(Iterable<String> excludes) {
    patterns.setExcludes(excludes);
    return this;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultSourceDirectorySet.java


示例7: include

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public PatternFilterable include(String... includes) {
    patterns.include(includes);
    return this;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultSourceDirectorySet.java


示例8: exclude

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public PatternFilterable exclude(Iterable<String> excludes) {
    patterns.exclude(excludes);
    return this;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultSourceDirectorySet.java


示例9: getFilter

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public PatternFilterable getFilter() {
    return filter;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:4,代码来源:DefaultSourceDirectorySet.java


示例10: matching

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public FileTree matching(Closure filterConfigClosure) {
    return matching(ClosureBackedAction.<PatternFilterable>of(filterConfigClosure));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:4,代码来源:CompositeFileTree.java


示例11: FilteredFileTree

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public FilteredFileTree(PatternFilterable patterns) {
    this.patterns = patterns;
    action = null;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:CompositeFileTree.java


示例12: filter

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public DirectoryFileTree filter(PatternFilterable patterns) {
    PatternSet patternSet = this.patternSet.intersect();
    patternSet.copyFrom(patterns);
    return new DirectoryFileTree(dir, patternSet, directoryWalkerFactory, fileSystem, postfix);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:6,代码来源:DirectoryFileTree.java


示例13: SyncCopyActionDecorator

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
public SyncCopyActionDecorator(File baseDestDir, CopyAction delegate, PatternFilterable preserveSpec) {
    this.baseDestDir = baseDestDir;
    this.delegate = delegate;
    this.preserveSpec = preserveSpec;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:6,代码来源:SyncCopyActionDecorator.java


示例14: getFilter

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
@Override
@NonNull
public PatternFilterable getFilter() {
    return filter;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:DefaultAndroidSourceDirectorySet.java


示例15: setIncludes

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
@Override
public PatternFilterable setIncludes(Iterable<String> includes) {
    filter.setIncludes(includes);
    return this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:DefaultAndroidSourceDirectorySet.java


示例16: setExcludes

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
@Override
public PatternFilterable setExcludes(Iterable<String> excludes) {
    filter.setExcludes(excludes);
    return this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:DefaultAndroidSourceDirectorySet.java


示例17: include

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
@Override
public PatternFilterable include(String... includes) {
    filter.include(includes);
    return this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:DefaultAndroidSourceDirectorySet.java


示例18: exclude

import org.gradle.api.tasks.util.PatternFilterable; //导入依赖的package包/类
@Override
public PatternFilterable exclude(Iterable<String> excludes) {
    filter.exclude(excludes);
    return this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:DefaultAndroidSourceDirectorySet.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Pac4jConstants类代码示例发布时间:2022-05-23
下一篇:
Java XMLParser类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap