You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ge...@apache.org on 2014/07/18 18:46:46 UTC

[1/2] git commit: Fix broken build: Add Apache snapshots plugin repository

Repository: servicemix
Updated Branches:
  refs/heads/servicemix-5.0.x 79cb16e7b -> eebcef05a


Fix broken build: Add Apache snapshots plugin repository


Project: http://git-wip-us.apache.org/repos/asf/servicemix/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix/commit/50e411f4
Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/50e411f4
Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/50e411f4

Branch: refs/heads/servicemix-5.0.x
Commit: 50e411f4eb02872ed767337f72db32b3718522da
Parents: 79cb16e
Author: Gert Vanthienen <ge...@gmail.com>
Authored: Fri Jul 18 17:37:57 2014 +0200
Committer: Gert Vanthienen <ge...@gmail.com>
Committed: Fri Jul 18 17:42:51 2014 +0200

----------------------------------------------------------------------
 pom.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix/blob/50e411f4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 2dd1767..65d073e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -132,6 +132,20 @@
         <spring.version>3.2.4.RELEASE</spring.version>
         <wss4j.version>1.6.7</wss4j.version>
     </properties>
+    
+    <pluginRepositories>
+        <pluginRepository>
+            <id>apache.snapshots</id>
+            <name>Apache Snapshot Repository</name>
+            <url>http://repository.apache.org/snapshots</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </pluginRepository>
+    </pluginRepositories>
 
     <dependencyManagement>
        <dependencies>


[2/2] git commit: SM-2255: Enforce English locale in Stats report

Posted by ge...@apache.org.
SM-2255: Enforce English locale in Stats report


Project: http://git-wip-us.apache.org/repos/asf/servicemix/repo
Commit: http://git-wip-us.apache.org/repos/asf/servicemix/commit/eebcef05
Tree: http://git-wip-us.apache.org/repos/asf/servicemix/tree/eebcef05
Diff: http://git-wip-us.apache.org/repos/asf/servicemix/diff/eebcef05

Branch: refs/heads/servicemix-5.0.x
Commit: eebcef05a6ce4544e1c5abb0e8681cfd6cf4ee01
Parents: 50e411f
Author: Gert Vanthienen <ge...@gmail.com>
Authored: Fri Jul 18 18:04:50 2014 +0200
Committer: Gert Vanthienen <ge...@gmail.com>
Committed: Fri Jul 18 18:04:50 2014 +0200

----------------------------------------------------------------------
 .../scala/org/apache/servicemix/examples/akka/Stats.scala   | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/servicemix/blob/eebcef05/examples/akka/akka-camel/src/main/scala/org/apache/servicemix/examples/akka/Stats.scala
----------------------------------------------------------------------
diff --git a/examples/akka/akka-camel/src/main/scala/org/apache/servicemix/examples/akka/Stats.scala b/examples/akka/akka-camel/src/main/scala/org/apache/servicemix/examples/akka/Stats.scala
index 453eeee..fb290b0 100644
--- a/examples/akka/akka-camel/src/main/scala/org/apache/servicemix/examples/akka/Stats.scala
+++ b/examples/akka/akka-camel/src/main/scala/org/apache/servicemix/examples/akka/Stats.scala
@@ -24,7 +24,7 @@ import collection.mutable.Map
 import collection.SortedSet
 import org.apache.servicemix.examples.akka.Stats.Metric
 import java.util.concurrent.atomic.AtomicBoolean
-
+import java.util.Locale
 
 /**
  * A statistics engine that generates basic descriptive statistics (count, average and standard deviation) for a
@@ -64,9 +64,10 @@ class Stats extends Actor {
       if (changes.getAndSet(false)) {
         val results = SortedSet(metrics.keys.toArray:_*).map { key =>
           val results = metrics(key)
-          "%s,%d,%.4f,%.4f".format(key, results.getOrElse("count", 0),
-                                   results.getOrElse("avg", Double.NaN),
-                                   results.getOrElse("stddev", Double.NaN))
+          "%s,%d,%.4f,%.4f".formatLocal(Locale.ENGLISH, 
+                                        key, results.getOrElse("count", 0),
+                                        results.getOrElse("avg", Double.NaN),
+                                        results.getOrElse("stddev", Double.NaN))
         }
         sender ! ("key,count,average,stddev" +: results.toSeq).mkString(sys.props("line.separator"))
       }