ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Ant.java
Date Fri, 10 Oct 2003 13:57:50 GMT
Opps,
Well found!

Peter
On Friday 10 October 2003 14:19, bodewig@apache.org wrote:
> bodewig     2003/10/10 06:19:46
>   @@ -450,10 +450,12 @@
>            Set set = new HashSet();
>            for (int i = properties.size() - 1; i >= 0; --i) {
>                Property p = (Property) properties.get(i);
>   -            if (set.contains(p.getName())) {
>   -                properties.remove(i);
>   -            } else {
>   -                set.add(p.getName());
>   +            if (p.getName() != null && !p.getName().equals("")) {
>   +                if (set.contains(p.getName())) {
>   +                    properties.remove(i);
>   +                } else {
>   +                    set.add(p.getName());
>   +                }
>                }
>            }
>            Enumeration e = properties.elements();
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org


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


Mime
View raw message