ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: <delete> fails if inner fileset directory does not exist.
Date Tue, 25 Oct 2005 06:42:22 GMT
Ok, I have done a little bit history:

<project name="test" default="all" basedir=".">
  <target name="all">
    <echo>${ant.version}</echo>
    <delete includeEmptyDirs="true" failonerror="false">
      <fileset dir="aaa/bbb"/>
    </delete>
  </target>
</project>

on several Ant versions:

     [echo] Apache Ant version 1.7alpha compiled on June 15 2005
   [delete] C:\TEMP\ant-test\aaa\bbb not found.
BUILD SUCCESSFUL

     [echo] Apache Ant version 1.6.5 compiled on June 2 2005
   [delete] C:\TEMP\ant-test\aaa\bbb not found.
BUILD SUCCESSFUL

     [echo] Apache Ant version 1.6.4 compiled on May 19 2005
   [delete] C:\TEMP\ant-test\aaa\bbb not found.
BUILD SUCCESSFUL

     [echo] Apache Ant version 1.6.0 compiled on December 18 2003
   [delete] C:\TEMP\ant-test\aaa\bbb not found.
BUILD SUCCESSFUL

     [echo] Apache Ant version 1.5.4 compiled on August 12 2003
   [delete] C:\TEMP\ant-test\aaa\bbb not found.
BUILD SUCCESSFUL

     [echo] Ant version 1.4.1 compiled on October 11 2001
   [delete] C:\TEMP\ant-test\aaa\bbb not found.
BUILD SUCCESSFUL

Ant version 1.3 compiled on March 2 2001
     [echo] ${ant.version}
BUILD FAILED
C:\TEMP\ant-test\build.xml:4: Class org.apache.tools.ant.taskdefs.Delete doesn't support the
"failonerror" attribute


So the expected behaviour since years is "BUILD SUCCESSFUL".

Havent checked it on HEAD yet...


Jan



 

>-----Urspr√ľngliche Nachricht-----
>Von: Stefan Bodewig [mailto:bodewig@apache.org] 
>Gesendet: Dienstag, 25. Oktober 2005 05:44
>An: dev@ant.apache.org
>Betreff: Re: <delete> fails if inner fileset directory does not exist.
>
>On Mon, 24 Oct 2005, Alexey Solofnenko <trelony@gmail.com> wrote:
>
>> I am not sure if you agree with me that it is a problem on 
>not... The 
>> behaviour has changed. <delete> used to do nothing when there was 
>> nothing to delete.
>
>I'm not sure whether this is true, but I think so.  The same 
>happens for copy with failonerror="false", filesets with a dir 
>that doesn't exist get ignored.
>
>Stefan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For 
>additional commands, e-mail: dev-help@ant.apache.org
>
>

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


Mime
View raw message