Browse Source

Remove trailing delimiter from addReferenceFileset

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275032 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
5aa4257771
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java

+ 5
- 1
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java View File

@@ -965,11 +965,15 @@ public abstract class DotnetCompile
StringBuffer referenceList = new StringBuffer(REFERENCE_OPTION);
//now scan the hashtable and add the files
Enumeration files = filesToBuild.elements();
boolean firstEntry = true;
while (files.hasMoreElements()) {
File file = (File) files.nextElement();
if (isFileManagedBinary(file)) {
if (!firstEntry) {
referenceList.append(getReferenceDelimiter());
}
referenceList.append(file.toString());
referenceList.append(getReferenceDelimiter());
firstEntry = false;
} else {
log("ignoring " + file + " as it is not a managed executable",
Project.MSG_VERBOSE);


Loading…
Cancel
Save