org.apache.maven.model.Reporting Java Examples

The following examples show how to use org.apache.maven.model.Reporting. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LocationAwareMavenXpp3Writer.java    From netbeans with Apache License 2.0 6 votes vote down vote up
private void writeReporting(Reporting reporting, String tagName, XmlSerializer serializer)
        throws java.io.IOException {
    serializer.startTag(NAMESPACE, tagName);
    flush(serializer);
    StringBuffer b = b(serializer);
    int start = b.length();
    if (reporting.getExcludeDefaults() != null) {
        writeValue(serializer, "excludeDefaults", reporting.getExcludeDefaults(), reporting);
    }
    if (reporting.getOutputDirectory() != null) {
        writeValue(serializer, "outputDirectory", reporting.getOutputDirectory(), reporting);
    }
    if ((reporting.getPlugins() != null) && (reporting.getPlugins().size() > 0)) {
        serializer.startTag(NAMESPACE, "plugins");
        for (Iterator iter = reporting.getPlugins().iterator(); iter.hasNext();) {
            ReportPlugin o = (ReportPlugin) iter.next();
            writeReportPlugin(o, "plugin", serializer);
        }
        serializer.endTag(NAMESPACE, "plugins");
    }
    serializer.endTag(NAMESPACE, tagName).flush();
    logLocation(reporting, "", start, b.length());
}
 
Example #2
Source File: PomProperty.java    From flatten-maven-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public Reporting get( Model model )
{
    return model.getReporting();
}
 
Example #3
Source File: PomProperty.java    From flatten-maven-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public void set( Model model, Reporting value )
{
    model.setReporting( value );
}