Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2EA56200C32 for ; Thu, 9 Mar 2017 22:19:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2D484160B84; Thu, 9 Mar 2017 21:19:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C19EB160B9D for ; Thu, 9 Mar 2017 22:19:55 +0100 (CET) Received: (qmail 27483 invoked by uid 500); 9 Mar 2017 21:19:54 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 26600 invoked by uid 99); 9 Mar 2017 21:19:54 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 21:19:54 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 832EF3A4764 for ; Thu, 9 Mar 2017 21:19:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1008015 [21/31] - in /websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST: ./ css/ images/ images/logos/ images/profiles/ img/ js/ xref-test/ xref-test/org/ xref-test/org/apache/ xref-test/org/apache/fe... Date: Thu, 09 Mar 2017 21:19:50 -0000 To: commits@felix.apache.org From: sseifert@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170309211952.832EF3A4764@svn01-us-west.apache.org> archived-at: Thu, 09 Mar 2017 21:19:58 -0000 Added: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselinePlugin.html ============================================================================== --- websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselinePlugin.html (added) +++ websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselinePlugin.html Thu Mar 9 21:19:49 2017 @@ -0,0 +1,303 @@ + + + +BaselinePlugin xref + + + +
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   *   http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.felix.bundleplugin.baseline;
+20  
+21  import java.io.File;
+22  import java.io.FileWriter;
+23  import java.io.IOException;
+24  import java.util.Map;
+25  import java.util.Map.Entry;
+26  
+27  import org.apache.maven.plugins.annotations.LifecyclePhase;
+28  import org.apache.maven.plugins.annotations.Mojo;
+29  import org.apache.maven.plugins.annotations.Parameter;
+30  import org.apache.maven.plugins.annotations.ResolutionScope;
+31  import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
+32  import org.codehaus.plexus.util.xml.XMLWriter;
+33  
+34  import aQute.bnd.version.Version;
+35  
+36  /**
+37   * BND Baseline check between two bundles.
+38   * @since 2.4.1
+39   */
+40  @Mojo( name = "baseline", threadSafe = true,
+41         requiresDependencyResolution = ResolutionScope.TEST,
+42         defaultPhase = LifecyclePhase.VERIFY)
+43  public final class BaselinePlugin
+44      extends AbstractBaselinePlugin
+45  {
+46  
+47      private static final String TABLE_PATTERN = "%s %-50s %-10s %-10s %-10s %-10s %-10s";
+48  
+49      /**
+50       * An XML output file to render to <code>${project.build.directory}/baseline.xml</code>.
+51       */
+52      @Parameter(defaultValue="${project.build.directory}/baseline.xml")
+53      private File xmlOutputFile;
+54  
+55      /**
+56       * Whether to log the results to the console or not, true by default.
+57       */
+58      @Parameter(defaultValue="true", property="logResults" )
+59      private boolean logResults;
+60  
+61      private static final class Context {
+62          public FileWriter writer;
+63          public XMLWriter xmlWriter;
+64      }
+65  
+66      @Override
+67      protected Object init(final Object noContext)
+68      {
+69          if ( xmlOutputFile != null )
+70          {
+71              xmlOutputFile.getParentFile().mkdirs();
+72              try
+73              {
+74                  final Context ctx = new Context();
+75                  ctx.writer = new FileWriter( xmlOutputFile );
+76                  ctx.xmlWriter = new PrettyPrintXMLWriter( ctx.writer );
+77                  return ctx;
+78              }
+79              catch ( IOException e )
+80              {
+81                  getLog().warn( "No XML report will be produced, cannot write data to " + xmlOutputFile, e );
+82              }
+83          }
+84          return null;
+85      }
+86  
+87      @Override
+88      protected void close(final Object writer)
+89      {
+90          if ( writer != null )
+91          {
+92              try {
+93  
+94                  ((Context)writer).writer.close();
+95              }
+96              catch (IOException e)
+97              {
+98                  // ignore
+99              }
+100         }
+101     }
+102     @Override
+103     protected void startBaseline( Object context,
+104                                   String generationDate,
+105                                   String bundleName,
+106                                   String currentVersion,
+107                                   String previousVersion )
+108     {
+109         final XMLWriter xmlWriter = context == null ? null : ((Context)context).xmlWriter;
+110         if ( isLoggingResults() )
+111         {
+112             log( "Baseline Report - Generated by Apache Felix Maven Bundle Plugin on %s based on Bnd - see http://www.aqute.biz/Bnd/Bnd",
+113                  generationDate );
+114             log( "Comparing bundle %s version %s to version %s", bundleName, currentVersion, previousVersion );
+115             log( "" );
+116             log( TABLE_PATTERN,
+117                  " ",
+118                  "PACKAGE_NAME",
+119                  "DELTA",
+120                  "CUR_VER",
+121                  "BASE_VER",
+122                  "REC_VER",
+123                  "WARNINGS",
+124                  "ATTRIBUTES" );
+125             log( TABLE_PATTERN,
+126                  "=",
+127                  "==================================================",
+128                  "==========",
+129                  "==========",
+130                  "==========",
+131                  "==========",
+132                  "==========",
+133                  "==========" );
+134         }
+135 
+136         if ( xmlWriter != null )
+137         {
+138             xmlWriter.startElement( "baseline" );
+139             xmlWriter.addAttribute( "version", "1.0.0" );
+140             xmlWriter.addAttribute( "vendor", "The Apache Software Foundation" );
+141             xmlWriter.addAttribute( "vendorURL", "http://www.apache.org/" );
+142             xmlWriter.addAttribute( "generator", "Apache Felix Maven Bundle Plugin" );
+143             xmlWriter.addAttribute( "generatorURL", "http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html" );
+144             xmlWriter.addAttribute( "analyzer", "Bnd" );
+145             xmlWriter.addAttribute( "analyzerURL", "http://www.aqute.biz/Bnd/Bnd" );
+146             xmlWriter.addAttribute( "generatedOn", generationDate );
+147             xmlWriter.addAttribute( "bundleName", bundleName );
+148             xmlWriter.addAttribute( "currentVersion", currentVersion );
+149             xmlWriter.addAttribute( "previousVersion", previousVersion );
+150         }
+151     }
+152 
+153     @Override
+154     protected void startPackage( Object context,
+155                                  boolean mismatch,
+156                                  String name,
+157                                  String shortDelta,
+158                                  String delta,
+159                                  Version newerVersion,
+160                                  Version olderVersion,
+161                                  Version suggestedVersion,
+162                                  DiffMessage diffMessage,
+163                                  Map<String,String> attributes )
+164     {
+165         final XMLWriter xmlWriter = context == null ? null : ((Context)context).xmlWriter;
+166         if ( isLoggingResults() )
+167         {
+168             log( TABLE_PATTERN,
+169                  mismatch ? '*' : shortDelta,
+170                  name,
+171                  delta,
+172                  newerVersion,
+173                  olderVersion,
+174                  suggestedVersion,
+175                  diffMessage != null ? diffMessage : '-',
+176                  attributes );
+177         }
+178 
+179         if ( xmlWriter != null )
+180         {
+181             xmlWriter.startElement( "package" );
+182             xmlWriter.addAttribute( "name", name );
+183             xmlWriter.addAttribute( "delta", delta );
+184             simpleElement( xmlWriter, "mismatch", String.valueOf( mismatch ) );
+185             simpleElement( xmlWriter, "newerVersion", newerVersion.toString() );
+186             simpleElement( xmlWriter, "olderVersion", olderVersion.toString() );
+187             if ( suggestedVersion != null )
+188             {
+189                 simpleElement( xmlWriter, "suggestedVersion", suggestedVersion.toString() );
+190             }
+191 
+192             if ( diffMessage != null )
+193             {
+194                 simpleElement( xmlWriter, diffMessage.getType().name(), diffMessage.getMessage() );
+195             }
+196 
+197             xmlWriter.startElement( "attributes" );
+198             if (attributes != null)
+199             {
+200                 for (Entry<String, String> attribute : attributes.entrySet())
+201                 {
+202                     String attributeName = attribute.getKey();
+203                     if (':' == attributeName.charAt(attributeName.length() - 1))
+204                     {
+205                         attributeName = attributeName.substring(0, attributeName.length() - 1);
+206                     }
+207                     String attributeValue = attribute.getValue();
+208 
+209                     xmlWriter.startElement(attributeName);
+210                     xmlWriter.writeText(attributeValue);
+211                     xmlWriter.endElement();
+212                 }
+213             }
+214             xmlWriter.endElement();
+215         }
+216     }
+217 
+218     @Override
+219     protected void startDiff( Object context, int depth, String type, String name, String delta, String shortDelta )
+220     {
+221         final XMLWriter xmlWriter = context == null ? null : ((Context)context).xmlWriter;
+222         if ( isLoggingResults() )
+223         {
+224             log( "%-" + (depth * 4) + "s %s %s %s",
+225                  "",
+226                  shortDelta,
+227                  type,
+228                  name );
+229         }
+230 
+231         if ( xmlWriter != null )
+232         {
+233             xmlWriter.startElement( type );
+234             xmlWriter.addAttribute( "name", name );
+235             xmlWriter.addAttribute( "delta", delta );
+236         }
+237     }
+238 
+239     @Override
+240     protected void endDiff( Object context, int depth )
+241     {
+242         final XMLWriter xmlWriter = context == null ? null : ((Context)context).xmlWriter;
+243         if ( xmlWriter != null )
+244         {
+245             xmlWriter.endElement();
+246         }
+247     }
+248 
+249     @Override
+250     protected void endPackage(Object context)
+251     {
+252         final XMLWriter xmlWriter = context == null ? null : ((Context)context).xmlWriter;
+253         if ( isLoggingResults() )
+254         {
+255             log( "-----------------------------------------------------------------------------------------------------------" );
+256         }
+257 
+258         if ( xmlWriter != null )
+259         {
+260             xmlWriter.endElement();
+261         }
+262     }
+263 
+264     @Override
+265     protected void endBaseline(Object context)
+266     {
+267         final XMLWriter xmlWriter = context == null ? null : ((Context)context).xmlWriter;
+268         if ( xmlWriter != null )
+269         {
+270             xmlWriter.endElement();
+271         }
+272     }
+273 
+274     private boolean isLoggingResults()
+275     {
+276         return logResults && getLog().isInfoEnabled();
+277     }
+278 
+279     private void log( String format, Object...args )
+280     {
+281         getLog().info( String.format( format, args ) );
+282     }
+283 
+284     private void simpleElement( XMLWriter xmlWriter, String name, String value )
+285     {
+286         xmlWriter.startElement( name );
+287         xmlWriter.writeText( value );
+288         xmlWriter.endElement();
+289     }
+290 }
+
+
+ + + \ No newline at end of file Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselinePlugin.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselinePlugin.html ------------------------------------------------------------------------------ --- svn:keywords (added) +++ svn:keywords Thu Mar 9 21:19:49 2017 @@ -0,0 +1 @@ +LastChangedDate LastChangedRevision LastChangedBy HeadURL Id Author Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselinePlugin.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselineReport.html ============================================================================== --- websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselineReport.html (added) +++ websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselineReport.html Thu Mar 9 21:19:49 2017 @@ -0,0 +1,397 @@ + + + +BaselineReport xref + + + +
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   *   http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.felix.bundleplugin.baseline;
+20  
+21  import java.io.File;
+22  import java.io.IOException;
+23  import java.io.InputStream;
+24  import java.io.OutputStream;
+25  import java.util.Locale;
+26  import java.util.Map;
+27  import java.util.ResourceBundle;
+28  
+29  import org.apache.maven.doxia.sink.Sink;
+30  import org.apache.maven.plugins.annotations.LifecyclePhase;
+31  import org.apache.maven.plugins.annotations.Mojo;
+32  import org.apache.maven.plugins.annotations.Parameter;
+33  import org.apache.maven.reporting.MavenReport;
+34  import org.apache.maven.reporting.MavenReportException;
+35  import org.codehaus.plexus.util.IOUtil;
+36  
+37  import aQute.bnd.version.Version;
+38  
+39  /**
+40   * BND Baseline report.
+41   *
+42   * @since 2.4.1
+43   */
+44  @Mojo( name = "baseline-report", threadSafe = true,
+45         defaultPhase = LifecyclePhase.SITE)
+46  public final class BaselineReport
+47      extends AbstractBaselinePlugin
+48      implements MavenReport
+49  {
+50  
+51      /**
+52       * Specifies the directory where the report will be generated.
+53       */
+54      @Parameter(defaultValue = "${project.reporting.outputDirectory}")
+55      private File outputDirectory;
+56  
+57      private static final class Context {
+58          public Sink sink;
+59  
+60          public Locale locale;
+61  
+62          public int currentDepth = 0;
+63      }
+64  
+65      // AbstractBaselinePlugin events
+66  
+67      @Override
+68      protected Object init(final Object context)
+69      {
+70          failOnError = false;
+71          failOnWarning = false;
+72  
+73          final File baselineImagesDirectory = new File( outputDirectory, "images/baseline" );
+74          baselineImagesDirectory.mkdirs();
+75  
+76          for ( String resourceName : new String[]{ "access.gif",
+77                                                    "annotated.gif",
+78                                                    "annotation.gif",
+79                                                    "bundle.gif",
+80                                                    "class.gif",
+81                                                    "constant.gif",
+82                                                    "enum.gif",
+83                                                    "error.gif",
+84                                                    "extends.gif",
+85                                                    "field.gif",
+86                                                    "implements.gif",
+87                                                    "info.gif",
+88                                                    "interface.gif",
+89                                                    "method.gif",
+90                                                    "package.gif",
+91                                                    "resource.gif",
+92                                                    "return.gif",
+93                                                    "version.gif",
+94                                                    "warning.gif" } )
+95          {
+96              InputStream source = getClass().getResourceAsStream( resourceName );
+97              OutputStream target = null;
+98              File targetFile = new File( baselineImagesDirectory, resourceName );
+99  
+100             try
+101             {
+102                 target = buildContext.newFileOutputStream( targetFile );
+103                 IOUtil.copy( source, target );
+104             }
+105             catch ( IOException e )
+106             {
+107                 getLog().warn( "Impossible to copy " + resourceName + " image, maybe the site won't be properly rendered." );
+108             }
+109             finally
+110             {
+111                 IOUtil.close( source );
+112                 IOUtil.close( target );
+113             }
+114         }
+115         return context;
+116     }
+117 
+118     @Override
+119     protected void close(final Object context)
+120     {
+121         // nothing to do
+122     }
+123 
+124     @Override
+125     protected void startBaseline( final Object context, String generationDate, String bundleName,
+126             String currentVersion, String previousVersion )
+127     {
+128         final Context ctx = (Context)context;
+129         final Sink sink = ctx.sink;
+130 
+131         sink.head();
+132         sink.title();
+133 
+134         String title = getBundle( ctx.locale ).getString( "report.baseline.title" );
+135         sink.text( title );
+136         sink.title_();
+137         sink.head_();
+138 
+139         sink.body();
+140 
+141         sink.section1();
+142         sink.sectionTitle1();
+143         sink.text( title );
+144         sink.sectionTitle1_();
+145 
+146         sink.paragraph();
+147         sink.text( getBundle( ctx.locale ).getString( "report.baseline.bndlink" ) + " " );
+148         sink.link( "http://www.aqute.biz/Bnd/Bnd" );
+149         sink.text( "Bnd" );
+150         sink.link_();
+151         sink.text( "." );
+152         sink.paragraph_();
+153 
+154         sink.paragraph();
+155         sink.text( getBundle( ctx.locale ).getString( "report.baseline.bundle" ) + " " );
+156         sink.figure();
+157         sink.figureGraphics( "images/baseline/bundle.gif" );
+158         sink.figure_();
+159         sink.text( " " );
+160         sink.bold();
+161         sink.text( bundleName );
+162         sink.bold_();
+163         sink.listItem_();
+164 
+165         sink.paragraph();
+166         sink.text( getBundle( ctx.locale ).getString( "report.baseline.version.current" ) + " " );
+167         sink.bold();
+168         sink.text( currentVersion );
+169         sink.bold_();
+170         sink.paragraph_();
+171 
+172         sink.paragraph();
+173         sink.text( getBundle( ctx.locale ).getString( "report.baseline.version.comparison" ) + " " );
+174         sink.bold();
+175         sink.text( comparisonVersion );
+176         sink.bold_();
+177         sink.paragraph_();
+178 
+179         sink.paragraph();
+180         sink.text( getBundle( ctx.locale ).getString( "report.baseline.generationdate" ) + " " );
+181         sink.bold();
+182         sink.text( generationDate );
+183         sink.bold_();
+184         sink.paragraph_();
+185 
+186         sink.section1_();
+187     }
+188 
+189     @Override
+190     protected void startPackage( final Object context,
+191                                  boolean mismatch,
+192                                  String packageName,
+193                                  String shortDelta,
+194                                  String delta,
+195                                  Version newerVersion,
+196                                  Version olderVersion,
+197                                  Version suggestedVersion,
+198                                  DiffMessage diffMessage,
+199                                  Map<String,String> attributes )
+200     {
+201         final Context ctx = (Context)context;
+202         final Sink sink = ctx.sink;
+203 
+204         sink.list();
+205 
+206         sink.listItem();
+207 
+208         sink.figure();
+209         sink.figureGraphics( "./images/baseline/package.gif" );
+210         sink.figure_();
+211         sink.text( " " );
+212         sink.monospaced();
+213         sink.text( packageName );
+214         sink.monospaced_();
+215 
+216         if ( diffMessage != null )
+217         {
+218             sink.text( " " );
+219             sink.figure();
+220             sink.figureGraphics( "./images/baseline/" + diffMessage.getType().name() + ".gif" );
+221             sink.figure_();
+222             sink.text( " " );
+223             sink.italic();
+224             sink.text( diffMessage.getMessage() );
+225             sink.italic_();
+226             sink.text( " (newer version: " );
+227             sink.monospaced();
+228             sink.text( newerVersion.toString() );
+229             sink.monospaced_();
+230             sink.text( ", older version: " );
+231             sink.monospaced();
+232             sink.text( olderVersion.toString() );
+233             if ( suggestedVersion != null )
+234             {
+235                 sink.monospaced_();
+236                 sink.text( ", suggested version: " );
+237                 sink.monospaced();
+238                 sink.text( suggestedVersion.toString() );
+239             }
+240             sink.monospaced_();
+241             sink.text( ")" );
+242         }
+243     }
+244 
+245     @Override
+246     protected void startDiff( final Object context,
+247                               int depth,
+248                               String type,
+249                               String name,
+250                               String delta,
+251                               String shortDelta )
+252     {
+253         final Context ctx = (Context)context;
+254         final Sink sink = ctx.sink;
+255 
+256         if ( ctx.currentDepth < depth )
+257         {
+258             sink.list();
+259         }
+260 
+261         ctx.currentDepth = depth;
+262 
+263         sink.listItem();
+264         sink.figure();
+265         sink.figureGraphics( "images/baseline/" + type + ".gif" );
+266         sink.figure_();
+267         sink.text( " " );
+268 
+269         sink.monospaced();
+270         sink.text( name );
+271         sink.monospaced_();
+272 
+273         sink.text( " " );
+274 
+275         sink.italic();
+276         sink.text( delta );
+277         sink.italic_();
+278     }
+279 
+280     @Override
+281     protected void endDiff( final Object context, int depth )
+282     {
+283         final Context ctx = (Context)context;
+284         final Sink sink = ctx.sink;
+285 
+286         sink.listItem_();
+287 
+288         if ( ctx.currentDepth > depth )
+289         {
+290             sink.list_();
+291         }
+292 
+293         ctx.currentDepth = depth;
+294     }
+295 
+296     @Override
+297     protected void endPackage(final Object context)
+298     {
+299         final Context ctx = (Context)context;
+300         final Sink sink = ctx.sink;
+301         if ( ctx.currentDepth > 0 )
+302         {
+303             sink.list_();
+304             ctx.currentDepth = 0;
+305         }
+306 
+307         sink.listItem_();
+308         sink.list_();
+309     }
+310 
+311     @Override
+312     protected void endBaseline(final Object context)
+313     {
+314         final Context ctx = (Context)context;
+315         ctx.sink.body_();
+316         ctx.sink.flush();
+317         ctx.sink.close();
+318     }
+319 
+320     // MavenReport methods
+321 
+322     public boolean canGenerateReport()
+323     {
+324         return !skip && outputDirectory != null;
+325     }
+326 
+327     public void generate( @SuppressWarnings( "deprecation" ) org.codehaus.doxia.sink.Sink sink, Locale locale )
+328         throws MavenReportException
+329     {
+330         final Context ctx = new Context();
+331         ctx.sink = sink;
+332         ctx.locale = locale;
+333 
+334         try
+335         {
+336             execute(ctx);
+337         }
+338         catch ( Exception e )
+339         {
+340             getLog().warn( "An error occurred while producing the report page, see nested exceptions", e );
+341         }
+342     }
+343 
+344     public String getCategoryName()
+345     {
+346         return MavenReport.CATEGORY_PROJECT_REPORTS;
+347     }
+348 
+349     public String getDescription( Locale locale )
+350     {
+351         return getBundle( locale ).getString( "report.baseline.description" );
+352     }
+353 
+354     public String getName( Locale locale )
+355     {
+356         return getBundle( locale ).getString( "report.baseline.name" );
+357     }
+358 
+359     private ResourceBundle getBundle( Locale locale )
+360     {
+361         return ResourceBundle.getBundle( "baseline-report", locale, getClass().getClassLoader() );
+362     }
+363 
+364     public String getOutputName()
+365     {
+366         return "baseline-report";
+367     }
+368 
+369     public File getReportOutputDirectory()
+370     {
+371         return outputDirectory;
+372     }
+373 
+374     public boolean isExternalReport()
+375     {
+376         return false;
+377     }
+378 
+379     public void setReportOutputDirectory( File outputDirectory )
+380     {
+381         this.outputDirectory = outputDirectory;
+382     }
+383 
+384 }
+
+
+ + + \ No newline at end of file Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselineReport.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselineReport.html ------------------------------------------------------------------------------ --- svn:keywords (added) +++ svn:keywords Thu Mar 9 21:19:49 2017 @@ -0,0 +1 @@ +LastChangedDate LastChangedRevision LastChangedBy HeadURL Id Author Propchange: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/BaselineReport.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/DiffMessage.html ============================================================================== --- websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/DiffMessage.html (added) +++ websites/production/felix/content/components/bundle-plugin-archives/bundle-plugin-LATEST/xref/org/apache/felix/bundleplugin/baseline/DiffMessage.html Thu Mar 9 21:19:49 2017 @@ -0,0 +1,65 @@ + + + +DiffMessage xref + + + +
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   *   http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.felix.bundleplugin.baseline;
+20  
+21  final class DiffMessage
+22  {
+23  
+24      public enum Type { error, warning, info };
+25  
+26      private final String message;
+27  
+28      private final Type type;
+29  
+30      public DiffMessage( String message, Type type )
+31      {
+32          this.message = message;
+33          this.type = type;
+34      }
+35  
+36      public String getMessage()
+37      {
+38          return message;
+39      }
+40  
+41      public Type getType()
+42      {
+43          return type;
+44      }
+45  
+46      @Override
+47      public String toString()
+48      {
+49          return message;
+50      }
+51  
+52  }
+
+
+ + + \ No newline at end of file