ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45271] length task with mode="each" option should process nonexistent resources
Date Tue, 24 Jun 2008 18:34:21 GMT

Matt Benson <> changed:

           What    |Removed                     |Added
            Summary|length task, each option    |length task with mode="each"
                   |leaves out empty and non-   |option should process
                   |existent files              |nonexistent resources

--- Comment #1 from Matt Benson <>  2008-06-24 11:34:20 PST ---
The length task is currently coded to ignore non-existing resources.  Possibly
that is a bug, since it's possible for a Resource to be configured such that it
does return some size but still does not exist.  In your sample, however, the
task actually never sees the file that doesn't exist because a fileset by
definition consists entirely of files that DO exist.  As for your empty file,
the extension is missing on the fileset:

>        <length mode="each" >
>                <fileset file="c:/empty" />
>                <fileset file="c:/notempty.txt" />
>                <fileset file="c:/DoesNotExist" />
>        </length>

So I will modify the description of this report.  I don't think it's important
to preserve backward compatibility on the remaining bug because the "each" mode
feature is designed for readable logging more than anything.

Thanks for the report,

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message