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

Java FileSetManager类代码示例

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

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



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

示例1: removeDirectory

import org.apache.maven.shared.model.fileset.util.FileSetManager; //导入依赖的package包/类
/**
 * Deletes a directory and its contents.
 * 
 * @param dir
 *            The base directory of the included and excluded files.
 * @throws IOException
 * @throws MojoExecutionException
 *             When a directory failed to get deleted.
 */
public static void removeDirectory( File dir )
    throws IOException
{
    if ( dir != null )
    {
        Log log = new SilentLog();
        FileSetManager fileSetManager = new FileSetManager( log, false );

        FileSet fs = new FileSet();
        fs.setDirectory( dir.getPath() );
        fs.addInclude( "**/**" );
        fileSetManager.delete( fs );

    }
}
 
开发者ID:kefik,项目名称:Pogamut3,代码行数:25,代码来源:DependencyTestUtils.java


示例2: execute

import org.apache.maven.shared.model.fileset.util.FileSetManager; //导入依赖的package包/类
public void execute() throws MojoExecutionException {

        if (soliditySourceFiles.getDirectory() == null) {
            getLog().info("No solidity directory specified, using default directory [" + DEFAULT_SOLIDITY_SOURCES + "]");
            soliditySourceFiles.setDirectory(DEFAULT_SOLIDITY_SOURCES);
        }
        if (soliditySourceFiles.getIncludes().size() == 0) {
            getLog().info("No solidity contracts specified, using the default [" + DEFAULT_INCLUDE + "]");
            soliditySourceFiles.setIncludes(Collections.singletonList(DEFAULT_INCLUDE));
        }

        for (String includedFile : new FileSetManager().getIncludedFiles(soliditySourceFiles)) {
            getLog().info("process '" + includedFile + "'");
            processContractFile(includedFile);
            getLog().debug("processed '" + includedFile + "'");
        }
    }
 
开发者ID:web3j,项目名称:web3j-maven-plugin,代码行数:18,代码来源:JavaClassGeneratorMojo.java


示例3: getSourceBundleFiles

import org.apache.maven.shared.model.fileset.util.FileSetManager; //导入依赖的package包/类
protected List<SourceBundleFile> getSourceBundleFiles(BundleSet bundleSet) {
    List<SourceBundleFile> bundleFiles = new LinkedList<SourceBundleFile>();

    FileSetManager fsm = new FileSetManager(getLog());
    File baseDir = project.getBasedir();
    ResourceType type = bundleSet.getType();
    FileSet fs = bundleSet.getSourceFiles();
    File fsBaseDir = new File(baseDir, fs.getDirectory());
    String[] relPathes = fsm.getIncludedFiles(fs);
    for (String relPath : relPathes) {
        File bundleFile = new File(fsBaseDir, relPath);
        bundleFiles.add(
                new SourceBundleFile(type, pathToBundleId(type, relPath),
                        bundleFile, relPath));
    }
    return bundleFiles;
}
 
开发者ID:IBM-Cloud,项目名称:gp-java-tools,代码行数:18,代码来源:GPBaseMojo.java


示例4: getIncludedFiles

import org.apache.maven.shared.model.fileset.util.FileSetManager; //导入依赖的package包/类
private String[] getIncludedFiles(String absPath, String[] excludes, String[] includes) {
  FileSetManager fileSetManager = new FileSetManager();
  FileSet fs = new FileSet();
  fs.setDirectory(absPath);
  fs.setFollowSymlinks(false);
  for (String include : includes) fs.addInclude(include);
  for (String exclude : excludes) fs.addExclude(exclude);
  return fileSetManager.getIncludedFiles(fs);
}
 
开发者ID:SumoLogic,项目名称:epigraph,代码行数:10,代码来源:AbstractCompilingMojo.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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