You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ba...@apache.org on 2008/12/23 14:27:09 UTC

[OSS Bamboo] Apache Felix - Default build 1306 was SUCCESSFUL (with 32 tests). Change made by clement

-----------------------------------------------------------
FELIX-DEF-1306 was successful.
-----------------------------------------------------------
Code has been updated by clement.
32 tests in total.

http://opensource.bamboo.atlassian.com/browse/FELIX-DEF-1306/        


--------------
Code Changes
--------------
clement (728951):

>Fix issue Felix-846.
>Despite the provided approach is not the cleanest (due to a maven issue), this patch allows setting iPOJO metadata in the pom file inside a CDATA block such as in:
>	<plugin>
>		<groupId>org.apache.felix</groupId>
>		<artifactId>maven-ipojo-plugin</artifactId>
>		<version>1.1.0-SNAPSHOT</version>
>		<executions>
>			<execution>
>				<goals>
>					<goal>ipojo-bundle</goal>
>				</goals>
>				<configuration>
>					<ignoreAnnotations>true</ignoreAnnotations>
>					<metadata>
>   					<![CDATA[
>   					<ipojo 
>    					xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>						xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/1.1.0-SNAPSHOT/core.xsd 
>	 					org.apache.felix.ipojo.whiteboard http://felix.apache.org/ipojo/schemas/1.1.0-SNAPSHOT/whiteboard-pattern.xsd"
>						xmlns="org.apache.felix.ipojo"
>						xmlns:wbp="org.apache.felix.ipojo.whiteboard">
>						<component classname="org.apache.felix.ipojo.test.FooProvider" name="fooprovider">
>							<provides>
>								<property field="foo" value="foo"/>
>							</provides>
>						</component>
>	
>						<component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-providers">
>								<wbp:wbp 
>									filter="(objectclass=org.apache.felix.ipojo.test.FooService)" 
>									onArrival="onArrival" onDeparture="onDeparture" onModification="onModification"
>								/>
>								<provides/>
>						</component>
>	
>						<component classname="org.apache.felix.ipojo.test.FooWhiteBoardPattern" name="under-properties">
>								<wbp:wbp filter="(foo=foo)" onArrival="onArrival" onDeparture="onDeparture" 
>									onModification="onModification"
>								/>
>								<provides/>
>						</component>
>					</ipojo>
>					]]>
>					</metadata>
>				</configuration>
>			</execution>
>		</executions>
>	</plugin>
>	
>	
>So, the metadata attribute can be either absent (only annotations), or can contain the name of the metadata file or can contain iPOJO metadata in a CDATA block.


--
This message is automatically generated by Atlassian Bamboo