geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r831387 - /geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/AbstractCarMojo.java
Date Fri, 30 Oct 2009 16:57:14 GMT
Author: gawor
Date: Fri Oct 30 16:57:14 2009
New Revision: 831387

URL: http://svn.apache.org/viewvc?rev=831387&view=rev
Log:
enable debug mode when running maven with -X option

Modified:
    geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/AbstractCarMojo.java

Modified: geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/AbstractCarMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/AbstractCarMojo.java?rev=831387&r1=831386&r2=831387&view=diff
==============================================================================
--- geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/AbstractCarMojo.java
(original)
+++ geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/AbstractCarMojo.java
Fri Oct 30 16:57:14 2009
@@ -629,8 +629,9 @@
     }
 
     private void setLoggingLevel() {
-        if (System.getProperty("org.ops4j.pax.logging.DefaultServiceLog.level") == null)
{
-            System.setProperty("org.ops4j.pax.logging.DefaultServiceLog.level", "ERROR");
+        if (System.getProperty("org.ops4j.pax.logging.DefaultServiceLog.level") == null)
{            
+            System.setProperty("org.ops4j.pax.logging.DefaultServiceLog.level", 
+                               log.isDebugEnabled() ? "DEBUG" : "ERROR");
         }
     }
     



Mime
View raw message