ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional EchoProperties.java
Date Fri, 22 Feb 2002 13:33:58 GMT
bodewig     02/02/22 05:33:58

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        EchoProperties.java
  Log:
  jdk 1.1 compatibility
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
  
  Index: EchoProperties.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EchoProperties.java	22 Feb 2002 09:20:33 -0000	1.2
  +++ EchoProperties.java	22 Feb 2002 13:33:58 -0000	1.3
  @@ -196,11 +196,11 @@
               String name = (String) enum.nextElement();
                   String value = (String) allProps.get(name);
               if (prefix == null || name.indexOf(prefix) == 0 ) {
  -                props.setProperty(name, value);
  +                props.put(name, value);
               }
           }
           try {
  -            props.store(os, "Ant properties");
  +            props.save(os, "Ant properties");
           } finally {
               os.close();
           }
  
  
  

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