IntelliJ IDEA 11.1 Web Help

9.0+
Some features described here are available in Ultimate edition only.

File | Project Structure | Modules - module - OSGi facet


Use this page to configure support of OSGi bundles generation.

Note

Prerequisite: Osmorc plugin should be enabled.

The available tabs are:

General tab

Item Description
Bundle Creation In this area, specify the bundling method and appoint the OSGi Bundle manifest file to use (or specify the way to create a new one). The available options are:
  • Create manifest using facet settings and bundle using facet configuration - select this option to have bundles assembled according to the configuration settings specified in the Bundle JAR tab and the manifest file generated according to the settings of the Manifest Generation tab.
  • Use existing manifest and bundle using facet configuration - select this option to have bundles assembled according to the configuration settings specified in the Bundle JAR tab and use an existing manifest file of your choice.
    In the Manifest file location area, appoint the manifest file to apply.
    • Select the Use Project default option to use the manifest file that is appointed default for the current project in the OSGi: Project Settings dialog box.
    • Alternatively, choose to use a custom manifest file. In the text box, type the path to the desired file relative to the project root or click the Browse button browseButton and choose the desired location in the Select Path dialog box, that opens.
  • Create using bnd and ignore facet configuration - select this option to have bundles assembled using the bnd.
    In the Bnd file location text box, specify the path to the .bnd file to use. Type the path manually or click the Browse button browseButton and choose the desired location in the Select Path dialog box, that opens.

Bundle jar tab

Warning

The controls in this tab are not available if you have selected the Create using bnd and ignore facet configuration option in the General tab.

Item Description
JAR File to Create In this text box, specify the location of the OSGi bundle JAR. Type the path manually or click the Browse button browseButton and choose the desired location in the Select JAR File dialog box, that opens.
Always Rebuild JAR File Select this check box to have the OSGi bundle JAR file rebuilt upon every module make.
Additional JAR Contents In this area, specify extra sources to be packaged into the JAR and the target location where to store the packaging results.
  • Source File/Folder - this read-only field shows the full path to the sources to package.
  • Destination File/Folder (Relative to JAR Root - this read-only field shows where to place the packaging results.
  • add (Alt+InsertControl N ) - use this icon or shortcut to open the Choose Source File or Folder dialog box, where you can specify the desired extra sources to be included in the JAR file.
  • editFlexLibrary (EnterEnter) - use this icon or shortcut to open the Choose Source File or Folder dialog box, where you can choose a different extra source file or folder.
  • delete (Alt+DeleteCommand Delete) - use this icon or shortcut to remove the selected source - destination mapping from the list.

Manifest generation tab

Warning

The controls in this tab are only available when the Create manifest using facet settings and bundle using facet configuration option is selected in the General tab.

Item Description
Symbolic Name In this text box, specify an alias to refer to the bundle.
Bundle Activator In this text box, specify the class that implements the OSGi activator. Type the class name or click the Browse button browseButton and choose it in the Select Bundle Activator Class dialog box, that opens.
Bundle Version In this text box, specify the version of the framework integrator used.
Additional Properties In this text box, type additional properties to be included in the manifest.mf manifest file. Syntax highlighting, auto-completion, and intention actions are available.

See Also

Reference:

External Links:

Web Resources: