ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pracht <bpra...@zcloud.net>
Subject Re: Ant delete task not deleting extensionless files on Windows 2000
Date Mon, 11 Aug 2003 15:36:04 GMT
Claudio Corsi wrote:

>
> Run this with the verbose attrubite set to true. Do you see the files 
> that you want deleted? What is the message being displayed w.r.t. 
> these files?
>
> Ben Pracht wrote: 

For sake of convenience, I created this small task clean.xml file:
<?xml version="1.0"?>
<project name="DeleteTest" default="clean" basedir=".">
    <target name="clean">
        <touch file="scrv3b_distrib\afile"/>
        <touch file="scrv3b_distrib\afile.txt"/>
        <delete failonerror="false" verbose="true" 
includeEmptyDirs="true" quiet="no">
            <fileset dir="scrv3b_distrib" includes="**/*.*"/>
        </delete>
    </target>
</project>

I ran this:
ant -verbose -f clean.xml

Resulting in this:
Apache Ant version 1.6alpha compiled on June 18 2003
Buildfile: clean.xml
Detected Java version: 1.4 in: C:\java\sun-jdk\1.4.1_01\jre
Detected OS: Windows 2000
parsing buildfile C:\SoftCopyReader\current\clean.xml with URI = 
file:///C:/Soft
CopyReader/current/clean.xml
Project base dir set to: C:\SoftCopyReader\current
Build sequence for target `clean' is [clean]
Complete build sequence is [clean, ]

clean:
    [touch] Creating C:\SoftCopyReader\current\scrv3b_distrib\afile
    [touch] Creating C:\SoftCopyReader\current\scrv3b_distrib\afile.txt
   [delete] Deleting 1 files from C:\SoftCopyReader\current\scrv3b_distrib
   [delete] Deleting C:\SoftCopyReader\current\scrv3b_distrib\afile.txt

BUILD SUCCESSFUL
Total time: 1 second



>
>>
>> System:  Windows 2000
>> Ant 1.6alpha
>>
>> Ant delete task does not seem to be deleting files which do not have 
>> an extension on Windows 2000:
>>
>> Steps to recreate:
>> Create any two files, one with any extension, and one file which has 
>> no extension at all.  Then include the run the following task:
>>
>> <delete failonerror="false" verbose="true" >
>>  <fileset dir="adir" includes="**/*"/>
>>  <fileset dir="adir"/>
>> </delete>
>>
>> Does anyone know how to correct this problem or is it a bug?
>>
>> Thanks in advance,
>> Ben P
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



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


Mime
View raw message