diff options
| author | Kaloyan Raev | 2012-07-25 10:19:32 +0000 |
|---|---|---|
| committer | John Arthorne | 2012-07-25 20:26:13 +0000 |
| commit | 0e38b725542533ead0f8ccc9a4223a04909e84c0 (patch) | |
| tree | 06562a06178eb52987c76d0abfcecf2289f84df1 | |
| parent | 72672f615793e569c2df709b159fe73a61ec6ce6 (diff) | |
| download | eclipse.pde.build-0e38b725542533ead0f8ccc9a4223a04909e84c0.tar.gz eclipse.pde.build-0e38b725542533ead0f8ccc9a4223a04909e84c0.tar.xz eclipse.pde.build-0e38b725542533ead0f8ccc9a4223a04909e84c0.zip | |
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.java | 6 |
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 7c0ffdc3..34ce6466 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; |
