axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r412274 - /webservices/axis2/trunk/java/modules/common/src/org/apache/axis2/util/PrettyPrinter.java
Date Wed, 07 Jun 2006 03:51:30 GMT
Author: dims
Date: Tue Jun  6 20:51:30 2006
New Revision: 412274

URL: http://svn.apache.org/viewvc?rev=412274&view=rev
Log:
Just jalopy jar is not enough since jalopy needs log4j that jar is required as well.


Modified:
    webservices/axis2/trunk/java/modules/common/src/org/apache/axis2/util/PrettyPrinter.java

Modified: webservices/axis2/trunk/java/modules/common/src/org/apache/axis2/util/PrettyPrinter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/common/src/org/apache/axis2/util/PrettyPrinter.java?rev=412274&r1=412273&r2=412274&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/common/src/org/apache/axis2/util/PrettyPrinter.java
(original)
+++ webservices/axis2/trunk/java/modules/common/src/org/apache/axis2/util/PrettyPrinter.java
Tue Jun  6 20:51:30 2006
@@ -39,6 +39,8 @@
      */
     public static void prettify(File file) {
         try {
+            Loader.loadClass("org.apache.log4j.Priority");
+                    
             // Create an instance of the Jalopy bean
             Class clazz = Loader.loadClass("de.hunsicker.jalopy.Jalopy");
             Object prettifier = clazz.newInstance();
@@ -67,7 +69,7 @@
             format.invoke(prettifier, new Object[]{});
             log.debug("Pretty printed file : " + file);
         } catch (ClassNotFoundException e) {
-            log.info("Jalopy not found - unable to pretty print " + file);
+            log.info("Jalopy/Log4j not found - unable to pretty print " + file);
         } catch (Exception e) {
             log.warn("Exception occurred while trying to pretty print file " + file, e);
         } catch (Throwable t) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message