Browse Source

Make Ant deal with non-String elements stored in system properties.

PR: 904
Submitted by:	peter.holzwarth@io-software.com


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268810 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
9783e6c8cc
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/Project.java

+ 3
- 3
src/main/org/apache/tools/ant/Project.java View File

@@ -203,9 +203,9 @@ public class Project {
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);
}
}



Loading…
Cancel
Save