Browse Source

compromise with DD

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@438159 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
a1db40609e
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java

+ 2
- 4
src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java View File

@@ -86,9 +86,6 @@ public class ManifestClassPath extends Task {
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 @@ public class ManifestClassPath extends Task {
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());
}

/**


Loading…
Cancel
Save