From a5360da98a0596f6db64a82f72315ea481d52865 Mon Sep 17 00:00:00 2001
From: Peter Reilly
Date: Sat, 7 Oct 2006 22:04:20 +0000
Subject: [PATCH] PathConvert on Windows should process forward and back
slashes equivalently. Bugzilla report 32884.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@454032 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 3 +++
docs/manual/CoreTasks/pathconvert.html | 23 +++++++++++++++----
.../tools/ant/taskdefs/PathConvert.java | 7 ++++--
.../antunit/taskdefs/pathconvert-test.xml | 2 +-
4 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 2dcc80615..41f4d4471 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -48,6 +48,9 @@ Fixed bugs:
* junit4 did not work with fork=no and junit4 in $ANT_HOME/lib.
Bugzilla report 40697.
+* PathConvert on Windows should process forward and back slashes equivalently.
+ Bugzilla report 32884.
+
Other changes:
--------------
diff --git a/docs/manual/CoreTasks/pathconvert.html b/docs/manual/CoreTasks/pathconvert.html
index 18c1aba3d..080190280 100644
--- a/docs/manual/CoreTasks/pathconvert.html
+++ b/docs/manual/CoreTasks/pathconvert.html
@@ -107,9 +107,13 @@ drive letters to Unix paths, and vice-versa.
from |
- The prefix to match. Note that this value is case-insensitive when
- the build is running on a Windows platform and case-sensitive when running on a
- Unix platform. |
+
+ The prefix to match. Note that this value is case-insensitive when
+ the build is running on a Windows platform and case-sensitive
+ when running on a Unix platform.
+ Since Ant 1.7.0, on Windows this value is also insensitive
+ to the slash style used for directories, one can use '/' or '\'.
+ |
Yes |
@@ -197,8 +201,17 @@ it defaults to the appropriate character for the current platform. Such a list
then be used in another task, like javadoc, that requires a comma separated
list of files.
-
-
+Example 4
+
+ <pathconvert property="prop" dirsep="|">
+ <map from="${basedir}/abc/" to=''/>
+ <path location="abc/def/ghi"/>
+ </pathconvert>
+
+
+ This example sets the property "prop" to "def|ghi" on
+ Windows and on Unix.
+