Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Product build generates folder artifacts
Product build generates folder artifacts [message #491209] Tue, 13 October 2009 16:03 Go to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
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 #491228 is a reply to message #491209] Tue, 13 October 2009 17:17 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
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 #491351 is a reply to message #491228] Wed, 14 October 2009 09:11 Go to previous message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
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 17:17 Go to previous message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
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 09:11 Go to previous message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
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
Previous Topic:Hiding commands' UI elements
Next Topic:Listener for Popupmenu command
Goto Forum:
  


Current Time: Fri Apr 26 05:41:00 GMT 2024

Powered by FUDForum. Page generated in 0.03111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top