本文整理了Java中org.apache.maven.model.Reporting.isExcludeDefaults
方法的一些代码示例,展示了Reporting.isExcludeDefaults
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reporting.isExcludeDefaults
方法的具体详情如下:
包路径:org.apache.maven.model.Reporting
类名称:Reporting
方法名:isExcludeDefaults
暂无
代码示例来源: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: apache/maven
reportPlugins.addChild( reportPlugin );
if ( !reporting.isExcludeDefaults() && !hasMavenProjectInfoReportsPlugin
&& "org.apache.maven.plugins".equals( plugin.getGroupId() )
&& "maven-project-info-reports-plugin".equals( plugin.getArtifactId() ) )
if ( !reporting.isExcludeDefaults() && !hasMavenProjectInfoReportsPlugin )
代码示例来源:origin: org.apache.maven.plugins/maven-site-plugin
/**
* Get the report plugins from reporting section, adding if necessary (ni.e. not excluded)
* default reports (i.e. maven-project-info-reports)
*
* @return the effective list of reports
* @since 3.7.1
*/
private ReportPlugin[] getReportingPlugins()
{
List<ReportPlugin> reportingPlugins = reporting.getPlugins();
// MSITE-806: add default report plugin like done in maven-model-builder DefaultReportingConverter
boolean hasMavenProjectInfoReportsPlugin = false;
for ( ReportPlugin plugin : reportingPlugins )
{
if ( "org.apache.maven.plugins".equals( plugin.getGroupId() )
&& "maven-project-info-reports-plugin".equals( plugin.getArtifactId() ) )
{
hasMavenProjectInfoReportsPlugin = true;
break;
}
}
if ( !reporting.isExcludeDefaults() && !hasMavenProjectInfoReportsPlugin )
{
ReportPlugin mpir = new ReportPlugin();
mpir.setArtifactId( "maven-project-info-reports-plugin" );
reportingPlugins.add( mpir );
}
return reportingPlugins.toArray( new ReportPlugin[reportingPlugins.size()] );
}
代码示例来源:origin: org.codehaus.mevenide/nb-mvn-embedder
/**
* Method updateReporting
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateReporting(Reporting 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, "excludeDefaults", value.isExcludeDefaults() == false ? null : String.valueOf( value.isExcludeDefaults() ), "false");
findAndReplaceSimpleElement(innerCount, root, "outputDirectory", value.getOutputDirectory(), null);
iterateReportPlugin(innerCount, root, value.getPlugins(),"plugins","plugin");
}
} //-- void updateReporting(Reporting, String, Counter, Element)
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder
/**
* Method updateReporting.
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateReporting(Reporting 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, "excludeDefaults", value.isExcludeDefaults() == false ? null : String.valueOf( value.isExcludeDefaults() ), "false");
findAndReplaceSimpleElement(innerCount, root, "outputDirectory", value.getOutputDirectory(), null);
iterateReportPlugin(innerCount, root, value.getPlugins(),"plugins","plugin");
}
} //-- void updateReporting(Reporting, String, Counter, Element)
代码示例来源:origin: apache/maven-archetype
/**
* Method updateReporting.
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateReporting( Reporting 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, "excludeDefaults", ( value.isExcludeDefaults() == false )
? null
: String.valueOf( value.isExcludeDefaults() ), "false" );
findAndReplaceSimpleElement( innerCount, root, "outputDirectory", value.getOutputDirectory(), null );
iterateReportPlugin( innerCount, root, value.getPlugins(), "plugins", "plugin" );
}
} // -- void updateReporting(Reporting, String, Counter, Element)
代码示例来源:origin: org.apache.maven.plugins/maven-shade-plugin
/**
* Method updateReporting
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateReporting( Reporting 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, "excludeDefaults", !value.isExcludeDefaults() ? null
: String.valueOf( value.isExcludeDefaults() ), "false" );
findAndReplaceSimpleElement( innerCount, root, "outputDirectory", value.getOutputDirectory(), null );
iterateReportPlugin( innerCount, root, value.getPlugins(), "plugins", "plugin" );
}
} // -- void updateReporting(Reporting, String, Counter, Element)
代码示例来源:origin: org.apache.felix/maven-bundle-plugin
/**
* Method updateReporting
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateReporting( Reporting 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, "excludeDefaults", !value.isExcludeDefaults() ? null
: String.valueOf( value.isExcludeDefaults() ), "false" );
findAndReplaceSimpleElement( innerCount, root, "outputDirectory", value.getOutputDirectory(), null );
iterateReportPlugin( innerCount, root, value.getPlugins(), "plugins", "plugin" );
}
} // -- void updateReporting(Reporting, String, Counter, Element)
代码示例来源:origin: org.jboss.forge.addon/maven-impl
/**
* Method updateReporting.
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateReporting(Reporting 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, "excludeDefaults",
(value.isExcludeDefaults() == false) ? null : String.valueOf(value.isExcludeDefaults()), "false");
findAndReplaceSimpleElement(innerCount, root, "outputDirectory", value.getOutputDirectory(), null);
iterateReportPlugin(innerCount, root, value.getPlugins(), "plugins", "plugin");
}
} // -- void updateReporting(Reporting, String, Counter, Element)
代码示例来源:origin: org.sonatype.maven.archetype/archetype-common
root,
"excludeDefaults",
( value.isExcludeDefaults() == false )
? null
: String.valueOf( value.isExcludeDefaults() ),
"false"
);
代码示例来源:origin: org.apache.maven/maven-model-builder
reportPlugins.addChild( reportPlugin );
if ( !reporting.isExcludeDefaults() && !hasMavenProjectInfoReportsPlugin
&& "org.apache.maven.plugins".equals( plugin.getGroupId() )
&& "maven-project-info-reports-plugin".equals( plugin.getArtifactId() ) )
if ( !reporting.isExcludeDefaults() && !hasMavenProjectInfoReportsPlugin )
内容来源于网络,如有侵权,请联系作者删除!