Browse Source

Revert use of Java 6

master
Gintas Grigelionis 7 years ago
parent
commit
520c0c6de1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/Project.java

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

@@ -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);


Loading…
Cancel
Save