8. Developing Plans

In Virgo, applications consisting of multiple bundles can be declared using one or more Plans.

To create a Plan project, right-click in the Package Explorer and select NewProject… . In the dialog that opens select VirgoPlan Project and press Next :

In the New Plan Project dialog, enter a suitable name for the project, set the location to a suitable directory, and press Next

In the next wizard page, you can optionally specify a Plan name to also have a Plan file created for you by the wizard.

When creating additional Plan files, make sure you place them within the source folder. You can now add Plan files to the Virgo Runtime in Eclipse via the usual add/remove dialog or by means of drag and drop.

8.1 Benefit of using Plan files

Plan projects and plan files can be used as an alternative to adding individual bundles to the test environment integrated in Eclipse. The main benefits of using Plan files are:

  • Plan files can be more easily shared with coworkers and/or committed to a source code repository

  • It may be more convenient to re-order the content of a Plan file using the Eclipse text editor than editing artefact ordering in the Server Editor

  • Plan files can be composed of other plan files

  • Items in Plan files will be picked either from the workspace or from the configured bundle repositories

  • Using Plan files in the test environment is more representative of the production deployment