[jboss-osgi-commits] JBoss-OSGI SVN: r87993 - in projects/jboss-osgi/bundles: apache-xerces and 10 other directories.
jboss-osgi-commits at lists.jboss.org
jboss-osgi-commits at lists.jboss.org
Wed Apr 29 07:47:22 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-04-29 07:47:21 -0400 (Wed, 29 Apr 2009)
New Revision: 87993
Added:
projects/jboss-osgi/bundles/apache-xerces/.classpath
projects/jboss-osgi/bundles/apache-xerces/.project
projects/jboss-osgi/bundles/apache-xerces/.settings/
projects/jboss-osgi/bundles/apache-xerces/.settings/org.eclipse.jdt.core.prefs
projects/jboss-osgi/bundles/apache-xerces/.settings/org.maven.ide.eclipse.prefs
projects/jboss-osgi/bundles/apache-xerces/src/
projects/jboss-osgi/bundles/apache-xerces/src/main/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/xerces/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/xerces/internal/
projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/xerces/internal/XercesParserActivator.java
Modified:
projects/jboss-osgi/bundles/apache-xerces/pom.xml
projects/jboss-osgi/bundles/pom.xml
Log:
Add BundleActivator to xerces bundle
Added: projects/jboss-osgi/bundles/apache-xerces/.classpath
===================================================================
--- projects/jboss-osgi/bundles/apache-xerces/.classpath (rev 0)
+++ projects/jboss-osgi/bundles/apache-xerces/.classpath 2009-04-29 11:47:21 UTC (rev 87993)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Added: projects/jboss-osgi/bundles/apache-xerces/.project
===================================================================
--- projects/jboss-osgi/bundles/apache-xerces/.project (rev 0)
+++ projects/jboss-osgi/bundles/apache-xerces/.project 2009-04-29 11:47:21 UTC (rev 87993)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>apache-xerces-bundle</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: projects/jboss-osgi/bundles/apache-xerces/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/jboss-osgi/bundles/apache-xerces/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ projects/jboss-osgi/bundles/apache-xerces/.settings/org.eclipse.jdt.core.prefs 2009-04-29 11:47:21 UTC (rev 87993)
@@ -0,0 +1,5 @@
+#Wed Apr 29 11:59:13 CEST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.source=1.3
Added: projects/jboss-osgi/bundles/apache-xerces/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- projects/jboss-osgi/bundles/apache-xerces/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ projects/jboss-osgi/bundles/apache-xerces/.settings/org.maven.ide.eclipse.prefs 2009-04-29 11:47:21 UTC (rev 87993)
@@ -0,0 +1,9 @@
+#Wed Apr 29 11:59:01 CEST 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
Modified: projects/jboss-osgi/bundles/apache-xerces/pom.xml
===================================================================
--- projects/jboss-osgi/bundles/apache-xerces/pom.xml 2009-04-29 11:37:24 UTC (rev 87992)
+++ projects/jboss-osgi/bundles/apache-xerces/pom.xml 2009-04-29 11:47:21 UTC (rev 87993)
@@ -42,6 +42,17 @@
<artifactId>xml-resolver</artifactId>
<version>${version.xml.resolver}</version>
</dependency>
+
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
<build>
@@ -49,26 +60,37 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>wrap</goal>
- </goals>
- </execution>
- </executions>
<configuration>
<instructions>
+ <Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
+ <Bundle-Activator>org.jboss.osgi.apache.xerces.internal.XercesParserActivator</Bundle-Activator>
+ <Private-Package>
+ org.jboss.osgi.apache.xerces.internal
+ </Private-Package>
<Import-Package>
- !sun.io
+ javax.xml.datatype,
+ javax.xml.namespace,
+ javax.xml.parsers,
+ javax.xml.transform*,
+ javax.xml.validation,
+ org.w3c.dom*,
+ org.xml.sax*,
+
+ <!-- osgi -->
+ org.osgi.framework,
+ org.osgi.util.xml,
+
+ <!-- ignore -->
+ !sun.io,
</Import-Package>
<Embed-Dependency>
dtdparser121;inline=false,
xercesImpl;inline=false,
- xml-apis;inline=false,
xml-resolver;inline=false,
</Embed-Dependency>
- <_exportcontents>*</_exportcontents>
+ <_exportcontents>
+ *
+ </_exportcontents>
</instructions>
</configuration>
</plugin>
Added: projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/xerces/internal/XercesParserActivator.java
===================================================================
--- projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/xerces/internal/XercesParserActivator.java (rev 0)
+++ projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/xerces/internal/XercesParserActivator.java 2009-04-29 11:47:21 UTC (rev 87993)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.osgi.apache.xerces.internal;
+
+//$Id$
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.util.xml.XMLParserActivator;
+
+/**
+ * Activat the XML parser using {@link XMLParserActivator}
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 29-Apr-2009
+ */
+public class XercesParserActivator implements BundleActivator
+{
+ private XMLParserActivator parserActivator;
+
+ public void start(BundleContext context)
+ {
+ try
+ {
+ parserActivator = new XMLParserActivator();
+ parserActivator.start(context);
+ }
+ catch (Exception ex)
+ {
+ throw new IllegalStateException("Cannot activate XML parser", ex);
+ }
+ }
+
+ public void stop(BundleContext context) throws Exception
+ {
+ if (parserActivator != null)
+ {
+ parserActivator.stop(context);
+ }
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/bundles/apache-xerces/src/main/java/org/jboss/osgi/apache/xerces/internal/XercesParserActivator.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/jboss-osgi/bundles/pom.xml
===================================================================
--- projects/jboss-osgi/bundles/pom.xml 2009-04-29 11:37:24 UTC (rev 87992)
+++ projects/jboss-osgi/bundles/pom.xml 2009-04-29 11:47:21 UTC (rev 87993)
@@ -11,8 +11,25 @@
<properties>
<version.aqute.bnd>0.0.323</version.aqute.bnd>
+ <version.osgi>r4v41</version.osgi>
</properties>
+ <!-- DependencyManagement -->
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <version>${version.osgi}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <version>${version.osgi}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<!-- Modules -->
<modules>
<module>apache-xerces</module>
More information about the jboss-osgi-commits
mailing list