Skip to content

Adding "append" Feature to p2asmaven plugin #43

Closed
@hacki11

Description

@hacki11

On a dependency change in the p2asmaven plugin config the whole already downloaded repository is deleted and redownloaded.

The p2.mirror ant tasks supports an "append" feature where one can set true for keeping the downloaded dependencies and just adding the new. Setting this to false will remove all deps from the target repository beforehand. During integration of the plugin, it is often needed to add dependencies incrementally and a whole rebuild is needed (up to 40 minutes).

To add this feature i think the following would have to be changed:

Instead of it should be called

destination.attributes().put("location", FileMisc.asUrl(dstFolder));

https://wiki.eclipse.org/Equinox/p2/Ant_Tasks#Simple_Examples

Instead of deleting the directory:

a method "append(boolean)" can be introduced inside P2Model. If set, the ant task will clean the target dir.

This will improve the time of getting an application compiled in eclipse against all the needed dependencies without the redownload hassle (i installed a nexus p2 mirror but still costs time)

are you interested in a pull request regarding this feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions