ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32526] Add "whenempty" attribute to <fileset>
Date Tue, 24 Feb 2009 17:17:43 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=32526





--- Comment #13 from Steve Loughran <stevel@apache.org>  2009-02-24 09:17:42 PST ---
Let's try that again without it being sent half completed

Imagine if you had some attributes minFileCount, maxFileCount in a fileset


    <tarfileset dir="${dist}" username="admin" group="admin"
           minFileCount="3" maxFilecount="3">
        <include name="lib/my-main.jar" />
        <include name="tools/lib/my-tools.jar" />
        <include name="conf/VERSION" />
    </tarfileset>

Any number !=3 is failure, hence what you want. 

The min and max numbers can differ, for a broader spread of failures

    <tarfileset dir="${dist}" username="admin" group="admin"
           minFileCount="3" maxFilecount="100">
        <include name="lib/my-main.jar" />
        <include name="tools/lib/my-tools.jar" />
        <include name="conf/VERSION" />
        <include name="**/*.jar"/>
    </tarfileset>

That now says, at least 3, less than 100. That would give you broader control
of the range of files you allowed, from exactly those listed, to a range that
included at least those, or a few more or less.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message