You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/01/19 13:27:39 UTC
svn commit: r735676 -
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
Author: bodewig
Date: Mon Jan 19 04:27:38 2009
New Revision: 735676
URL: http://svn.apache.org/viewvc?rev=735676&view=rev
Log:
need to add a path separator after the first path element, not before it
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java?rev=735676&r1=735675&r2=735676&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java Mon Jan 19 04:27:38 2009
@@ -373,10 +373,11 @@
// 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()) {