You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by gi...@apache.org on 2018/05/28 05:10:50 UTC
[10/14] ant git commit: Revert use of Java 6
Revert use of Java 6
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/520c0c6d
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/520c0c6d
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/520c0c6d
Branch: refs/heads/master
Commit: 520c0c6de1a9c5551ffdf8c5b6936d2b1976c633
Parents: 4c03d71
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Sat May 26 22:31:48 2018 +0200
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Sat May 26 22:31:48 2018 +0200
----------------------------------------------------------------------
src/main/org/apache/tools/ant/Project.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/520c0c6d/src/main/org/apache/tools/ant/Project.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/Project.java b/src/main/org/apache/tools/ant/Project.java
index 49061c0..b8636d9 100644
--- a/src/main/org/apache/tools/ant/Project.java
+++ b/src/main/org/apache/tools/ant/Project.java
@@ -946,7 +946,9 @@ public class Project implements ResourceFactory {
*/
public void setSystemProperties() {
final Properties systemP = System.getProperties();
- for (final String propertyName : systemP.stringPropertyNames()) {
+ final Enumeration<?> e = systemP.propertyNames();
+ while (e.hasMoreElements()) {
+ final String propertyName = (String) e.nextElement();
final String value = systemP.getProperty(propertyName);
if (value != null) {
this.setPropertyInternal(propertyName, value);