Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Property

Default

Description

felix.fileinstall.poll

2000 ms

Number of milliseconds between 2 polls of the directory

felix.fileinstall.dir

./load

The name of the directory to watch. Several directories can be specified by using a comma separated list.

felix.fileinstall.log.level

0

Threshold of logging information

felix.fileinstall.bundles.new.start

true

Automatically start newly discovered bundles

felix.fileinstall.filter

 

A regular expression to be used to filter file names

felix.fileinstall.tmpdir

./tmp

The name of the temporary directory to use with exploded or transformed bundles

felix.fileinstall.noInitialDelay

false

Determines if File Install waits felix.fileinstall.poll milliseconds before doing an initial scan or not.

felix.fileinstall.bundles.startTransient

false

If true, File Install will start the bundles transiently.

felix.fileinstall.start.level

false

If set to a value different from 0, File Install will set the start level for deployed bundles to that value.

...

Watching multiple directories with File Install

Starting with version 3.1.0 it is possible to specify several directories to watch with the system property felix.fileinstall.dir; this property can either point to a single directory or a comma separated list of directories. In addition, Apache Felix File Install provides a ManagedServiceFactory to create multiple instances of File Install. Asuming you have a File Install bundle watching a bundles folder, creating a new instance is as simple as creating a new configuration file org.apache.felix.fileinstall-<pid>.cfg in that folder (substitute <pid> with a unique Id for the new service instance):

...