ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: delete task with a wildcard "file"
Date Thu, 21 Dec 2017 05:12:14 GMT
On 2017-12-21, Jaikiran Pai wrote:

> Is it expected that the delete task with a file="*.py"(like below)
> will consider the * a wildcard and delete all files with a .py
> extension?

No, not at all.

> My understanding based on the docs is that it should actually be the
> exact file name (either relative or absolute) and for something like
> wildcard support, the resource collections (like fileset) should be
> used.

That's my understanding as well.

> I committed this change below, to use a resource collection to allow
> the build to pass, which had started failing on Windows, after I did a
> recent change to the delete task to use Java 7 java.nio.file.Files
> API.

Interesting. I wasn't aware of it working before. We probably should
list that as a breaking change.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message