forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r356803 - /forrest/trunk/tools/forrestbot/webapp/src/java/org/apache/forrest/forrestbot/webapp/util/Executor.java
Date Wed, 14 Dec 2005 16:48:09 GMT
Author: rgardler
Date: Wed Dec 14 08:48:03 2005
New Revision: 356803

URL: http://svn.apache.org/viewcvs?rev=356803&view=rev
Log:
run in headless mode, and provide a log message

Modified:
    forrest/trunk/tools/forrestbot/webapp/src/java/org/apache/forrest/forrestbot/webapp/util/Executor.java

Modified: forrest/trunk/tools/forrestbot/webapp/src/java/org/apache/forrest/forrestbot/webapp/util/Executor.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/forrestbot/webapp/src/java/org/apache/forrest/forrestbot/webapp/util/Executor.java?rev=356803&r1=356802&r2=356803&view=diff
==============================================================================
--- forrest/trunk/tools/forrestbot/webapp/src/java/org/apache/forrest/forrestbot/webapp/util/Executor.java
(original)
+++ forrest/trunk/tools/forrestbot/webapp/src/java/org/apache/forrest/forrestbot/webapp/util/Executor.java
Wed Dec 14 08:48:03 2005
@@ -83,6 +83,7 @@
         errorGobbler.start();
 		StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), Priority.DEBUG);
 		outputGobbler.start();
+		
 		try {
 			proc.getInputStream().close();
 			proc.getErrorStream().close();
@@ -98,14 +99,14 @@
 	private static Logger log = Logger.getLogger(Executor.class);
 
 	private static void run(String target, String project) throws IOException {
-		String command = Config.getProperty("forrest-exec") + " -f " + project + ".xml " + target;
+		String command = Config.getProperty("forrest-exec") 
+		 + " -Dforrest.jvmargs=-Djava.awt.headless=true -f " + project + ".xml " + target;
 		File workingDir = new File(Config.getProperty("config-dir"));
 
-		log.debug("executing '" + command + "' in " + workingDir);
-
 		Runtime rt = Runtime.getRuntime();
 		Process proc = rt.exec(command, null, workingDir);
 		ExecutorThread execThread = new ExecutorThread(project, proc);
+		log.info("Executing command: " + command + " in " + workingDir);
 		execThread.start();
 		// don't wait for it to finish
 	}



Mime
View raw message