ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet CSharp.java
Date Thu, 11 Apr 2002 07:29:58 GMT
stevel      02/04/11 00:29:58

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/dotnet
                        CSharp.java
  Log:
  actually, we dont need to mandate an output file, even though doing so breaks dependency
checking. So lets not, for compatibility's sake. Oh, and add a test for the destfile not being
a directory
  
  Revision  Changes    Path
  1.19      +3 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java
  
  Index: CSharp.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- CSharp.java	11 Apr 2002 06:47:41 -0000	1.18
  +++ CSharp.java	11 Apr 2002 07:29:58 -0000	1.19
  @@ -1053,8 +1053,8 @@
        */ 
       protected void validate() 
               throws BuildException {
  -        if(outputFile==null) {
  -            throw new BuildException("destination file must be specified");
  +        if(outputFile!=null && outputFile.isDirectory()) {
  +            throw new BuildException("destFile cannot be a directory");
           }
       }
   
  @@ -1099,7 +1099,7 @@
           command.addArgument(getFileAlignParameter());
   
           long outputTimestamp;
  -        if(outputFile.exists()) {
  +        if(outputFile!=null && outputFile.exists()) {
               outputTimestamp = outputFile.lastModified();
           } else {
               outputTimestamp = 0;
  
  
  

--
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