You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2006/06/22 22:49:13 UTC

svn commit: r416492 - /incubator/xap/trunk/tools/src/JsCompress.java

Author: jmargaris
Date: Thu Jun 22 15:49:13 2006
New Revision: 416492

URL: http://svn.apache.org/viewvc?rev=416492&view=rev
Log:
now working with spaces in path names

Modified:
    incubator/xap/trunk/tools/src/JsCompress.java

Modified: incubator/xap/trunk/tools/src/JsCompress.java
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/tools/src/JsCompress.java?rev=416492&r1=416491&r2=416492&view=diff
==============================================================================
--- incubator/xap/trunk/tools/src/JsCompress.java (original)
+++ incubator/xap/trunk/tools/src/JsCompress.java Thu Jun 22 15:49:13 2006
@@ -98,7 +98,9 @@
 					//these streams are not always buffered so we can't do something
 					//better like see if any bytes are available() and read from both
 					//streams in the same thread.
-					String execString = "java -jar " + s_rhinoPath + " -w -c " + file.getAbsolutePath();
+					
+					String execString = "java -jar " + "\""+ s_rhinoPath + "\"" + " -w -c " +  "\""+ file.getAbsolutePath() +  "\"";
+					System.out.println("exec string:" + execString);
 					
 					Process p = Runtime.getRuntime().exec(execString);