當前位置: 首頁>>代碼示例>>Java>>正文


Java Resource.setExcludes方法代碼示例

本文整理匯總了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;
}
 
開發者ID:eclipse,項目名稱:che,代碼行數:10,代碼來源:MavenModelUtil.java

示例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 );
}
 
開發者ID:gems-uff,項目名稱:oceano,代碼行數:10,代碼來源:DefaultMavenProjectHelper.java

示例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 );
}
 
開發者ID:gems-uff,項目名稱:oceano,代碼行數:10,代碼來源:DefaultMavenProjectHelper.java

示例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;
}
 
開發者ID:SumoLogic,項目名稱:epigraph,代碼行數:7,代碼來源:BaseCodegenMojo.java


注:本文中的org.apache.maven.model.Resource.setExcludes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。