Revision: 3397
          http://vexi.svn.sourceforge.net/vexi/?rev=3397&view=rev
Author:   clrg
Date:     2009-03-04 18:20:14 +0000 (Wed, 04 Mar 2009)

Log Message:
-----------
Fix. Empty strings in command string[] causing errors when running on linux.

Modified Paths:
--------------
    
trunk/tools/org.vexi.vexidev/src/org/vexi/vexidev/debug/VexiRunnerConfig.java

Modified: 
trunk/tools/org.vexi.vexidev/src/org/vexi/vexidev/debug/VexiRunnerConfig.java
===================================================================
--- 
trunk/tools/org.vexi.vexidev/src/org/vexi/vexidev/debug/VexiRunnerConfig.java   
    2009-03-04 03:55:19 UTC (rev 3396)
+++ 
trunk/tools/org.vexi.vexidev/src/org/vexi/vexidev/debug/VexiRunnerConfig.java   
    2009-03-04 18:20:14 UTC (rev 3397)
@@ -39,10 +39,17 @@
        final String mainTemplate;
        
        
+       private String[] splitArgs(String s){
+               if(s.trim().length()>0){
+                       return s.split("\\s+");
+               }
+               return new String[]{};
+       }
+       
        public String[] constructCommand(){
                
-               String[] vmargs = vmArgString.split("\\s+");
-               String[] args1 = argString.split("\\s+");
+               String[] vmargs = splitArgs(vmArgString);
+               String[] args1 = splitArgs(argString);
                String[] args2 =  expandPath(path);
                List<String> cmdLine = new LinkedList<String>();
                //String[] cmdLine = new String[4+ args1.length + args2.length 
+ 1];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to