Now I see IU, now IU don't

>> Tuesday, November 03, 2009

Eclipse 3.6M3 went out the door over the weekend, along with a lot of Halloween candy.

Sometimes, you can have too much Halloween candy. And sometimes, you can have too many IUs in your p2 repo. Don't believe me - just look at this repo with bogus bundles - scary!

Both scenarios can cause your friendly neighbourhood release engineer pain. This is unusual because we're a very pain tolerant people. To alleviate the suffering, the p2 team added an Ant task in 3.6M3 that allows you to remove bundles from your repo. As much as I love spending quality time at the command line modifying metadata, Ant tasks that automate tedious jobs are even better.

The p2.remove.iu task will remove both the metadata and the bundle from the repository for a specified IU. For example, if you had bogus packed* bundles in your repo, this task would remove them.

<repository location="file://${reposource}" />
<iu id="" artifacts="(format=packed)" />
<iu id="" artifacts="(format=packed)" />
<iu id="" artifacts="(format=packed)" />
<iu id="" artifacts="(format=packed)" />

This task is useful if you'd like to remove some built time bundles from your repo. Or just correct a mistake after a release. It happens. In any case, it's all good. Almost as tasty as chocolate.

Related bugs

Support excluding bundles when running p2.process.artifacts task
p2.remove.iu task should have an option to specify to remove packed file only
ICU jars at Eclipse 3.5 update site have size of 0


Post a Comment

  © Blogger template Simple n' Sweet by 2009

Back to TOP