From b57bb4004dc93898fede6764590d464af6267e61 Mon Sep 17 00:00:00 2001 From: Jon Scott Stevens Date: Tue, 2 Jan 2001 19:42:17 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/types/Commandline.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/types/Commandline.java b/src/main/org/apache/tools/ant/types/Commandline.java index 4a01ea06b..af3d8b1c7 100644 --- a/src/main/org/apache/tools/ant/types/Commandline.java +++ b/src/main/org/apache/tools/ant/types/Commandline.java @@ -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); }