commit | 4f4b673c60e8179b2a6d31277ba8d973719f164b | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Tue Sep 08 07:01:28 2009 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Tue Sep 08 07:01:28 2009 +0000 |
tree | a7a62f80334a9cbe68f378cb992b1fe10c27a7ab | |
parent | 16123df367705a2921ed5f0aec24d0aa361569d4 [diff] |
Throw error if compoent factory and metatype factory pid are used together (instead of warning) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@812351 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java index 0144763..2662880 100644 --- a/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java +++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
@@ -523,7 +523,7 @@ if ( component.getFactory() == null ) { designate.setFactoryPid( component.getName() ); } else { - iLog.addWarning("Component factory " + component.getName() + " should not set metatype factory pid."); + iLog.addError("Component factory " + component.getName() + " should not set metatype factory pid."); } } // designate.object