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

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

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

Reporting.<init>介绍

暂无

代码示例

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

protected void mergeModelBase_Reporting( ModelBase target, ModelBase source, boolean sourceDominant,
                     Map<Object, Object> context )
{
  Reporting src = source.getReporting();
  if ( src != null )
  {
    Reporting tgt = target.getReporting();
    if ( tgt == null )
    {
      tgt = new Reporting();
      target.setReporting( tgt );
    }
    mergeReporting( tgt, src, sourceDominant, context );
  }
}

代码示例来源: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

private void assembleReportingInheritance( Model child, Model parent )
{
  // Reports :: aggregate
  Reporting childReporting = child.getReporting();
  Reporting parentReporting = parent.getReporting();
  if ( parentReporting != null )
  {
    if ( childReporting == null )
    {
      childReporting = new Reporting();
      child.setReporting( childReporting );
    }
    childReporting.setExcludeDefaults( parentReporting.isExcludeDefaults() );
    if ( StringUtils.isEmpty( childReporting.getOutputDirectory() ) )
    {
      childReporting.setOutputDirectory( parentReporting.getOutputDirectory() );
    }
    mergeReportPluginLists( childReporting, parentReporting, true );
  }
}

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

private void assembleReportingInheritance( Model child, Model parent )
{
  // Reports :: aggregate
  Reporting childReporting = child.getReporting();
  Reporting parentReporting = parent.getReporting();
  if ( parentReporting != null )
  {
    if ( childReporting == null )
    {
      childReporting = new Reporting();
      child.setReporting( childReporting );
    }
    if ( childReporting.isExcludeDefaultsValue() == null )
    {
      childReporting.setExcludeDefaultsValue( parentReporting.isExcludeDefaultsValue() );
    }
    if ( StringUtils.isEmpty( childReporting.getOutputDirectory() ) )
    {
      childReporting.setOutputDirectory( parentReporting.getOutputDirectory() );
    }
    ModelUtils.mergeReportPluginLists( childReporting, parentReporting, true );
  }
}

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

Reporting reporting = new Reporting();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )

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

Reporting reporting = new Reporting();
InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );

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

public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attrs) throws InstantiationException, IllegalAccessException {
 builder.getContext().put(Reporting.class.getName(), true);
 return new Reporting();
}

代码示例来源:origin: stackoverflow.com

Reporting reporting = new Reporting();
reporting.setFileName("home.pdf");

ReportingFile reportingFile = new ReportingFile();
// It will not persisted because of insertable=false, updatable=false
reportingFile.setFileName("home.pdf");
reportingFile.setXmlContent(someClobObject);

session.save(reporting); // It works

代码示例来源:origin: stackoverflow.com

Reporting reporting = new Reporting();
reporting.setFileName("home.pdf");

ReportingFile reportingFile = new ReportingFile();
// It will not persisted because of insertable=false, updatable=false
reportingFile.setFileName("home.pdf");
reportingFile.setXmlContent(someClobObject);

reporting.getReports().add(reportingFile);

session.save(reporting); // It does not work

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

Reporting reporting = new Reporting();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )

代码示例来源:origin: io.takari.polyglot/polyglot-groovy

public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attrs) throws InstantiationException, IllegalAccessException {
 builder.getContext().put(Reporting.class.getName(), true);
 return new Reporting();
}

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

if ( v3Reports != null && !v3Reports.isEmpty() )
  reports = new Reporting();
  for ( Iterator it = v3Reports.iterator(); it.hasNext(); )

代码示例来源:origin: stackoverflow.com

Model model = new Model();
 ReportPlugin reportPlugin = new ReportPlugin();
 reportPlugin.setGroupId("org.codehaus.mojo");
 reportPlugin.setArtifactId("cobertura-maven-plugin");
 Reporting reporting = new Reporting();
 reporting.addPlugin(reportPlugin);
 model.setReporting(reporting);
 StringWriter writer = new StringWriter();
 MavenXpp3Writer xpp = new MavenXpp3Writer();
 try {
   xpp.write(writer, model);
   System.out.println(writer.toString());
 } catch (IOException e) {
   e.printStackTrace();
 }

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

protected void mergeModelBase_Reporting( ModelBase target, ModelBase source, boolean sourceDominant,
                     Map<Object, Object> context )
{
  Reporting src = source.getReporting();
  if ( src != null )
  {
    Reporting tgt = target.getReporting();
    if ( tgt == null )
    {
      tgt = new Reporting();
      target.setReporting( tgt );
    }
    mergeReporting( tgt, src, sourceDominant, context );
  }
}

代码示例来源:origin: org.sonatype.maven.archetype/archetype-common

private void mergeReportPlugins(Model model, Model generatedModel) {
  if (generatedModel.getReporting() != null) {
    if (model.getReporting() == null) {
      model.setReporting(new Reporting());
    }
    Map<String,ReportPlugin> reportPluginsByIds=model.getReporting().getReportPluginsAsMap();
    Map<String,ReportPlugin> generatedReportPluginsByIds=generatedModel.getReporting().getReportPluginsAsMap();
    for (String generatedReportPluginsId : generatedReportPluginsByIds.keySet()) {
      if (!reportPluginsByIds.containsKey(generatedReportPluginsId)) {
        model.getReporting().addPlugin(generatedReportPluginsByIds.get(generatedReportPluginsId));
      }
      else {
        log.warn("Can not override report: " + generatedReportPluginsId);
      }
    }
  }
}

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

private void mergeReportPlugins( Model model, Model generatedModel )
{
  if ( generatedModel.getReporting() != null )
  {
    if ( model.getReporting() == null )
    {
      model.setReporting( new Reporting() );
    }
    @SuppressWarnings( "unchecked" )
    Map<String, ReportPlugin> reportPluginsByIds = model.getReporting().getReportPluginsAsMap();
    @SuppressWarnings( "unchecked" )
    Map<String, ReportPlugin> generatedReportPluginsByIds =
      generatedModel.getReporting().getReportPluginsAsMap();
    for ( String generatedReportPluginsId : generatedReportPluginsByIds.keySet() )
    {
      if ( !reportPluginsByIds.containsKey( generatedReportPluginsId ) )
      {
        model.getReporting().addPlugin( generatedReportPluginsByIds.get( generatedReportPluginsId ) );
      }
      else
      {
        getLogger().warn( "Can not override report: " + generatedReportPluginsId );
      }
    }
  }
}

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

Reporting reporting = new Reporting();
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )

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

Reporting reporting = new Reporting();
InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );

代码示例来源:origin: io.fabric8.forge/devops

reporting = new Reporting();
model.setReporting(reporting);

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

v4Model.setReporting( new Reporting() );

相关文章