On Mon, Jul 22, 2013 at 7:26 PM, Shameera Rathnayaka <[email protected]>wrote:
> Hi Devs,
>
> Currently ant maven plugin is used to change the data in bundle.info file
> on feature installation. Base on following points I would like remove this,
> 1. with this ant-maven plugin, we don't have any control, we jsut blindly
> replace all "false" values with "true".
> 2. It is bit ugly :-) .
>
> As a solution we can use standard OSGi way to do this using a custom
> touchpoint. Feature itself can change this value accordingly.
> WDYT?
>
+1. Activate is true only for pure bundles. For fragment and extension
bundles the value should be false.
I didn't like the ant-maven plugin solution anyway.
>
> This is how we use ant-maven plugin to do that, in every p2-profile-gen
> pom.xml you will see this.
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.1</version>
> <executions>
> <execution>
> <phase>package</phase>
> <configuration>
> <tasks>
> *<replace token="false" value="true"
>
> dir="${carbon-product}/repository/components">
> <include name="**/bundles.info"/>
> </replace>*
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
> Thanks,
> Shameera.
>
> --
> *Software Engineer - WSO2 Inc.*
> *email: shameera AT wso2.com <[email protected]> , shameera AT
> apache.org<[email protected]>
> *
> *phone: +9471 922 1454*
> *
> *
> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
> *Twitter : *https://twitter.com/Shameera_R
>
--
Sameera Jayasoma,
Architect,
WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev