Author: jsong
Date: Fri Feb 18 13:30:21 2005
New Revision: 154352

URL: http://svn.apache.org/viewcvs?view=rev&rev=154352
Log:
Contributed by Jamie Zyskowski: beehive-322 fix #2 - don't add quotes when not 
on windows - causes an error on linux from ant

Modified:
    incubator/beehive/trunk/controls/test/infra/mantis/mantis.jar
    
incubator/beehive/trunk/controls/test/tools/mantis/src/org/apache/beehive/test/tools/mantis/MantisTask.java

Modified: incubator/beehive/trunk/controls/test/infra/mantis/mantis.jar
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/infra/mantis/mantis.jar?view=diff&r1=154351&r2=154352
==============================================================================
Binary files - no diff available.

Modified: 
incubator/beehive/trunk/controls/test/tools/mantis/src/org/apache/beehive/test/tools/mantis/MantisTask.java
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/tools/mantis/src/org/apache/beehive/test/tools/mantis/MantisTask.java?view=diff&r1=154351&r2=154352
==============================================================================
--- 
incubator/beehive/trunk/controls/test/tools/mantis/src/org/apache/beehive/test/tools/mantis/MantisTask.java
 (original)
+++ 
incubator/beehive/trunk/controls/test/tools/mantis/src/org/apache/beehive/test/tools/mantis/MantisTask.java
 Fri Feb 18 13:30:21 2005
@@ -122,7 +122,14 @@
     cmd.append(_aptcommand+" ");
     if(!_compile)
       cmd.append(" -nocompile ");
-    cmd.append("-classpath \""+_classpath+"\" ");
+    
+    // if on windows, put classpath in quotes in case there's a space
+    // on unix, quotes cause a problem when run via ant so don't add them
+    if(System.getProperty("os.name").indexOf("Windows") != -1)
+       cmd.append("-classpath \""+_classpath+"\" ");
+    else
+       cmd.append("-classpath "+_classpath+" ");
+    
     cmd.append("-s "+_srcgen+" ");
     if(null != _bingen)
       cmd.append("-d "+_bingen+" ");


Reply via email to