aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-23 09:04:13 (EST)
committerWinston Prakash2011-12-01 20:47:12 (EST)
commitd5ce041cec18383907d32ffda4c77bea36b40e21 (patch)
tree563df989b5aa93e9e84deeac114bfb175fde2ed4
parent375fff3f3fc78ef3d6e51cda51b0f7b1f24c4e34 (diff)
downloadorg.eclipse.hudson.core-d5ce041cec18383907d32ffda4c77bea36b40e21.zip
org.eclipse.hudson.core-d5ce041cec18383907d32ffda4c77bea36b40e21.tar.gz
org.eclipse.hudson.core-d5ce041cec18383907d32ffda4c77bea36b40e21.tar.bz2
Resolve issue: publishers were not populated because of invalid method usage
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/model/BaseBuildableProject.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/hudson-core/src/main/java/hudson/model/BaseBuildableProject.java b/hudson-core/src/main/java/hudson/model/BaseBuildableProject.java
index c24db67..4d3ec47 100644
--- a/hudson-core/src/main/java/hudson/model/BaseBuildableProject.java
+++ b/hudson-core/src/main/java/hudson/model/BaseBuildableProject.java
@@ -27,6 +27,8 @@ import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import net.sf.json.JSONObject;
import org.eclipse.hudson.api.model.IProject;
import org.eclipse.hudson.api.model.project.property.BaseProjectProperty;
@@ -44,7 +46,7 @@ public abstract class BaseBuildableProject<P extends BaseBuildableProject<P,B>,B
public static final String BUILDERS_PROPERTY_NAME = "builders";
public static final String BUILD_WRAPPERS_PROPERTY_NAME = "buildWrappers";
-
+ private static final Logger LOGGER = Logger.getLogger(BaseBuildableProject.class.getName());
/**
* List of active {@link Builder}s configured for this project.
*
@@ -175,7 +177,11 @@ public abstract class BaseBuildableProject<P extends BaseBuildableProject<P,B>,B
publisherList.add(property.getValue());
}
}
- result.addAllTo(publisherList);
+ try {
+ result.addAll(publisherList);
+ } catch (IOException e) {
+ LOGGER.log(Level.WARNING, "Failed to add publishers", e);
+ }
return result;
}