You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jay <my...@gmail.com> on 2013/07/11 18:32:31 UTC

Auto Deploy Features whenever any change in the bundles

Hi - i have few bundles installing them as a feature in SMX. I have added the
feature repo and feature name in the file "org.apache.karaf.features.cfg" to
install whenever the smx starts or restarts rather installing my feature
manually.. working absolutely fine. 


But i am looking to automate the deployment of features whenever any change
available in my bundles..  Can some one please let me know how can i
automate my feature deployment.


I would Appreciate your help.






--
View this message in context: http://servicemix.396122.n5.nabble.com/Auto-Deploy-Features-whenever-any-change-in-the-bundles-tp5717270.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Auto Deploy Features whenever any change in the bundles

Posted by Freeman Fang <fr...@gmail.com>.
AFAIK, no, this doesn't work for feature.

Anyway, you can create a KARAF improvement jira ticket and VOTE there.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-7-12, at 下午5:02, jay wrote:

> Hello Freeman,
> Thanks for the Response. small question -> Does the dev:watch works for
> features?
> 
> i am aware that it works for bundles but i am not sure about the feature.
> also if my feature has 100 bundles certainly i cannot give the 100 id's or
> 100 url's to watch right.
> 
> So if you have any viable options it would be really nice to know..
> 
> Thanks in advance,
> Jay 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Auto-Deploy-Features-whenever-any-change-in-the-bundles-tp5717270p5717282.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Auto Deploy Features whenever any change in the bundles

Posted by jay <my...@gmail.com>.
Hello Freeman,
Thanks for the Response. small question -> Does the dev:watch works for
features?

i am aware that it works for bundles but i am not sure about the feature.
also if my feature has 100 bundles certainly i cannot give the 100 id's or
100 url's to watch right.

So if you have any viable options it would be really nice to know..

Thanks in advance,
Jay 



--
View this message in context: http://servicemix.396122.n5.nabble.com/Auto-Deploy-Features-whenever-any-change-in-the-bundles-tp5717270p5717282.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Auto Deploy Features whenever any change in the bundles

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

There's a dev:watch to monitor the snapshot bundles and reload it when it changes, see below for the details

dev:watch --help
DESCRIPTION
        dev:watch

	Watches and updates bundles.

SYNTAX
        dev:watch [options] [urls] 

ARGUMENTS
        urls
                The bundle IDs or URLs

OPTIONS
        --stop
                Stops watching all bundles
        -i
                Watch interval
        --list
                Displays the watch list
        --help
                Display this help message
        --remove
                Removes bundles from the watch list
        --start
                Starts watching the selected bundles

DETAILS
        The watch command can be used to help at developement time.  It allows you to configure a set of URLs that will be 
        monitored.  All bundles location matching the given URL will be automatically updated.  This avoids the need for 
        manually updating the bundles or even copying the bundle to the system folder if needed.  Note that only maven based 
        urls and maven snapshots will actually be updated automatically, so if you run
  
        > dev:watch *

        It will actually monitor all bundles that have a location matching mvn:* that have '-SNAPSHOT' in their url.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-7-12, at 上午12:32, jay wrote:

> Hi - i have few bundles installing them as a feature in SMX. I have added the
> feature repo and feature name in the file "org.apache.karaf.features.cfg" to
> install whenever the smx starts or restarts rather installing my feature
> manually.. working absolutely fine. 
> 
> 
> But i am looking to automate the deployment of features whenever any change
> available in my bundles..  Can some one please let me know how can i
> automate my feature deployment.
> 
> 
> I would Appreciate your help.
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Auto-Deploy-Features-whenever-any-change-in-the-bundles-tp5717270.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.