本文介绍了Apache Felix文件安装示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何有关如何配置/安装Apache Felix File安装的示例?在官方网站上已经提到需要配置属性等.但是他们没有提到您需要在何处放置这些配置属性,如何进行设置等.

Is there any example of how to configure/install Apache Felix File install? In official website, it has been mentioned you need to configure properties etc. But no way they have mentioned where you need to put those configuration properties, how to set it up etc.

我已经下载了org.apache.felix.fileinstall-3.2.6.jar文件,并且安装了felix框架.现在我不应该将那些配置属性放在哪里,以便文件安装可以读取该信息.

I have downloaded org.apache.felix.fileinstall-3.2.6.jar file and I have felix framework installed. Now I am not getting where should I put those configuration properties so that file install will read that.

有人可以指导我吗?

推荐答案

文件中指定安装文档后,您可以通过系统属性来提供配置.以下是Felix从标准发行版开始的工作

As specified in the File Install Docs you can provide the configuration via system properties. Below steps work for Felix started from standard distribution

  1. 此处
  2. 下载Felix
  3. 解压缩内容
  4. 此处下载文件安装包,并将其复制到包文件夹中.默认情况下,Felix将自动部署该文件夹中的所有捆绑软件.
  5. 创建一个名为deploy的文件夹.此目录将使用文件安装进行配置
  6. 启动Felix java -Dfelix.fileinstall.dir=./deploy -jar bin/felix.jar.
  1. Download Felix from here
  2. Unzip the content
  3. Download the File Install bundle from here and copy it to the bundle folder. By default Felix would auto deploy all bundles from this folder.
  4. Create a folder named deploy. This directory would be configured with File install
  5. Start Felix java -Dfelix.fileinstall.dir=./deploy -jar bin/felix.jar.

现在,文件安装包将安装添加到deploy文件夹中的所有jar

Now any jar which is added to the deploy folder would be installed by the File Install bundle

这篇关于Apache Felix文件安装示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 13:24