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

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

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

Reporting.setOutputDirectory介绍

[英]Set where to store all of the generated reports. The default is ${project.build.directory}/site.
[中]设置存储所有生成报告的位置。默认值为${project.build.directory}/site

代码示例

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

protected void mergeReporting_OutputDirectory( Reporting target, Reporting source, boolean sourceDominant,
                        Map<Object, Object> context )
{
  String src = source.getOutputDirectory();
  if ( src != null )
  {
    if ( sourceDominant || target.getOutputDirectory() == null )
    {
      target.setOutputDirectory( src );
      target.setLocation( "outputDirectory", source.getLocation( "outputDirectory" ) );
    }
  }
}

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

modelReporting.setOutputDirectory( profileReporting.getOutputDirectory() );

代码示例来源: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: org.apache.maven/maven-project

reporting.setOutputDirectory( alignToBaseDirectory( reporting.getOutputDirectory(), basedir ) );

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

reporting.setOutputDirectory( unalignFromBaseDirectory( reporting.getOutputDirectory(), basedir ) );

代码示例来源: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.setOutputDirectory( interpolatedTrimmed( parser.nextText(), "outputDirectory" ) );

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

reporting.setOutputDirectory( alignToBaseDirectory( reporting.getOutputDirectory(), basedir ) );

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

reporting.setOutputDirectory( alignToBaseDirectory( reporting.getOutputDirectory(), basedir ) );

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

reporting.setOutputDirectory( unalignFromBaseDirectory( reporting.getOutputDirectory(), basedir ) );

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

reporting.setOutputDirectory( interpolatedTrimmed( parser.nextText(), "outputDirectory" ) );

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

reporting.setOutputDirectory( getTrimmedValue( value ) );

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

protected void mergeReporting_OutputDirectory( Reporting target, Reporting source, boolean sourceDominant,
                        Map<Object, Object> context )
{
  String src = source.getOutputDirectory();
  if ( src != null )
  {
    if ( sourceDominant || target.getOutputDirectory() == null )
    {
      target.setOutputDirectory( src );
      target.setLocation( "outputDirectory", source.getLocation( "outputDirectory" ) );
    }
  }
}

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

project.getReporting().setOutputDirectory( tempWebappDirectory.getAbsolutePath() );
for ( MavenReportExecution mavenReportExecution : getReports() )

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

releaseModel.getReporting().setOutputDirectory( resolvePath( basedir.toPath(),
                         releaseModel.getReporting().getOutputDirectory(),
                         interpolatedSuperModel.getReporting().getOutputDirectory(),

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

reporting.setOutputDirectory( getTrimmedValue( parser.nextText() ) );

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

reporting.setOutputDirectory( alignToBaseDirectory( reporting.getOutputDirectory(), basedir ) );

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

reporting.setOutputDirectory( getTrimmedValue( parser.nextText() ) );

相关文章