Apache Felix file installation example

Is there any example of configuring / installing Apache Felix File install? On the official website, it was mentioned that you need to set properties, etc. But in no way did they mention where you need to set these configuration properties, how to configure it, etc.

I downloaded the org.apache.felix.fileinstall-3.2.6.jar file and I have the felix framework installed. Now I do not get where I put these configuration properties so that the installation file reads this.

Can someone help me with this?

+4
source share
1 answer

As stated in the File Installation Documents , you can provide configuration through system properties. Below the steps for Felix began with the standard distribution

  • Download Felix from here
  • Unzip the contents
  • Download the file installation package from here and copy it to the package folder. By default, Felix will automatically deploy all packages from this folder.
  • Create a folder called deploy . This directory will be configured with the installation of the file
  • Start Felix java -Dfelix.fileinstall.dir=./deploy -jar bin/felix.jar .

Now any jar added to the deployment folder will be installed by the File Install package

+7
source

Source: https://habr.com/ru/post/1481873/


All Articles