Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHeadless build contribute root files twice when p2.gathering=true
https://www.eclipse.org/forums/index.php/mv/msg/153453/483318/#msg_483318
I had a pde headless build for a product with the JRE being contributed
through a feature and everything was working fine.
Now I want to enable p2 for this build, so I added p2.gathering=true to my
build.properties and after solving a few issues and defining an update
site for external dependencies I have a successful product build.
So far so good. But wait, now the zip is 30Mo bigger because the JRE is
included twice:
- once under the jre folder as it should be
- once under p2/org.eclipse.equinox.p2.core/cache/binary in a single file
called [feature name]_root.win32.win32.x86_1.0.0
I have tried manually removing the cache folder and the product seems to
be launching properly, I haven't try the run a p2 update yet.
So my questions are:
1) Is this file necessary?
2) How can I avoid generating this file?
thanks in advance,
Patrick.]]>Patrick Roumanoff2009-09-01T04:27:23-00:00Re: Headless build contribute root files twice when p2.gathering=true
https://www.eclipse.org/forums/index.php/mv/msg/153453/494091/#msg_494091
Is there any way to clean the p2 download cache after executing the director call?]]>Urs Breu2009-10-29T08:11:57-00:00Re: Headless build contribute root files twice when p2.gathering=true
https://www.eclipse.org/forums/index.php/mv/msg/153453/603007/#msg_603007
Is there any way to clean the p2 download cache after executing the director call?]]>Urs Breu2009-10-29T08:11:59-00:00Re: Headless build contribute root files twice when p2.gathering=true
https://www.eclipse.org/forums/index.php/mv/msg/153453/494215/#msg_494215
Also, it is used if someone else points at your eclipse install and uses
it as a repository. If the cache is there, it is possible to point at
an existing install and fully re-create a new install of it.
If the cache is not there, then both of these will require downloading
artifacts from some other repository.
I don't know if there is a way to avoid having the cache in the first
place, but you can delete the cache during the build. The Eclipse SDK
itself used to delete the cache, but stopped doing that for 3.5 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=270508)
Use customAssembly.xml/pre.archive, something like
<target name="pre.archive">
<delete failonerror="false" includeEmptyDirs="true"
dir="${eclipse.base}/p2/org.eclipse.equinox.p2.core/cache"
/>
</target>
Urs Breu wrote:
> I am having the same issue.
> Is there any way to clean the p2 download cache after executing the
> director call?]]>Andrew Niefer2009-10-29T15:25:25-00:00Re: Headless build contribute root files twice when p2.gathering=true
https://www.eclipse.org/forums/index.php/mv/msg/153453/603016/#msg_603016
Also, it is used if someone else points at your eclipse install and uses
it as a repository. If the cache is there, it is possible to point at
an existing install and fully re-create a new install of it.
If the cache is not there, then both of these will require downloading
artifacts from some other repository.
I don't know if there is a way to avoid having the cache in the first
place, but you can delete the cache during the build. The Eclipse SDK
itself used to delete the cache, but stopped doing that for 3.5 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=270508)
Use customAssembly.xml/pre.archive, something like
<target name="pre.archive">
<delete failonerror="false" includeEmptyDirs="true"
dir="${eclipse.base}/p2/org.eclipse.equinox.p2.core/cache"
/>
</target>
Urs Breu wrote:
> I am having the same issue.
> Is there any way to clean the p2 download cache after executing the
> director call?]]>Andrew Niefer2009-10-29T15:25:25-00:00