Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to use multiple p2 repos in a pdebuild?
How to use multiple p2 repos in a pdebuild? [message #538915] Wed, 09 June 2010 05:39 Go to next message
Eclipse UserFriend
Originally posted by: wbeckwith.gmail.com

My situation is that I have a target composed of the eclipse RCP runtime
+ the delta pack and another directory of 3rd party dependencies. We
can add the dependencies directory to the pluginPath variable and all
will compile down fine. However, when the ant task p2.mirror executes,
it only sees the repo at the target. The dependencies repo is not taken
into context.

I figure there might be ant properties that maybe go into the builder's
build.properties file that may instruct the build file generation to
create another <source> element that points to the 2nd dependencies
repo. If there is, or there is a better of structure this outside of
dumping everything into the same directory, please let me know.

Wb
Re: How to use multiple p2 repos in a pdebuild? [message #539083 is a reply to message #538915] Wed, 09 June 2010 15:17 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You want "p2.context.repos" which should be a comma separated list of URIs.

Somewhat related are:
"repoBaseLocation" - a folder containing other repositories in zips or
subfolders. These repositories will be transformed using repo2runnable.
"transformedRepoLocation" - the location of the repository where the
results of the repoBaseLocation transformation should go.

"transformedRepoLocation" is automatically added to the list of context
repositories with p2.context.repos.

-Andrew

Wendell Beckwith wrote:

> My situation is that I have a target composed of the eclipse RCP runtime
> + the delta pack and another directory of 3rd party dependencies. We
> can add the dependencies directory to the pluginPath variable and all
> will compile down fine. However, when the ant task p2.mirror executes,
> it only sees the repo at the target. The dependencies repo is not taken
> into context.
>
> I figure there might be ant properties that maybe go into the builder's
> build.properties file that may instruct the build file generation to
> create another <source> element that points to the 2nd dependencies
> repo. If there is, or there is a better of structure this outside of
> dumping everything into the same directory, please let me know.
>
> Wb
Re: How to use multiple p2 repos in a pdebuild? [message #539230 is a reply to message #539083] Thu, 10 June 2010 06:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wbeckwith.gmail.com

That was what I needed. Now p2.mirror can see the dependencies repo.

One final (ATM) question, but the mirror process seems to resolved all
bundles into the product install. There are some bundles I need in my
target platform for compilation which are provided via Import-Package
but we can't ship the actual bundles themselves. How do I keep these
guys from being included?

Wb

On 6/9/2010 10:17 AM, Andrew Niefer wrote:
> You want "p2.context.repos" which should be a comma separated list of URIs.
>
> Somewhat related are:
> "repoBaseLocation" - a folder containing other repositories in zips or
> subfolders. These repositories will be transformed using repo2runnable.
> "transformedRepoLocation" - the location of the repository where the
> results of the repoBaseLocation transformation should go.
>
> "transformedRepoLocation" is automatically added to the list of context
> repositories with p2.context.repos.
>
> -Andrew
>
> Wendell Beckwith wrote:
>
>> My situation is that I have a target composed of the eclipse RCP runtime
>> + the delta pack and another directory of 3rd party dependencies. We
>> can add the dependencies directory to the pluginPath variable and all
>> will compile down fine. However, when the ant task p2.mirror executes,
>> it only sees the repo at the target. The dependencies repo is not taken
>> into context.
>>
>> I figure there might be ant properties that maybe go into the builder's
>> build.properties file that may instruct the build file generation to
>> create another<source> element that points to the 2nd dependencies
>> repo. If there is, or there is a better of structure this outside of
>> dumping everything into the same directory, please let me know.
>>
>> Wb
>
Re: How to use multiple p2 repos in a pdebuild? [message #539677 is a reply to message #539230] Fri, 11 June 2010 20:04 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Wendell Beckwith wrote:

> That was what I needed. Now p2.mirror can see the dependencies repo.
>
> One final (ATM) question, but the mirror process seems to resolved all
> bundles into the product install. There are some bundles I need in my
> target platform for compilation which are provided via Import-Package
> but we can't ship the actual bundles themselves. How do I keep these
> guys from being included?
>

This seems to be related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=313334

The only thing I can think of there is to make those dependencies optional
and then have a fix for this bug.

-Andrew
Re: How to use multiple p2 repos in a pdebuild? [message #605962 is a reply to message #538915] Wed, 09 June 2010 15:17 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You want "p2.context.repos" which should be a comma separated list of URIs.

Somewhat related are:
"repoBaseLocation" - a folder containing other repositories in zips or
subfolders. These repositories will be transformed using repo2runnable.
"transformedRepoLocation" - the location of the repository where the
results of the repoBaseLocation transformation should go.

"transformedRepoLocation" is automatically added to the list of context
repositories with p2.context.repos.

-Andrew

Wendell Beckwith wrote:

> My situation is that I have a target composed of the eclipse RCP runtime
> + the delta pack and another directory of 3rd party dependencies. We
> can add the dependencies directory to the pluginPath variable and all
> will compile down fine. However, when the ant task p2.mirror executes,
> it only sees the repo at the target. The dependencies repo is not taken
> into context.
>
> I figure there might be ant properties that maybe go into the builder's
> build.properties file that may instruct the build file generation to
> create another <source> element that points to the 2nd dependencies
> repo. If there is, or there is a better of structure this outside of
> dumping everything into the same directory, please let me know.
>
> Wb
Re: How to use multiple p2 repos in a pdebuild? [message #605973 is a reply to message #539083] Thu, 10 June 2010 06:06 Go to previous message
Eclipse UserFriend
Originally posted by: wbeckwith.gmail.com

That was what I needed. Now p2.mirror can see the dependencies repo.

One final (ATM) question, but the mirror process seems to resolved all
bundles into the product install. There are some bundles I need in my
target platform for compilation which are provided via Import-Package
but we can't ship the actual bundles themselves. How do I keep these
guys from being included?

Wb

On 6/9/2010 10:17 AM, Andrew Niefer wrote:
> You want "p2.context.repos" which should be a comma separated list of URIs.
>
> Somewhat related are:
> "repoBaseLocation" - a folder containing other repositories in zips or
> subfolders. These repositories will be transformed using repo2runnable.
> "transformedRepoLocation" - the location of the repository where the
> results of the repoBaseLocation transformation should go.
>
> "transformedRepoLocation" is automatically added to the list of context
> repositories with p2.context.repos.
>
> -Andrew
>
> Wendell Beckwith wrote:
>
>> My situation is that I have a target composed of the eclipse RCP runtime
>> + the delta pack and another directory of 3rd party dependencies. We
>> can add the dependencies directory to the pluginPath variable and all
>> will compile down fine. However, when the ant task p2.mirror executes,
>> it only sees the repo at the target. The dependencies repo is not taken
>> into context.
>>
>> I figure there might be ant properties that maybe go into the builder's
>> build.properties file that may instruct the build file generation to
>> create another<source> element that points to the 2nd dependencies
>> repo. If there is, or there is a better of structure this outside of
>> dumping everything into the same directory, please let me know.
>>
>> Wb
>
Re: How to use multiple p2 repos in a pdebuild? [message #605997 is a reply to message #539230] Fri, 11 June 2010 20:04 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Wendell Beckwith wrote:

> That was what I needed. Now p2.mirror can see the dependencies repo.
>
> One final (ATM) question, but the mirror process seems to resolved all
> bundles into the product install. There are some bundles I need in my
> target platform for compilation which are provided via Import-Package
> but we can't ship the actual bundles themselves. How do I keep these
> guys from being included?
>

This seems to be related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=313334

The only thing I can think of there is to make those dependencies optional
and then have a fix for this bug.

-Andrew
Previous Topic:Add onSave action to editor
Next Topic:p2-enabled PDE build fails when p2.category.definition is set (seemingly valid categories.xml file)
Goto Forum:
  


Current Time: Fri Apr 26 07:22:37 GMT 2024

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

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

Back to the top