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.
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.
<Mark.Melvin@xxxxxxxxxx> Sent by: p2-dev-bounces@xxxxxxxxxxx
05/11/2009 11:50 AM
Please respond to
P2 developer discussions <p2-dev@xxxxxxxxxxx>
"P2 developer discussions"
[p2-dev] Avoiding JRE IUs and Generator
I am trying to integrate the P2 stuff into my build and I am getting
entries in my metadata for individual features like this:
I am calling the "p2.generator" Ant task with noDefaultIUs set
(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
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.
p2-dev mailing list