continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r280873 - in /maven/continuum/trunk/continuum-core/src/main: java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java resources/org/apache/maven/continuum/notification/mail/templates/common.vm
Date Wed, 14 Sep 2005 15:15:20 GMT
Author: evenisse
Date: Wed Sep 14 08:15:11 2005
New Revision: 280873

URL: http://svn.apache.org/viewcvs?rev=280873&view=rev
Log:
[CONTINUUM-311] Add JDK and OS name to the build result mail.
I add them in build result screen later.

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
    maven/continuum/trunk/continuum-core/src/main/resources/org/apache/maven/continuum/notification/mail/templates/common.vm

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java?rev=280873&r1=280872&r2=280873&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Wed Sep 14 08:15:11 2005
@@ -257,6 +257,20 @@
 
                 context.put( "buildHost", buildHost );
 
+                String osName = System.getProperty( "os.name" );
+
+                String osPatchLevel = System.getProperty( "sun.os.patch.level" );
+
+                if ( osPatchLevel != null )
+                {
+                    osName = osName + "(" + osPatchLevel + ")";
+                }
+
+                context.put( "osName", osName );
+
+                context.put( "javaVersion", System.getProperty( "java.version" ) + "("
+                    + System.getProperty( "java.vendor" ) + ")" );
+
                 // ----------------------------------------------------------------------
                 // Generate
                 // ----------------------------------------------------------------------

Modified: maven/continuum/trunk/continuum-core/src/main/resources/org/apache/maven/continuum/notification/mail/templates/common.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/resources/org/apache/maven/continuum/notification/mail/templates/common.vm?rev=280873&r1=280872&r2=280873&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/resources/org/apache/maven/continuum/notification/mail/templates/common.vm
(original)
+++ maven/continuum/trunk/continuum-core/src/main/resources/org/apache/maven/continuum/notification/mail/templates/common.vm
Wed Sep 14 08:15:11 2005
@@ -27,6 +27,8 @@
   Build Trigger: $formatter.formatTrigger( $build.trigger )
   Exit code: $build.exitCode
   Building machine hostname: $buildHost
+  Operating system : $osName
+  Java version : $javaVersion
 
 #if ( $build.scmResult )
 Changes



Mime
View raw message