camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r553361 - in /activemq/camel/trunk/tooling/maven/maven-html-to-docbook: pom.xml src/main/java/org/apache/camel/maven/GenerateDocBookMojo.java
Date Thu, 05 Jul 2007 02:06:05 GMT
Author: jlim
Date: Wed Jul  4 19:06:04 2007
New Revision: 553361

URL: http://svn.apache.org/viewvc?view=rev&rev=553361
Log:
updated to use commons logging  

Modified:
    activemq/camel/trunk/tooling/maven/maven-html-to-docbook/pom.xml
    activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/java/org/apache/camel/maven/GenerateDocBookMojo.java

Modified: activemq/camel/trunk/tooling/maven/maven-html-to-docbook/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/maven/maven-html-to-docbook/pom.xml?view=diff&rev=553361&r1=553360&r2=553361
==============================================================================
--- activemq/camel/trunk/tooling/maven/maven-html-to-docbook/pom.xml (original)
+++ activemq/camel/trunk/tooling/maven/maven-html-to-docbook/pom.xml Wed Jul  4 19:06:04 2007
@@ -35,5 +35,14 @@
       <artifactId>jtidy</artifactId>
       <version>4aug2000r7-dev</version>
     </dependency>
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <scope>test</scope>
+    </dependency>    
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging-api</artifactId>
+    </dependency>    
   </dependencies>
 </project>

Modified: activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/java/org/apache/camel/maven/GenerateDocBookMojo.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/java/org/apache/camel/maven/GenerateDocBookMojo.java?view=diff&rev=553361&r1=553360&r2=553361
==============================================================================
--- activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/java/org/apache/camel/maven/GenerateDocBookMojo.java
(original)
+++ activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/java/org/apache/camel/maven/GenerateDocBookMojo.java
Wed Jul  4 19:06:04 2007
@@ -51,6 +51,9 @@
 import org.w3c.tidy.DOMElementImpl;
 import org.w3c.tidy.Tidy;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 /**
  * Goal which extracts the content of a wiki page and converts it to docbook
  * format
@@ -141,7 +144,7 @@
 	private String imageLocation;
 
 	private String chapterId;
-
+	private static final transient Log log = LogFactory.getLog(GenerateDocBookMojo.class);
 
 	public void execute() throws MojoExecutionException {
 		File outputDir = new File(outputPath);
@@ -237,14 +240,14 @@
 			}
 
 		} catch (Exception e) {
-			e.printStackTrace();
+			log.debug("Exception processing wiki content", e);
 		}finally {
 			try {
 				if(output != null)
 					output.close();
 			} catch (IOException e) {
 				// TODO Auto-generated catch block
-				e.printStackTrace();
+				log.debug("Exception closing output stream", e);
 			}
 		}
 	}
@@ -337,7 +340,7 @@
 
 		} catch (IOException e) {
 			// TODO Auto-generated catch block
-			e.printStackTrace();
+			log.debug("Exception in creating manual.xml file", e);
 		}
 	}
 	
@@ -372,7 +375,7 @@
             	}
             	out.flush();         		
         	}catch(Exception e) {
-        		e.printStackTrace();
+        		log.debug("Exception in downloading image " + imageFile, e);
         	}
       	
         	



Mime
View raw message