Thanks!! Seshika, we should try this with Fraud artifacts. --Srinath
On Tue, Feb 9, 2016 at 11:14 AM, Chanika Geeganage <[email protected]> wrote: > Hi, > > I have done a POC to evaluate whether it is possible to package analytics > artifacts into a p2 repo. The complete set of steps can be found from [1] > > In here, p2.inf file of the analytics artifact feature is added to define > instructions for both configuration phase and un-installation phase of the > feature. For an example if we want to deploy/undeploy the > APIM_Realtime_Analytics.car file to/from the server, the content in the > p2.inf would be as below. > > instructions.configure = \ > > org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/);\ > > org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/);\ > > org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/carbonapps/);\ > > org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../../samples/capps/APIM_Realtime_Analytics.car,target:${installFolder}/../../deployment/server/carbonapps/APIM_Realtime_Analytics.car,overwrite:true);\ > > instructions.uninstall = \ > > org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../../deployment/server/carbonapps/APIM_Realtime_Analytics.car,overwrite:true);\ > > > I have attached the two projects (analytics artifact feature, feature > repository) for your reference. > > [1] > https://docs.google.com/a/wso2.com/document/d/1Oq2OXgdyR1VdEmIKbQz09cTdPC3dhNNQx3nR0HE5cVc/edit?usp=sharing > > Thanks > -- > Best Regards.. > > Chanika Geeganage > Software Engineer > WSO2, Inc.; http://wso2.com > -- ============================ Blog: http://srinathsview.blogspot.com twitter:@srinath_perera Site: http://people.apache.org/~hemapani/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
