ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r438159 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java
Date Tue, 29 Aug 2006 18:51:27 GMT
Author: mbenson
Date: Tue Aug 29 11:51:27 2006
New Revision: 438159

URL: http://svn.apache.org/viewvc?rev=438159&view=rev
Log:
compromise with DD

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java?rev=438159&r1=438158&r2=438159&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java Tue Aug 29
11:51:27 2006
@@ -86,9 +86,6 @@
         StringBuffer buffer = new StringBuffer();
         StringBuffer element = new StringBuffer();
         for (int i = 0; i < elements.length; ++i) {
-            if (i > 0) {
-                buffer.append(' ');
-            }
             // Normalize the current file
             File pathEntry = new File(elements[i]);
             pathEntry = fileUtils.normalize(pathEntry.getAbsolutePath());
@@ -136,10 +133,11 @@
                 throw new BuildException(exc);
             }
             buffer.append(relPath);
+            buffer.append(' ');
         }
 
         // Finally assign the property with the manifest classpath
-        getProject().setNewProperty(_name, buffer.toString());
+        getProject().setNewProperty(_name, buffer.toString().trim());
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message