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 Thu, 14 Aug 2003 07:02:34 GMT
bodewig     2003/08/14 00:02:34

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/dotnet
                        DotnetCompile.java
  Log:
  make definitions work for Mono
  
  Revision  Changes    Path
  1.14      +6 -2      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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DotnetCompile.java	8 Aug 2003 00:11:05 -0000	1.13
  +++ DotnetCompile.java	14 Aug 2003 07:02:34 -0000	1.14
  @@ -720,19 +720,23 @@
       protected String getDefinitionsParameter() throws BuildException {
           StringBuffer defines = new StringBuffer();
           Enumeration defEnum = definitionList.elements();
  +        boolean firstDefinition = true;
           while (defEnum.hasMoreElements()) {
               //loop through all definitions
               DotnetDefine define = (DotnetDefine) defEnum.nextElement();
               if (define.isSet(this)) {
                   //add those that are set, and a delimiter
  +                if (!firstDefinition) {
  +                    defines.append(getDefinitionsDelimiter());
  +                }
                   defines.append(define.getValue(this));
  -                defines.append(getDefinitionsDelimiter());
  +                firstDefinition = false;
               }
           }
           if (defines.length() == 0) {
               return null;
           } else {
  -            return "/D:" + defines;
  +            return "/d:" + defines;
           }
       }
   
  
  
  

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


Mime
View raw message