You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jo...@apache.org on 2001/01/02 20:42:22 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/types Commandline.java
jon 01/01/02 11:42:21
Modified: src/main/org/apache/tools/ant/types Commandline.java
Log:
patch by will stranathan will@thestranathans.com 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);
}