ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Zip.java
Date Fri, 21 Jun 2002 18:08:42 GMT
----- Original Message -----
From: <stevel@apache.org>
=>   Index: Zip.java
>   ===================================================================
>   RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
>   retrieving revision 1.78.2.2
>   retrieving revision 1.78.2.3
>   diff -u -r1.78.2.2 -r1.78.2.3
>   --- Zip.java 21 Jun 2002 07:08:16 -0000 1.78.2.2
>   +++ Zip.java 21 Jun 2002 17:29:44 -0000 1.78.2.3
>   @@ -144,7 +144,7 @@
>         * create the file.
>         * @since Ant 1.5
>         * @deprecated Use setDestFile(File) instead
>   -     * @ant.attribute ignore="true"
>   +     * @ant.attribute ignored="true"

But this is wrong.  Its "ignore".  What generator are you using anyway?!  :)

Here's the code MY generator uses:

    /**
     * For now, lump attributes and elements together since we won't
     * have those tags on the same method.
     */
    private boolean shouldIgnore (MethodDoc method) throws XDocletException
{
        String value = getTagValue(method, "ant:attribute", "ignore", -1,
                null, null, null, null,
                null, false, XDocletTagSupport.FOR_METHOD, false);
        if ("true".equals(value)) {
            return true;
        }
        value = getTagValue(method, "ant:element", "ignore", -1,
                null, null, null, null,
                null, false, XDocletTagSupport.FOR_METHOD, false);
        if ("true".equals(value)) {
            return true;
        }
        return false;
    }

Ugly, I know.  But works.

    Erik



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


Mime
View raw message