Author: davidb
Date: Thu Dec 18 12:01:45 2008
New Revision: 727805
URL: http://svn.apache.org/viewvc?rev=727805&view=rev
Log:
Create config.properties.append file that can be conveniently appended to the
default Felix config.properties file to deploy DOSGi into it.
This commit for the single-bundle distribution.
Modified:
cxf/sandbox/dosgi/distribution/single-bundle/pom.xml
Modified: cxf/sandbox/dosgi/distribution/single-bundle/pom.xml
URL:
http://svn.apache.org/viewvc/cxf/sandbox/dosgi/distribution/single-bundle/pom.xml?rev=727805&r1=727804&r2=727805&view=diff
==============================================================================
--- cxf/sandbox/dosgi/distribution/single-bundle/pom.xml (original)
+++ cxf/sandbox/dosgi/distribution/single-bundle/pom.xml Thu Dec 18 12:01:45
2008
@@ -231,6 +231,65 @@
</instructions>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <version>1.2.0</version>
+ <type>jar</type>
+ <outputDirectory>target/deps</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <fileset dir="target" id="single.bundle">
+ <include name="*.jar"/>
+ </fileset>
+ <pathconvert pathsep=" file:/" property="bundles"
refid="single.bundle"/>
+
+ <fileset dir="target/deps" id="dep.bundles">
+ <include name="*.jar"/>
+ </fileset>
+ <pathconvert pathsep=" file:/" property="deps"
refid="dep.bundles"/>
+
+
+ <echo file="target/config.properties.append">
+org.osgi.framework.startlevel=2
+felix.auto.start.2=
+ </echo>
+ <echo message=" file:/${deps} file:/${bundles}"
file="target/config.properties.append" append="true"/>
+
+ <replace file="target/config.properties.append" token="\"
value="/"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>