Modified: 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ftp/FtpServerBean.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ftp/FtpServerBean.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ftp/FtpServerBean.java
 (original)
+++ 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ftp/FtpServerBean.java
 Mon Oct  1 13:51:26 2012
@@ -47,7 +47,6 @@ public final class FtpServerBean {
 
     public static void startServer() throws Exception {
         initPort();
-        System.out.println("Starting FTP server on port " + port);
         LOG.info("Starting FTP server on port " + port);
         initFtpServer();
         ftpServer.start();
@@ -58,7 +57,6 @@ public final class FtpServerBean {
     }
 
     public static void shutdownServer() throws Exception {
-        System.out.println("Shutting down FTP server");
         LOG.info("Shutting down FTP server with port " + port);
         try {
             ftpServer.stop();

Modified: 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/Order.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/Order.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/Order.java
 (original)
+++ 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/Order.java
 Mon Oct  1 13:51:26 2012
@@ -24,8 +24,13 @@ import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.xml.bind.annotation.XmlRootElement;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 @XmlRootElement(name = "Order")
 public class Order {
+
+    private static final Logger LOG = LoggerFactory.getLogger(Order.class);
     private long id;
     private String description;
     private Map<Long, Product> products = new HashMap<Long, Product>();
@@ -54,7 +59,7 @@ public class Order {
     @Path("products/{productId}/")
     @Produces("application/xml")
     public Product getProduct(@PathParam("productId")int productId) {
-        System.out.println("----invoking getProduct with id: " + productId);
+        LOG.info("----invoking getProduct with id: " + productId);
         Product p = products.get(new Long(productId));
         return p;
     }

Modified: 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/util/jsse/JsseUtilTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/util/jsse/JsseUtilTest.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/util/jsse/JsseUtilTest.java
 (original)
+++ 
camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/util/jsse/JsseUtilTest.java
 Mon Oct  1 13:51:26 2012
@@ -74,7 +74,7 @@ public class JsseUtilTest extends OSGiIn
         assertNotNull(ks.getCertificate("server"));
 
         File file = new 
File("../../../test-classes/org/apache/camel/itest/osgi/util/jsse/localhost.ks");
-        System.out.println("the file is " + file.getAbsolutePath());
+        LOG.info("the file is " + file.getAbsolutePath());
         ksp.setResource(file.getAbsolutePath());
         ks = ksp.createKeyStore();
         assertNotNull(ks.getCertificate("server"));

Modified: 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/Server.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/Server.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/Server.java
 (original)
+++ 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/Server.java
 Mon Oct  1 13:51:26 2012
@@ -18,11 +18,16 @@ package org.apache.camel.itest.greeter;
 
 import javax.xml.ws.Endpoint;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 public class Server {
+
+    private static final Logger LOG = LoggerFactory.getLogger(Server.class);
     Endpoint endpoint;
 
     public void start() throws Exception {
-        System.out.println("Starting Server");
+        LOG.info("Starting Server");
         Object implementor = new GreeterImpl();
         String address = "http://cxf.apache.org/transports/jms";;
         endpoint = Endpoint.publish(address, implementor);
@@ -36,10 +41,10 @@ public class Server {
 
     public static void main(String args[]) throws Exception {
         Server server = new Server();
-        System.out.println("Server ready...");
+        LOG.info("Server ready...");
         server.start();
         Thread.sleep(5 * 60 * 1000);
-        System.out.println("Server exiting");
+        LOG.info("Server exiting");
         server.stop();
         System.exit(0);
     }

Modified: 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/ibatis/TransactedTryCatchTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/ibatis/TransactedTryCatchTest.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/ibatis/TransactedTryCatchTest.java
 (original)
+++ 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/ibatis/TransactedTryCatchTest.java
 Mon Oct  1 13:51:26 2012
@@ -89,7 +89,7 @@ public class TransactedTryCatchTest exte
         error.expectedMessageCount(1);
         error.whenAnyExchangeReceived(new Processor() {
             public void process(Exchange exchange) throws Exception {
-                // System.out.println(exchange);
+                log.info("{}", exchange);
             }
         });
         try {

Modified: 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/issues/BaseClass.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/issues/BaseClass.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/issues/BaseClass.java
 (original)
+++ 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/issues/BaseClass.java
 Mon Oct  1 13:51:26 2012
@@ -19,12 +19,17 @@ package org.apache.camel.itest.issues;
 import javax.jms.Message;
 import javax.jms.MessageListener;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 /**
  * @version 
  */
 public class BaseClass implements MessageListener {
 
+    private static final Logger LOG = LoggerFactory.getLogger(BaseClass.class);
+
     public void onMessage(Message message) {
-        System.out.println("base called");
+        LOG.info("base called");
     }
 }

Modified: 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/Order.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/Order.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/Order.java
 (original)
+++ 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/restlet/example/Order.java
 Mon Oct  1 13:51:26 2012
@@ -24,8 +24,12 @@ import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.xml.bind.annotation.XmlRootElement;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 @XmlRootElement(name = "Order")
 public class Order {
+    private static final Logger LOG = LoggerFactory.getLogger(Order.class);
     private long id;
     private String description;
     private Map<Long, Product> products = new HashMap<Long, Product>();
@@ -54,7 +58,7 @@ public class Order {
     @Path("products/{productId}/")
     @Produces("application/xml")
     public Product getProduct(@PathParam("productId")int productId) {
-        System.out.println("----invoking getProduct with id: " + productId);
+        LOG.info("----invoking getProduct with id: " + productId);
         Product p = products.get(new Long(productId));
         return p;
     }

Modified: 
camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java?rev=1392330&r1=1392329&r2=1392330&view=diff
==============================================================================
--- 
camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
 (original)
+++ 
camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
 Mon Oct  1 13:51:26 2012
@@ -454,10 +454,10 @@ public class RunMojo extends AbstractExe
                     main.invoke(main, new Object[] {arguments});
                 } catch (Exception e) { // just pass it on
                     // let it be printed so end users can see the exception on 
the console
-                    
System.err.println("*************************************");
-                    System.err.println("Error occurred while running main 
from: " + mainClass);
-                    e.printStackTrace();
-                    
System.err.println("*************************************");
+                    getLog().error("*************************************");
+                    getLog().error("Error occurred while running main from: " 
+ mainClass);
+                    getLog().error(e);
+                    getLog().error("*************************************");
                     
Thread.currentThread().getThreadGroup().uncaughtException(Thread.currentThread(),
 e);
                 }
             }


Reply via email to