I implemented this in trunk so that people can play with it. The felix.auto.deploy.action property is a comma-delimited list of the following actions: install, start, update, and uninstall.

   * install = install any discovered bundles in the auto-deploy directory.
   * start = start any discovered bundles in the auto-deploy directory.
   * update = update any discovered bundles in the auto-deploy
     directory if they are already installed.
   * uninstall = uninstall any installed bundles that are not
     discovered in the auto-deploy directory.

Note that start does not imply install, so if only start is specified, then it will only start bundles discovered in the auto-deploy directory if they were previously installed. Also note that there is no default value for this property; leaving it undefined or blank is the equivalent of disabling it.

Currently, I have set the value in config.properties to be "install,start,update".

-> richard

On 8/6/09 11:10, Marcel Offermans wrote:
On Aug 6, 2009, at 0:23 , Richard S. Hall wrote:

Actually, I had an idea which could make all of it possible if we are going to introduce a configuration switch. Make the switch like this:

   felix.auto.deploy.action=<comma-delimited-actions>

Where possible actions include "install", "start", "update", and "uninstall". The default value would be "install,start,update".

This way, people could customize the behavior to their specific needs and it would still be easy to implement.

That sounds like both an easy and flexible solution!

Greetings, Marcel

Reply via email to