forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r125563 - /forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java
Date Tue, 18 Jan 2005 23:21:31 GMT
Author: rgardler
Date: Tue Jan 18 15:21:27 2005
New Revision: 125563

URL: http://svn.apache.org/viewcvs?view=rev&rev=125563
Log:
add a little logging
Modified:
   forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java

Modified: forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java
Url: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java?view=diff&rev=125563&p1=forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java&r1=125562&p2=forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java&r2=125563
==============================================================================
--- forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java
(original)
+++ forrest/trunk/tools/eclipse/src/org/apache/forrest/eclipse/wizards/NewProjectWizard.java
Tue Jan 18 15:21:27 2005
@@ -15,6 +15,8 @@
  */
 package org.apache.forrest.eclipse.wizards;
 
+import org.apache.log4j.Logger;
+
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
@@ -43,6 +45,12 @@
  */
 
 public class NewProjectWizard extends Wizard implements INewWizard {
+	/**
+	 * Logger for this class
+	 */
+	private static final Logger logger = Logger
+			.getLogger(NewProjectWizard.class);
+
 	private WizardNewProjectCreationPage page;
 
 	/**
@@ -126,13 +134,14 @@
 			  Process seedProc = Runtime.getRuntime().exec(cmdString);
 		      BufferedReader reader = new BufferedReader(new InputStreamReader(seedProc.getInputStream()));
 		      while((lineRead = reader.readLine()) != null) {
-		      	// FIXME: should be logged properly
-	            System.out.println(lineRead);
+				if (logger.isDebugEnabled()) {
+					logger.debug("finishPage(IProgressMonitor)" + lineRead);
+				}
               }
 			  exitValue = seedProc.exitValue();
 			} catch (IOException e) {
 				// TODO Auto-generated catch block
-				e.printStackTrace();
+				logger.error("finishPage(IProgressMonitor)", e);
 			}
 			
 			project.refreshLocal(IProject.DEPTH_INFINITE, monitor);

Mime
View raw message