Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2012-10-23 20:55:59 +0000
committerMike Rennie2012-10-23 20:55:59 +0000
commitd843dd78f3068432b07c6ed35793c229321ddc53 (patch)
tree01ad76744d0656cdf9d7c43386c04a6a19c0bcef
parent31140908a2931e31060535c59c4c4de750561e0e (diff)
downloadeclipse.platform-d843dd78f3068432b07c6ed35793c229321ddc53.tar.gz
eclipse.platform-d843dd78f3068432b07c6ed35793c229321ddc53.tar.xz
eclipse.platform-d843dd78f3068432b07c6ed35793c229321ddc53.zip
-rw-r--r--ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java
index ebe2bc61e..1f1968c0d 100644
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java
+++ b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -378,13 +378,10 @@ public class AntCorePreferences implements org.eclipse.core.runtime.Preferences.
Property[] result = new Property[properties.length];
for (int i = 0; i < properties.length; i++) {
String propertyName = properties[i];
- String[] values = getArrayFromString(prefs.getString(IAntCoreConstants.PREFIX_PROPERTY + propertyName));
- if (values.length < 1) {
- continue;
- }
+ String value = prefs.getString(IAntCoreConstants.PREFIX_PROPERTY + propertyName);
Property property = new Property();
property.setName(propertyName);
- property.setValue(values[0]);
+ property.setValue(value);
result[i]= property;
}
return result;

Back to the top