File Scanner

Overview

The file scanner handles a set of bundles listed in plain text file(s).

Syntax

scan-file:file_url[@start_level][@nostart][@update]

where:

The above options: start_level/nostart/update can be specified in any order.

Examples

File Format

Files containing bundles to be installed must be plain text files containing url's of the bundles to be installed on separate line, one bundle per line and/or system properties. If system properties are present, those will be carried into the OSGi platform.
The syntax of an bundle reference is as follow:

bundle_url[@start_level][@nostart][@update]

where:

The syntax of a property is as follow:

-Dproperty-name=propertyvalue

where

The file can contain empty lines or lines starting with #, case when those lines will be skipped. This allows nice separation and comments.

File Examples
# and bundle from the local hard drive with no specific start level that is installed and started
file:/C:/localRepository/org/ops4j/pax/web/bundles/service/0.2.0/service-0.2.0.jar

# a maven artifact bundle installed with start level = 5 and started
mvn:org.ops4j.pax.web.bundles/service@5

# an bundle installed from http with no specific start level that is just installed and not started
http://repository.ops4j.org/maven2/org/ops4j/pax/web/bundles/service/0.2.0/service-0.2.0.jar@nostart

# a maven artifact bundle that will be updated if installed before and started
mvn:org.ops4j.pax.web.bundles/service@update

# properties for http service ports
-Dorg.osgi.service.http.port=2080
-Dorg.osgi.service.http.port.secure=2443

Note that, as stated by the maven handler, if you use an mvn: url, you could use in your url the repository from where the bundle could be downloaded.

Configuration

The service can be configured in two ways: via configuration admin if available and via framework/system properties where the configuration via config admin has priority.

Option key Description
org.ops4j.pax.runner.scanner.file.startlevel optional; default start level
org.ops4j.pax.runner.scanner.file.start optional; true/false - if installed bundles should be started or not. Default value is true, so the bundles are started.
org.ops4j.pax.runner.scanner.file.update optional; true/false - if installed bundles should be updated or not. Default value is false, so the bundles will not be updated.

Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Activity
- Advanced

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

Other Features

Add Content

- Add Comment


Click here to sign up for an account!
Clicky Web Analytics