Browse Source

need to add a path separator after the first path element, not before it

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@735676 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
8efbd0e19b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/PathConvert.java

+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/PathConvert.java View File

@@ -373,10 +373,11 @@ public class PathConvert extends Task {
// Now convert the path and file separator characters from the
// current os to the target os.

if (first) {
if (!first) {
rslt.append(pathSep);
first = false;
}
first = false;

StringTokenizer stDirectory = new StringTokenizer(elem, fromDirSep, true);

while (stDirectory.hasMoreTokens()) {


Loading…
Cancel
Save