maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1205604 - in /maven/surefire/trunk/maven-surefire-report-plugin/src/main: java/org/apache/maven/plugins/surefire/report/FailsafeReportMojo.java resources/surefire-report.properties resources/surefire-report_de.properties
Date Wed, 23 Nov 2011 21:17:55 GMT
Author: krosenvold
Date: Wed Nov 23 21:17:54 2011
New Revision: 1205604

URL: http://svn.apache.org/viewvc?rev=1205604&view=rev
Log:
[SUREFIRE-777] Wrong default name for Failsafe Report

Patch submitted by Karl Heinz Marbaise, applied unmodified

Modified:
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeReportMojo.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report.properties
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report_de.properties

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeReportMojo.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeReportMojo.java?rev=1205604&r1=1205603&r2=1205604&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeReportMojo.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/FailsafeReportMojo.java
Wed Nov 23 21:17:54 2011
@@ -19,9 +19,10 @@ package org.apache.maven.plugins.surefir
  * under the License.
  */
 
-import org.apache.maven.project.MavenProject;
-
 import java.io.File;
+import java.util.Locale;
+import java.util.ResourceBundle;
+import org.apache.maven.project.MavenProject;
 
 
 /**
@@ -87,4 +88,30 @@ public class FailsafeReportMojo
     {
         return alwaysGenerateFailsafeReport;
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    public String getName( Locale locale )
+    {
+        return getBundle( locale ).getString( "report.failsafe.name" );
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public String getDescription( Locale locale )
+    {
+        return getBundle( locale ).getString( "report.failsafe.description" );
+    }
+    
+
+    /*
+     * This is currently a copy of the getBundle() method of the AbstractSurefireReportMojo
class,
+     * cause the failsafe report only different in two names for the bundles.
+     */
+    private ResourceBundle getBundle( Locale locale )
+    {
+        return ResourceBundle.getBundle( "surefire-report", locale, this.getClass().getClassLoader()
);
+    }
 }

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report.properties
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report.properties?rev=1205604&r1=1205603&r2=1205604&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report.properties
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report.properties
Wed Nov 23 21:17:54 2011
@@ -35,3 +35,5 @@ report.surefire.label.failuredetails=Fai
 report.surefire.text.note1=Note: failures are anticipated and checked for with assertions
while errors are unanticipated.
 report.surefire.text.note2=Note: package statistics are not computed recursively, they only
sum up all of its testsuites numbers.
 
+report.failsafe.name=Failsafe Report
+report.failsafe.description=Report on the integration test results of the project.

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report_de.properties
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report_de.properties?rev=1205604&r1=1205603&r2=1205604&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report_de.properties
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/resources/surefire-report_de.properties
Wed Nov 23 21:17:54 2011
@@ -34,3 +34,6 @@ report.surefire.label.time =Zeit
 report.surefire.name=Surefire Bericht
 report.surefire.text.note1 =Hinweis: Fehlschl\u00E4ge werden erwartet und durch Behauptungen
\u00FCberpr\u00FCft w\u00E4hrend Fehler unerwartet sind.
 report.surefire.text.note2 =Hinweis: Die Paketstatistiken werden nicht rekursiv berechnet,
es werden lediglich die Ergebnisse aller enthaltenen Tests aufsummiert.
+
+report.failsafe.name=Failsafe Bericht
+report.failsafe.description=Bericht \u00FCber die Integrationstestresultate des Projekts.



Mime
View raw message