Repository Target Generator

Editor and Generator for .target and category.xml

Install

Update site: http://joergreichert.github.io/RepositoryTargetGenerator/updatesite/

Editing

Auto completion

After having defined the URL of a repository you get auto completion for the features resp. plug-ins contained in this P2 repository or update site.

Having a plug-in selected you can further trigger auto completion of the versions the selected element is available in.

DSL Editor

Category assignment

It is possible to define categories to be used to group the items in the generated category.xml.

You can then can assign one or more category to the units directly. Additionally you can also assign categories to the location, then these selection is applied to all units that don't have categories assigned directly.

Categories in DSL

In the generated category.xml you can see the items grouped by category.

Categories generated

Versioning

As the category.xml is used to build P2 repositories but the actually resolution of the items is done against the target definition file you can set the version in category.xml to 0.0.0 so the latest available version in the target platform is used. If you want to specify for whatever reasion the exact version you can write "strictVersion" beside certain units or beside the location to apply strict versioning for all units of this repository.

Validation

There is a context menu entry "Validate" to check the URLs, categoryIds and versions in the given target definition.

Validate Button

These validation take some time as the repositories have to be visited thus this process runs in background.

Validation in background

For non existing URIs, categoryIds and versions there are produced error markers, if there are newer versions there are warn markers created.

Markers in the DSL editor

For the warn markers there are offered quickfixes to update the current version with the last available one.

Quickfixes in the DSL editor

Generation

When saving the targetdef file a target file and a category.xml file are generated within the projects's src-gen folder. The name of the generated target file you can influence by specifying the target file name inside the targetdef file.

Transformation

In some cases you may already have an existing target file in place. With the context menu action "Generate targetdef" you are able to transform this file into the targetdef format.

Transform existing target file


Navigate back to overview.