本文整理了Java中org.apache.maven.model.Reporting.getOutputDirectory
方法的一些代码示例,展示了Reporting.getOutputDirectory
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reporting.getOutputDirectory
方法的具体详情如下:
包路径:org.apache.maven.model.Reporting
类名称:Reporting
方法名:getOutputDirectory
[英]Get 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
if ( StringUtils.isEmpty( modelReporting.getOutputDirectory() ) )
modelReporting.setOutputDirectory( profileReporting.getOutputDirectory() );
代码示例来源: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
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
if ( reporting.getOutputDirectory() != null )
serializer.startTag( NAMESPACE, "outputDirectory" ).text( reporting.getOutputDirectory() ).endTag( NAMESPACE, "outputDirectory" );
代码示例来源:origin: org.apache.maven/maven-project
reporting.setOutputDirectory( alignToBaseDirectory( reporting.getOutputDirectory(), basedir ) );
代码示例来源:origin: org.apache.maven/maven-project
reporting.setOutputDirectory( unalignFromBaseDirectory( reporting.getOutputDirectory(), basedir ) );
代码示例来源: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
addDom( configuration, "outputDirectory", reporting.getOutputDirectory() );
代码示例来源:origin: takari/polyglot-maven
if ( reporting.getOutputDirectory() != null )
serializer.attribute( NAMESPACE, "outputDirectory", reporting.getOutputDirectory() );
代码示例来源:origin: org.scala-tools/maven-scala-plugin
public File getReportOutputDirectory() {
if (reportOutputDirectory == null) {
reportOutputDirectory = new File(project.getBasedir(), project.getReporting().getOutputDirectory() + "/" + outputDirectory).getAbsoluteFile();
}
return reportOutputDirectory;
}
代码示例来源:origin: org.apache.maven.plugins/maven-plugin-plugin
/**
* {@inheritDoc}
*/
@Override
protected String getOutputDirectory()
{
// PLUGIN-191: output directory of plugin.html, not *-mojo.xml
return project.getReporting().getOutputDirectory();
}
代码示例来源: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.codehaus.sonar/sonar-batch
@Override
public File getReportOutputDir() {
if (pom != null) {
return resolvePath(pom.getReporting().getOutputDirectory());
}
// emulate Maven report output dir
return new File(getBuildDir(), "site");
}
代码示例来源:origin: org.jvnet.hudson.main/maven-plugin
public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error) throws InterruptedException, IOException {
if(!(mojo.mojo instanceof MavenReport))
return true; // not a maven report
MavenReport report = (MavenReport)mojo.mojo;
String reportPath = report.getReportOutputDirectory().getPath();
String projectReportPath = pom.getReporting().getOutputDirectory();
if(!reportPath.startsWith(projectReportPath)) {
// report is placed outside site. Can't record it.
listener.getLogger().println(Messages.ReportCollector_OutsideSite(reportPath,projectReportPath));
return true;
}
if(action==null)
action = new ReportAction();
// this is the entry point to the report
File top = new File(report.getReportOutputDirectory(),report.getOutputName()+".html");
String relPath = top.getPath().substring(projectReportPath.length());
action.add(new ReportAction.Entry(relPath,report.getName(Locale.getDefault())));
return true;
}
代码示例来源: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)
内容来源于网络,如有侵权,请联系作者删除!