[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Avoiding JRE IUs and Generator Mode?


Mark,
I don't see any way to turn off the generation of this IU using that task.

The incremental mode keeps the results of the generation around in memory so that the next invocation of the task will add to them.  Mode "final" will then clear those accumulated results and also generate a parent container IU if a .product file is used or root id is provided.

Note that this "p2.generator" task is the 3.4 based metadata generator.  3.5 has a new publisher which supports more customization (through the p2.inf file) that the generator didn't.  There are publisher tasks that could be used to avoid the jre IU if you were only doing features, unfortunately they aren't yet documented.

The "p2.publish.featuresAndBundles" task will publish built feature and plugin jars.  It supports a  "source" attribute specifying a directory containing features and plugins subfolders.  It also supports nested <features> and <bundles> elements which are ant Filesets specifying features and bundles to publish.  It also has the following attributes that should correspond to the same thing on the p2.generator task: artifactRepository, metadataRepository, artifactRepositoryName, metadataRepositoryName, append, compress, publishArtifacts.  Using this task won't create jre IUs.

-Andrew




"Mark Melvin" <Mark.Melvin@xxxxxxxxxx>
Sent by: p2-dev-bounces@xxxxxxxxxxx

05/11/2009 11:50 AM

Please respond to
P2 developer discussions <p2-dev@xxxxxxxxxxx>

To
"P2 developer discussions" <p2-dev@xxxxxxxxxxx>
cc
Subject
[p2-dev] Avoiding JRE IUs and Generator Mode?





Hi There,

I am trying to integrate the P2 stuff into my build and I am getting
entries in my metadata for individual features like this:

<unit id='config.a.jre' version='1.6.0' singleton='false'>
  ...
</unit>

<unit id='a.jre' version='1.6.0' singleton='false'>
 <provides size='159'>
     <provided namespace='org.eclipse.equinox.p2.iu' name='a.jre'
version='1.6.0'/>
  ....
</unit>


I am calling the "p2.generator" Ant task with noDefaultIUs set to "true"
(which avoids generating a whole pile of cruft), but the JRE stuff still
gets in there.  Is there any way to avoid the JRE stuff?  I plan on
merging all of my metadata at the end when I combine all of my features
into one large repository.

Also, what is the difference between "incremental" mode and "final"
mode?  I build my features individually using a custom set of scripts
and I think I want mode="final", but I'd like to know that the
difference is between the two.

Thanks,
Mark.
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev