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 Project.java
Date Mon, 12 Mar 2001 14:04:18 GMT
bodewig     01/03/12 06:04:17

  Modified:    src/main/org/apache/tools/ant Project.java
  Log:
  Make Ant deal with non-String elements stored in system properties.
  
  PR: 904
  Submitted by:	peter.holzwarth@io-software.com
  
  Revision  Changes    Path
  1.54      +3 -3      jakarta-ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- Project.java	2001/02/03 14:45:07	1.53
  +++ Project.java	2001/03/12 14:04:15	1.54
  @@ -203,9 +203,9 @@
           Properties systemP = System.getProperties();
           Enumeration e = systemP.keys();
           while (e.hasMoreElements()) {
  -            String name = (String) e.nextElement();
  -            String value = (String) systemP.get(name);
  -            this.setProperty(name, value);
  +            Object name = e.nextElement();
  +            String value = systemP.get(name).toString();
  +            this.setProperty(name.toString(), value);
           }
       }
   
  
  
  

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


Mime
View raw message