You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ma...@apache.org on 2013/05/28 10:21:56 UTC
svn commit: r1486812 - in /felix/trunk/deploymentadmin/autoconf: pom.xml
src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java
Author: marrs
Date: Tue May 28 08:21:56 2013
New Revision: 1486812
URL: http://svn.apache.org/r1486812
Log:
Updated to a stable metatype, which required a small code change. Small updates to the import statements, adding an attribute that can be used by a management agent.
Modified:
felix/trunk/deploymentadmin/autoconf/pom.xml
felix/trunk/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java
Modified: felix/trunk/deploymentadmin/autoconf/pom.xml
URL: http://svn.apache.org/viewvc/felix/trunk/deploymentadmin/autoconf/pom.xml?rev=1486812&r1=1486811&r2=1486812&view=diff
==============================================================================
--- felix/trunk/deploymentadmin/autoconf/pom.xml (original)
+++ felix/trunk/deploymentadmin/autoconf/pom.xml Tue May 28 08:21:56 2013
@@ -46,18 +46,18 @@
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>org.apache.felix.dependencymanager</artifactId>
- <version>3.0.0</version>
+ <version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>org.apache.felix.deploymentadmin</artifactId>
- <version>0.9.0</version>
+ <version>0.9.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>org.apache.felix.metatype</artifactId>
- <version>1.0.5-SNAPSHOT</version>
+ <version>1.0.6</version>
</dependency>
</dependencies>
<build>
@@ -87,6 +87,7 @@
<Bundle-Description>A customizer bundle that publishes a Resource Processor service that processes configuration resources shipped in a Deployment Package.</Bundle-Description>
<Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
<Private-Package>org.apache.felix.deployment.rp.autoconf, org.apache.felix.metatype, org.apache.felix.metatype.internal.l10n, org.apache.felix.metatype.internal, org.kxml2.io;-split-package:=merge-first, org.xmlpull.v1;-split-package:=merge-first, org.osgi.service.metatype;-split-package:=merge-first</Private-Package>
+ <Import-Package>org.apache.felix.dm;managementagent=true,org.osgi.service.deploymentadmin;managementagent=true,org.osgi.service.deploymentadmin.spi;managementagent=true,org.osgi.service.event;managmentagent=true,org.osgi.service.log;managementagent=true,*</Import-Package>
<Export-Package>org.osgi.service.deploymentadmin.spi;version="1.0"</Export-Package>
<DeploymentPackage-Customizer>true</DeploymentPackage-Customizer>
<Deployment-ProvidesResourceProcessor>org.osgi.deployment.rp.autoconf</Deployment-ProvidesResourceProcessor>
Modified: felix/trunk/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java
URL: http://svn.apache.org/viewvc/felix/trunk/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java?rev=1486812&r1=1486811&r2=1486812&view=diff
==============================================================================
--- felix/trunk/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java (original)
+++ felix/trunk/deploymentadmin/autoconf/src/main/java/org/apache/felix/deployment/rp/autoconf/AutoConfResourceProcessor.java Tue May 28 08:21:56 2013
@@ -123,9 +123,6 @@ public class AutoConfResourceProcessor i
catch (IOException e) {
throw new ResourceProcessorException(ResourceProcessorException.CODE_OTHER_ERROR, "Unable to process resource.", e);
}
- catch (XmlPullParserException e) {
- throw new ResourceProcessorException(ResourceProcessorException.CODE_OTHER_ERROR, "Supplied configuration is not conform the metatype xml specification.", e);
- }
if (data == null) {
throw new ResourceProcessorException(ResourceProcessorException.CODE_OTHER_ERROR, "Supplied configuration is not conform the metatype xml specification.");
}