Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsboshev2008-09-24 09:18:53 +0000
committersboshev2008-09-24 09:18:53 +0000
commitfba0db71911c0d543d364e0a54259ed55e0b52d2 (patch)
treef7b23528fcbc49e5e07b743554db197dc12c08c6
parent0b70d4a64bfda1e56fd384d60c2ebdb8ef5d5074 (diff)
downloadrt.equinox.bundles-fba0db71911c0d543d364e0a54259ed55e0b52d2.tar.gz
rt.equinox.bundles-fba0db71911c0d543d364e0a54259ed55e0b52d2.tar.xz
rt.equinox.bundles-fba0db71911c0d543d364e0a54259ed55e0b52d2.zip
Bug 221994. [ds] Log a warning when XML document does not contain any service component
-rw-r--r--bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java b/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java
index 5c1a71fa1..de21a641b 100644
--- a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java
+++ b/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java
@@ -78,9 +78,13 @@ public abstract class ComponentStorage {
try {
is = url.openStream();
if (is == null) {
- Activator.log.error("[SCR] ComponentStorage.parseXMLDeclaration(): missing file " + url, null);
+ Activator.log.error("[SCR] Could not open stream to component definition file " + url, null);
} else {
+ int compSize = components.size();
parser.parse(is, bundle, components, url.toString());
+ if (compSize == components.size()) {
+ Activator.log.warning("[SCR] No components were found while processing component definition file " + url, null);
+ }
}
} catch (IOException ie) {
Activator.log.error("[SCR] Error occurred while opening component definition file " + url, ie);

Back to the top