org.apache.maven.model.Build.getFilters()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中org.apache.maven.model.Build.getFilters()方法的一些代码示例,展示了Build.getFilters()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Build.getFilters()方法的具体详情如下:
包路径:org.apache.maven.model.Build
类名称:Build
方法名:getFilters

Build.getFilters介绍

暂无

代码示例

代码示例来源:origin: org.apache.maven/maven-project

public List getFilters()
{
  return build.getFilters();
} //-- java.util.List getFilters()

代码示例来源:origin: org.apache.maven/maven-project

public List getFilters()
{
  return getBuild().getFilters();
}

代码示例来源:origin: apache/maven

public List<String> getFilters()
{
  return getBuild().getFilters();
}

代码示例来源:origin: org.apache.maven/maven-project

if ( build.getFilters() != null )
  for ( Iterator i = build.getFilters().iterator(); i.hasNext(); )

代码示例来源:origin: org.apache.maven/maven-project

if ( build.getFilters() != null )
  for ( Iterator i = build.getFilters().iterator(); i.hasNext(); )

代码示例来源:origin: apache/maven

if ( build.getFilters() != null )
  List<String> filters = new ArrayList<>( build.getFilters().size() );
  for ( String filter : build.getFilters() )

代码示例来源:origin: apache/maven

if ( build.getFilters() != null )
  for ( String filter : build.getFilters() )

代码示例来源:origin: apache/maven

if ( build.getFilters() != null )
  for ( String filter : build.getFilters() )

代码示例来源:origin: apache/maven

if ( ( build.getFilters() != null ) && ( build.getFilters().size() > 0 ) )
  for ( Iterator iter = build.getFilters().iterator(); iter.hasNext(); )

代码示例来源:origin: org.apache.maven/maven-project

ModelUtils.mergeFilterLists( childBuild.getFilters(), parentBuild.getFilters() );

代码示例来源:origin: apache/maven

ModelUtils.mergeFilterLists( childBuild.getFilters(), parentBuild.getFilters() );

代码示例来源:origin: org.apache.maven/maven-project

debugMessages ) );
dynamicBuild.setFilters( restoreListOfStrings( dynamicBuild.getFilters(),
                          originalInterpolatedBuild.getFilters(),
                          changedBuild.getFilters(),
                          project,
                          config,

代码示例来源:origin: org.apache.maven/maven-project

ModelUtils.mergeFilterLists( modelBuild.getFilters(), profileBuild.getFilters() );
ModelUtils.mergeResourceLists( modelBuild.getResources(), profileBuild.getResources() );
ModelUtils.mergeResourceLists( modelBuild.getTestResources(), profileBuild.getTestResources() );

代码示例来源:origin: takari/polyglot-maven

if ( ( build.getFilters() != null ) && ( build.getFilters().size() > 0 ) )
  for ( Iterator iter = build.getFilters().iterator(); iter.hasNext(); )

代码示例来源:origin: org.jboss.maven.util/jboss-maven-utils

@SuppressWarnings("unchecked")
public CompositeMavenProjectProperties(MavenProject project) {
  this.project = project;
  values = new HashMap( System.getProperties() );
  values.putAll( project.getProperties() );
  for ( Object o : project.getBuild().getFilters() ) {
    String filtersfile = ( String ) o;
    values.putAll( PropertiesHelper.loadPropertyFile( new File( filtersfile ) ) );
  }
}

代码示例来源:origin: org.apache.maven.plugins/maven-assembly-plugin

@Override
public List<String> getFilters()
{
  if ( filters == null )
  {
    filters = getProject().getBuild().getFilters();
    if ( filters == null )
    {
      filters = Collections.emptyList();
    }
  }
  return filters;
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder

/**
 * Method updateBuild.
 * 
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updateBuild(Build value, String xmlTag, Counter counter, Element element)
{
  boolean shouldExist = value != null;
  Element root = updateElement(counter, element, xmlTag, shouldExist);
  if (shouldExist) {
    Counter innerCount = new Counter(counter.getDepth() + 1);
    findAndReplaceSimpleElement(innerCount, root,  "sourceDirectory", value.getSourceDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "scriptSourceDirectory", value.getScriptSourceDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "testSourceDirectory", value.getTestSourceDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "outputDirectory", value.getOutputDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "testOutputDirectory", value.getTestOutputDirectory(), null);
    iterateExtension(innerCount, root, value.getExtensions(),"extensions","extension");
    findAndReplaceSimpleElement(innerCount, root,  "defaultGoal", value.getDefaultGoal(), null);
    iterateResource(innerCount, root, value.getResources(),"resources","resource");
    iterateResource(innerCount, root, value.getTestResources(),"testResources","testResource");
    findAndReplaceSimpleElement(innerCount, root,  "directory", value.getDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "finalName", value.getFinalName(), null);
    findAndReplaceSimpleLists(innerCount, root, value.getFilters(), "filters", "filter");
    updatePluginManagement( value.getPluginManagement(), "pluginManagement", innerCount, root);
    iteratePlugin(innerCount, root, value.getPlugins(),"plugins","plugin");
  }
} //-- void updateBuild(Build, String, Counter, Element)

代码示例来源:origin: org.codehaus.mevenide/nb-mvn-embedder

/**
 * Method updateBuild
 * 
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updateBuild(Build value, String xmlTag, Counter counter, Element element)
{
  boolean shouldExist = value != null;
  Element root = updateElement(counter, element, xmlTag, shouldExist);
  if (shouldExist) {
    Counter innerCount = new Counter(counter.getDepth() + 1);
    findAndReplaceSimpleElement(innerCount, root,  "sourceDirectory", value.getSourceDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "scriptSourceDirectory", value.getScriptSourceDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "testSourceDirectory", value.getTestSourceDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "outputDirectory", value.getOutputDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "testOutputDirectory", value.getTestOutputDirectory(), null);
    iterateExtension(innerCount, root, value.getExtensions(),"extensions","extension");
    findAndReplaceSimpleElement(innerCount, root,  "defaultGoal", value.getDefaultGoal(), null);
    iterateResource(innerCount, root, value.getResources(),"resources","resource");
    iterateResource(innerCount, root, value.getTestResources(),"testResources","testResource");
    findAndReplaceSimpleElement(innerCount, root,  "directory", value.getDirectory(), null);
    findAndReplaceSimpleElement(innerCount, root,  "finalName", value.getFinalName(), null);
    findAndReplaceSimpleLists(innerCount, root, value.getFilters(), "filters", "filter");
    updatePluginManagement( value.getPluginManagement(), "pluginManagement", innerCount, root);
    iteratePlugin(innerCount, root, value.getPlugins(),"plugins","plugin");
  }
} //-- void updateBuild(Build, String, Counter, Element)

代码示例来源:origin: org.jboss.forge.addon/maven-impl

findAndReplaceSimpleElement(innerCount, root, "directory", value.getDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "finalName", value.getFinalName(), null);
findAndReplaceSimpleLists(innerCount, root, value.getFilters(), "filters", "filter");
updatePluginManagement(value.getPluginManagement(), "pluginManagement", innerCount, root);
iteratePlugin(innerCount, root, value.getPlugins(), "plugins", "plugin");

代码示例来源:origin: com.github.htfv.maven.plugins/build-configurator-core

interpolateStrings(build.getFilters());
interpolatePluginManagement(build.getPluginManagement());
interpolatePlugins(build.getPlugins());

相关文章