jon         01/01/02 11:42:21

  Modified:    src/main/org/apache/tools/ant/types Commandline.java
  Log:
  patch by will stranathan [EMAIL PROTECTED] that fixes the path
  separator to whatever the system one is.
  
  Revision  Changes    Path
  1.14      +2 -1      
jakarta-ant/src/main/org/apache/tools/ant/types/Commandline.java
  
  Index: Commandline.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/Commandline.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Commandline.java  2000/11/23 11:32:49     1.13
  +++ Commandline.java  2001/01/02 19:42:17     1.14
  @@ -206,7 +206,8 @@
        */
       public void setExecutable(String executable) {
           if (executable == null || executable.length() == 0) return;
  -        this.executable = executable;
  +        this.executable = executable.replace('/', File.separatorChar)
  +            .replace('\\', File.separatorChar);
       }
   
   
  
  
  

Reply via email to