aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-23 09:04:13 (EST)
committerWinston Prakash2011-12-01 20:47:12 (EST)
commitbdf469bfe5cf37551fe567c4af2dbb3916b967c5 (patch)
tree8c757e48db1d4f6abc07ed43c932b1407d432951
parent99674f3f5fba821b62e9593a350392c8656d34f9 (diff)
downloadorg.eclipse.hudson.core-bdf469bfe5cf37551fe567c4af2dbb3916b967c5.zip
org.eclipse.hudson.core-bdf469bfe5cf37551fe567c4af2dbb3916b967c5.tar.gz
org.eclipse.hudson.core-bdf469bfe5cf37551fe567c4af2dbb3916b967c5.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;
}