diff options
author | Mike Rennie | 2012-10-23 20:55:59 +0000 |
---|---|---|
committer | Mike Rennie | 2012-10-23 20:55:59 +0000 |
commit | d843dd78f3068432b07c6ed35793c229321ddc53 (patch) | |
tree | 01ad76744d0656cdf9d7c43386c04a6a19c0bcef | |
parent | 31140908a2931e31060535c59c4c4de750561e0e (diff) | |
download | eclipse.platform-d843dd78f3068432b07c6ed35793c229321ddc53.tar.gz eclipse.platform-d843dd78f3068432b07c6ed35793c229321ddc53.tar.xz eclipse.platform-d843dd78f3068432b07c6ed35793c229321ddc53.zip |
Bug 392638 - Ant properties cannot have values with commav20121023-205559I20121106-0800I20121031-2000I20121031-0800I20121030-2000I20121030-0800I20121029-2000I20121029-0800I20121028-2000I20121024-1200I20121024-1130
-rw-r--r-- | ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java | 9 |
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; |