ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet DotnetCompile.java Ilasm.java
Date Fri, 20 Dec 2002 14:34:32 GMT
conor       2002/12/20 06:34:32

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/dotnet
                        DotnetCompile.java Ilasm.java
  Log:
  Remove incorrect check on the output file length
  
  PR:	15568
  Submitted by:	Mike Schilling
  
  Revision  Changes    Path
  1.3       +12 -13    jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java
  
  Index: DotnetCompile.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -u -r1.2 -r1.3
  --- DotnetCompile.java	8 Oct 2002 06:20:15 -0000	1.2
  +++ DotnetCompile.java	20 Dec 2002 14:34:31 -0000	1.3
  @@ -784,8 +784,7 @@
        */
       protected String getDestFileParameter() {
           if (outputFile != null) {
  -            File f = outputFile;
  -            return "/out:" + f.toString();
  +            return "/out:" + outputFile.toString();
           } else {
               return null;
           }
  
  
  
  1.22      +2 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java
  
  Index: Ilasm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -w -u -r1.21 -r1.22
  --- Ilasm.java	25 Jul 2002 15:21:13 -0000	1.21
  +++ Ilasm.java	20 Dec 2002 14:34:32 -0000	1.22
  @@ -341,11 +341,10 @@
        *@return    the argument string or null for no argument
        */
       protected String getOutputFileParameter() {
  -        if (outputFile == null || outputFile.length() == 0) {
  +        if (outputFile == null) {
               return null;
           }
  -        File f = outputFile;
  -        return "/output=" + f.toString();
  +        return "/output=" + outputFile.toString();
       }
   
   
  
  
  

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


Mime
View raw message