ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet DotnetCompile.java
Date Wed, 06 Aug 2003 09:53:23 GMT
bodewig     2003/08/06 02:53:23

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/dotnet
                        DotnetCompile.java
  Log:
  Remove trailing delimiter from addReferenceFileset
  
  Revision  Changes    Path
  1.12      +5 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java
  
  Index: DotnetCompile.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DotnetCompile.java	1 Aug 2003 05:55:16 -0000	1.11
  +++ DotnetCompile.java	6 Aug 2003 09:53:23 -0000	1.12
  @@ -965,11 +965,15 @@
           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);
  
  
  

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


Mime
View raw message