summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaloyan Raev2012-07-25 06:19:32 (EDT)
committer John Arthorne2012-07-25 16:26:13 (EDT)
commit0e38b725542533ead0f8ccc9a4223a04909e84c0 (patch)
tree06562a06178eb52987c76d0abfcecf2289f84df1
parent72672f615793e569c2df709b159fe73a61ec6ce6 (diff)
downloadeclipse.pde.build-0e38b725542533ead0f8ccc9a4223a04909e84c0.zip
eclipse.pde.build-0e38b725542533ead0f8ccc9a4223a04909e84c0.tar.gz
eclipse.pde.build-0e38b725542533ead0f8ccc9a4223a04909e84c0.tar.bz2
Bug 376257 - Corrupted features should not prevent export of plug-ins
-rw-r--r--org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/BuildTimeSite.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/BuildTimeSite.java b/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/BuildTimeSite.java
index 7c0ffdc..34ce646 100644
--- a/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/BuildTimeSite.java
+++ b/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/site/BuildTimeSite.java
@@ -319,15 +319,17 @@ public class BuildTimeSite /*extends Site*/implements IPDEBuildConstants, IXMLCo
return null;
}
- private void resolveFeatureReferences() throws CoreException {
+ private void resolveFeatureReferences() {
FeatureReference[] features = getFeatureReferences();
for (int i = 0; i < features.length; i++) {
try {
//getting the feature for the first time will result in it being added to featureCache
features[i].getFeature();
} catch (CoreException e) {
+ // just log the exception, but do not re-throw it - let other features to be resolved
String message = NLS.bind(Messages.exception_featureParse, features[i].getURL());
- throw new CoreException(new Status(IStatus.ERROR, PI_PDEBUILD, EXCEPTION_FEATURE_MISSING, message, null));
+ IStatus status = new Status(IStatus.ERROR, PI_PDEBUILD, EXCEPTION_FEATURE_MISSING, message, e);
+ BundleHelper.getDefault().getLog().log(status);
}
}
featuresResolved = true;