ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core PropertyDump.java
Date Tue, 23 Apr 2002 01:51:41 GMT
adammurdoch    02/04/22 18:51:41

  Modified:    antlib/src/java/org/apache/antlib/core PropertyDump.java
  Log:
  Sort properties by name in the output.
  
  Revision  Changes    Path
  1.2       +3 -2      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/PropertyDump.java
  
  Index: PropertyDump.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/core/PropertyDump.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PropertyDump.java	14 Apr 2002 10:55:08 -0000	1.1
  +++ PropertyDump.java	23 Apr 2002 01:51:41 -0000	1.2
  @@ -9,6 +9,7 @@
   
   import java.util.Iterator;
   import java.util.Map;
  +import java.util.TreeMap;
   import org.apache.myrmidon.api.AbstractTask;
   import org.apache.myrmidon.api.TaskException;
   
  @@ -18,7 +19,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:jimcook@visualxs.com">Jim Cook</a>
  - * @version $Revision: 1.1 $ $Date: 2002/04/14 10:55:08 $
  + * @version $Revision: 1.2 $ $Date: 2002/04/23 01:51:41 $
    * @ant.task name="property-dump"
    * @todo Consider moving to new antlib
    */
  @@ -48,7 +49,7 @@
       public void execute()
           throws TaskException
       {
  -        final Map properties = getContext().getProperties();
  +        final Map properties = new TreeMap( getContext().getProperties() );
           final Iterator iterator = properties.keySet().iterator();
           while( iterator.hasNext() )
           {
  
  
  

--
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