Browse Source

patch by will stranathan will@thestranathans.com that fixes the path

separator to whatever the system one is.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268388 13f79535-47bb-0310-9956-ffa450edef68
master
Jon Scott Stevens 24 years ago
parent
commit
b57bb4004d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/types/Commandline.java

+ 2
- 1
src/main/org/apache/tools/ant/types/Commandline.java View File

@@ -206,7 +206,8 @@ public class Commandline implements Cloneable {
*/
public void setExecutable(String executable) {
if (executable == null || executable.length() == 0) return;
this.executable = executable;
this.executable = executable.replace('/', File.separatorChar)
.replace('\\', File.separatorChar);
}




Loading…
Cancel
Save