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

x33g5p2x  于2022-01-29 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(144)

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

Reporting.setPlugins介绍

[英]Set the reporting plugins to use and their configuration.
[中]设置要使用的报告插件及其配置。

代码示例

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

protected void mergeReporting_Plugins( Reporting target, Reporting source, boolean sourceDominant,
                    Map<Object, Object> context )
{
  List<ReportPlugin> src = source.getPlugins();
  if ( !src.isEmpty() )
  {
    List<ReportPlugin> tgt = target.getPlugins();
    Map<Object, ReportPlugin> merged =
      new LinkedHashMap<>( ( src.size() + tgt.size() ) * 2 );
    for ( ReportPlugin element : tgt )
    {
      Object key = getReportPluginKey( element );
      merged.put( key, element );
    }
    for ( ReportPlugin element : src )
    {
      Object key = getReportPluginKey( element );
      if ( sourceDominant || !merged.containsKey( key ) )
      {
        merged.put( key, element );
      }
    }
    target.setPlugins( new ArrayList<>( merged.values() ) );
  }
}

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

target.setPlugins( new ArrayList<>( merged.values() ) );

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

child.getPlugins() );
child.setPlugins( results );

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

modelReporting.setPlugins( new ArrayList( mergedReportPlugins.values() ) );

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

child.setPlugins( new ArrayList<>( assembledPlugins.values() ) );

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

target.setPlugins( new ArrayList<>( merged.values() ) );

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

public static Reporting cloneReporting( Reporting src )
{
  if ( src == null )
  {
    return null;
  }
  
  Reporting result = new Reporting();
  
  result.setExcludeDefaults( src.isExcludeDefaults() );
  result.setOutputDirectory( src.getOutputDirectory() );
  result.setPlugins( cloneList( src.getPlugins(), REPORT_PLUGIN_CLONER ) );
  
  return result;
}

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

reporting.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

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

reporting.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

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

reporting.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

代码示例来源:origin: io.tesla.maven/maven-model

protected void mergeReporting_Plugins( Reporting target, Reporting source, boolean sourceDominant,
                    Map<Object, Object> context )
{
  List<ReportPlugin> src = source.getPlugins();
  if ( !src.isEmpty() )
  {
    List<ReportPlugin> tgt = target.getPlugins();
    Map<Object, ReportPlugin> merged =
      new LinkedHashMap<Object, ReportPlugin>( ( src.size() + tgt.size() ) * 2 );
    for ( ReportPlugin element : tgt )
    {
      Object key = getReportPluginKey( element );
      merged.put( key, element );
    }
    for ( ReportPlugin element : src )
    {
      Object key = getReportPluginKey( element );
      if ( sourceDominant || !merged.containsKey( key ) )
      {
        merged.put( key, element );
      }
    }
    target.setPlugins( new ArrayList<ReportPlugin>( merged.values() ) );
  }
}

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

target.setPlugins( new ArrayList<>( merged.values() ) );

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

target.setPlugins( new ArrayList<>( merged.values() ) );

代码示例来源:origin: io.tesla.maven/maven-model

reporting.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

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

releaseModel.getReporting().setPlugins( createReleaseReportPlugins( releaseDescriptor, 
                                  releaseProject ) );

代码示例来源:origin: io.tesla.maven/maven-model

reporting.setPlugins( plugins );
while ( parser.nextTag() == XmlPullParser.START_TAG )

相关文章