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


Java Resource.addExclude方法代码示例

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


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

示例1: getResources

import org.apache.maven.model.Resource; //导入方法依赖的package包/类
Resource[] getResources() throws MojoExecutionException {
    final Resource resourceNonGenerated = new Resource();
    resourceNonGenerated.setDirectory(getTopDirectory().getPath());
    try {
        addNonPartialsToResources(getTopDirectory(),resourceNonGenerated);
    } catch (CodeGenException e) {
        throw new MojoExecutionException("Couldn't add non partial specifications to resources");
    }
    if (resourceNonGenerated.getIncludes().isEmpty()) {
        resourceNonGenerated.addExclude("**/*");
    }
    Resource resourceGenerated = new Resource();
    final File specificationOutputDir = getSpecificationOutput();
    resourceGenerated.setDirectory(specificationOutputDir.getPath());
    resourceGenerated.addInclude("**/*.json");
    final Resource[] resources = {resourceNonGenerated,resourceGenerated};
    return resources;

}
 
开发者ID:indeedeng,项目名称:proctor,代码行数:20,代码来源:AbstractProctorMojo.java

示例2: addResource

import org.apache.maven.model.Resource; //导入方法依赖的package包/类
private Resource addResource(File srcDirectory) {
	Resource r = new Resource();

	r.setDirectory(srcDirectory.getAbsolutePath());
	r.setFiltering(true);
	r.addExclude("**/*TestSuite/"); // exclude FCUnit TestSuites

	return r;
}
 
开发者ID:fastconnect,项目名称:tibco-bwmaven,代码行数:10,代码来源:CopyBWSourcesMojo.java

示例3: createResource

import org.apache.maven.model.Resource; //导入方法依赖的package包/类
protected Resource createResource(String source, String target) {
    Resource resource = new Resource();
    resource.setDirectory(source);
    resource.addExclude("jetty*.css");
    resource.addExclude("plugin.properties");
    resource.addExclude("about.html");
    resource.addExclude("about_files/**");
    resource.addExclude("META-INF/ECLIPSE*");
    resource.addExclude("META-INF/eclipse*");
    resource.addExclude("META-INF/maven/**");
    resource.addExclude("WEB-INF/**");
    resource.addExclude("**/web.xml");
    if (target != null) resource.setTargetPath(target);
    return resource;
}
 
开发者ID:torquebox,项目名称:jruby9-maven-plugins,代码行数:16,代码来源:WarMojo.java

示例4: createGemsResource

import org.apache.maven.model.Resource; //导入方法依赖的package包/类
protected Resource createGemsResource(String gemHome) {
    Resource resource = new Resource();
    resource.setDirectory(gemHome);
    resource.addInclude("bin/*");
    resource.addInclude("specifications/*");
    resource.addInclude("gems/**");
    resource.addExclude("gems/*/test/**");
    resource.addExclude("gems/*/tests/**");
    resource.addExclude("gems/*/spec/**");
    resource.addExclude("gems/*/specs/**");
    resource.addExclude("gems/*/features/**");
    resource.addExclude("gems/**/*.java");
    return resource;
}
 
开发者ID:torquebox,项目名称:jruby9-maven-plugins,代码行数:15,代码来源:AbstractGenerateMojo.java


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