本文整理了Java中org.apache.maven.model.Model.getReporting()
方法的一些代码示例,展示了Model.getReporting()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getReporting()
方法的具体详情如下:
包路径:org.apache.maven.model.Model
类名称:Model
方法名:getReporting
暂无
代码示例来源:origin: apache/maven
@Deprecated
public Reporting getReporting()
{
return getModel().getReporting();
}
代码示例来源:origin: org.apache.maven/maven-project
public Reporting getReporting()
{
return getModel().getReporting();
}
代码示例来源:origin: apache/maven
@Deprecated
public List<ReportPlugin> getReportPlugins()
{
if ( getModel().getReporting() == null )
{
return Collections.emptyList();
}
return Collections.unmodifiableList( getModel().getReporting().getPlugins() );
}
代码示例来源:origin: org.apache.maven/maven-project
public List getReportPlugins()
{
if ( getModel().getReporting() == null )
{
return null;
}
return getModel().getReporting().getPlugins();
}
代码示例来源:origin: org.apache.maven/maven-project
Reporting modelReporting = model.getReporting();
代码示例来源: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: org.apache.maven/maven-project
Reporting reporting = model.getReporting();
代码示例来源:origin: org.apache.maven/maven-project
Reporting reporting = model.getReporting();
代码示例来源:origin: apache/maven
@Override
public void expandPluginConfiguration( Model model, ModelBuildingRequest request, ModelProblemCollector problems )
{
Reporting reporting = model.getReporting();
if ( reporting != null )
{
for ( ReportPlugin reportPlugin : reporting.getPlugins() )
{
Xpp3Dom parentDom = (Xpp3Dom) reportPlugin.getConfiguration();
if ( parentDom != null )
{
for ( ReportSet execution : reportPlugin.getReportSets() )
{
Xpp3Dom childDom = (Xpp3Dom) execution.getConfiguration();
childDom = Xpp3Dom.mergeXpp3Dom( childDom, new Xpp3Dom( parentDom ) );
execution.setConfiguration( childDom );
}
}
}
}
}
代码示例来源:origin: org.apache.maven/maven-project
Reporting reporting = model.getReporting();
if ( reporting != null )
代码示例来源:origin: apache/maven
Reporting reporting = model.getReporting();
代码示例来源:origin: apache/maven
Reporting reporting = model.getReporting();
代码示例来源:origin: apache/maven
Reporting reporting = model.getReporting();
代码示例来源:origin: apache/maven
if ( model.getReporting() != null )
writeReporting( (Reporting) model.getReporting(), "reporting", serializer );
代码示例来源:origin: apache/maven
Reporting reporting = m.getReporting();
if ( reporting != null )
代码示例来源:origin: apache/maven
@Override
public void convertReporting( Model model, ModelBuildingRequest request, ModelProblemCollector problems )
Reporting reporting = model.getReporting();
代码示例来源:origin: mojohaus/flatten-maven-plugin
@Override
public Reporting get( Model model )
{
return model.getReporting();
}
代码示例来源:origin: takari/polyglot-maven
if ( model.getReporting() != null )
writeReporting( (Reporting) model.getReporting(), "reporting", serializer );
代码示例来源:origin: takari/polyglot-maven
void project(Model model) {
String name = model.getName();
if (name == null) {
name = model.getArtifactId();
}
p.printStartBlock( "project", name, model.getUrl() );
p.println();
p.println( "model_version", model.getModelVersion() );
p.println( "inception_year", model.getInceptionYear() );
id(model);
parent(model.getParent());
p.println("packaging", model.getPackaging());
p.println();
description(model.getDescription());
developers( model.getDevelopers() );
issueManagement( model.getIssueManagement() );
mailingLists( model.getMailingLists() );
repositories( toRepositoryArray( model.getRepositories() ) );
pluginRepositories( toRepositoryArray( model.getPluginRepositories() ) );
sourceControl( model.getScm() );
distribution( model.getDistributionManagement() );
properties( model.getProperties() );
dependencies( model.getDependencies() );
modules( model.getModules() );
managements( model.getDependencyManagement(), model.getBuild() );
build( model.getBuild(), model.getBuild() );
profiles( model.getProfiles() );
reporting( model.getReporting() );
p.printEndBlock();
}
内容来源于网络,如有侵权,请联系作者删除!