本文整理汇总了Java中org.apache.maven.model.Resource.setExcludes方法的典型用法代码示例。如果您正苦于以下问题:Java Resource.setExcludes方法的具体用法?Java Resource.setExcludes怎么用?Java Resource.setExcludes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.maven.model.Resource
的用法示例。
在下文中一共展示了Resource.setExcludes方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convertToMavenResource
import org.apache.maven.model.Resource; //导入方法依赖的package包/类
private static Resource convertToMavenResource(MavenResource mavenResource, File projectDir) {
Resource resource = new Resource();
resource.setDirectory(relativize(projectDir, mavenResource.getDirectory()));
resource.setFiltering(mavenResource.isFiltered());
resource.setTargetPath(mavenResource.getTargetPath());
resource.setIncludes(mavenResource.getIncludes());
resource.setExcludes(mavenResource.getExcludes());
return resource;
}
示例2: addResource
import org.apache.maven.model.Resource; //导入方法依赖的package包/类
public void addResource( MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes )
{
Resource resource = new Resource();
resource.setDirectory( resourceDirectory );
resource.setIncludes( includes );
resource.setExcludes( excludes );
project.addResource( resource );
}
示例3: addTestResource
import org.apache.maven.model.Resource; //导入方法依赖的package包/类
public void addTestResource( MavenProject project, String resourceDirectory, List<String> includes, List<String> excludes )
{
Resource resource = new Resource();
resource.setDirectory( resourceDirectory );
resource.setIncludes( includes );
resource.setExcludes( excludes );
project.addTestResource( resource );
}
示例4: generatedResources
import org.apache.maven.model.Resource; //导入方法依赖的package包/类
private static Resource generatedResources(String path) {
Resource resources = new Resource();
resources.setDirectory(path);
resources.setExcludes(Collections.singletonList("**/*.java")); // include everything except .java sources
return resources;
}