Product build generates folder artifacts [message #491209] |
Tue, 13 October 2009 12:03  |
Eclipse User |
|
|
|
I'm writing this because I didn't find anything on google.
I have a product build that generates some folder artifacts. For example:
<artifact classifier='osgi.bundle'
id='org.eclipse.equinox.launcher.gtk.linux.s390'
version='1.0.100.v20090426-1530'>
<properties size='2'>
<property name='artifact.size' value='66989'/>
<property name='download.size' value='66981'/>
</properties>
<repositoryProperties size='1'>
<property name='artifact.folder' value='true'/>
</repositoryProperties>
</artifact>
And in fact, the artifact binary is a folder. Such a repository cannot
be mirrored over http. When I try to mirror this repo, I get the
following error message:
[p2.mirror] Artifact
osgi.bundle,org.eclipse.equinox.launcher.gtk.linux.s390,1.0. 100.v20090426-1530
is a folder but the repository is an archive or remote location.
Here is the solution: run the <p2.process.artifacts> task over such a
repository and the folder artifacts are gone.
Best regards,
Peter
|
|
|
|
Re: Product build generates folder artifacts [message #491351 is a reply to message #491228] |
Wed, 14 October 2009 05:11  |
Eclipse User |
|
|
|
Now, I have found a solution that really works: The target mirror must
be preloaded with org.eclipse.rcp (e.g.) before one mirrors from an
artifact repository with folders. If an artifact is already present at
the destination, the mirror-app will not complain.
Peter
|
|
|
Re: Product build generates folder artifacts [message #602469 is a reply to message #491209] |
Tue, 13 October 2009 13:17  |
Eclipse User |
|
|
|
Peter Kullmann schrieb:
>
> Here is the solution: run the <p2.process.artifacts> task over such a
> repository and the folder artifacts are gone.
>
I was too fast: p2.process.artifacts does in fact remove the
"artifact.folder" property from the artifacts.xml but does not change
the binaries themselves. So, I assume it's a bug in
p2.process.artifacts. If I mirror now, it says:
[p2.mirror] Messages while mirroring artifact descriptors.
[p2.mirror] Artifact not found:
osgi.bundle,org.eclipse.equinox.launcher.gtk.solaris.x86,1.0 .201.R35x_v20090720.
[p2.mirror]
http://cruise/repos/nightly/plugins/org.eclipse.equinox.laun cher.gtk.solaris.x86_1.0.201.R35x_v20090720.jar
Now, I don't know how to procede. I cannot use the generated repository
by pde build. As I am the first to have run into this problem I think
there must be something wrong in my build setup. Any ides would be
greatly appreciated.
Peter
|
|
|
Re: Product build generates folder artifacts [message #602481 is a reply to message #491228] |
Wed, 14 October 2009 05:11  |
Eclipse User |
|
|
|
Now, I have found a solution that really works: The target mirror must
be preloaded with org.eclipse.rcp (e.g.) before one mirrors from an
artifact repository with folders. If an artifact is already present at
the destination, the mirror-app will not complain.
Peter
|
|
|
Powered by
FUDForum. Page generated in 0.06618 seconds