Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with patch fragments
Problem with patch fragments [message #70981] Tue, 22 January 2008 11:06 Go to next message
Boris Stepanov is currently offline Boris StepanovFriend
Messages: 68
Registered: July 2009
Member
Hello,

I try to use RAP patch fragments to implement missing functionality.
Code compiles, but when I debug/run my application using RAP Launcher
(fragments, locating in my workspace, selected in bundles tab of
configuration), functionality does not work.


I have maked the following steps:

1) Build .jar files from patch fragments.
2) Copy them to plugins directory of RAP target platform.
3) Reload platform plugins.
4) Select these new platform fragments in run/debug configuration.

New functionality works correctly now.

How to develop patch fragments for RAP without building fragment jars?

Thanks.

--
Boris Stepanov
Re: Problem with patch fragments [message #71012 is a reply to message #70981] Tue, 22 January 2008 15:23 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi Boris,

be sure that both (host and fragment bundle) are in the same "location".
This means they both need to be located in your target or both need to
reside in the workspace. This would mean for you, in order to create
patch fragments without building the fragment jar, that you need to
import the corresponding host bundle into your workspace. This is a
limitation by equinox regarding fragment patches.

Hope that helps.

Greets
Benny

Boris Stepanov wrote:
> Hello,
>
> I try to use RAP patch fragments to implement missing functionality.
> Code compiles, but when I debug/run my application using RAP Launcher
> (fragments, locating in my workspace, selected in bundles tab of
> configuration), functionality does not work.
>
>
> I have maked the following steps:
>
> 1) Build .jar files from patch fragments.
> 2) Copy them to plugins directory of RAP target platform.
> 3) Reload platform plugins.
> 4) Select these new platform fragments in run/debug configuration.
>
> New functionality works correctly now.
>
> How to develop patch fragments for RAP without building fragment jars?
>
> Thanks.
>
Re: Problem with patch fragments [message #71353 is a reply to message #71012] Thu, 24 January 2008 10:22 Go to previous messageGo to next message
Boris Stepanov is currently offline Boris StepanovFriend
Messages: 68
Registered: July 2009
Member
Hi Benjamin,

Thank you for answer.

I installed all rap plugins to my workspace and run application with my
fragments locating in workspace too, but fragments do not work.

OSGI console command "ss" inform that all fragments are resolved and all
plugins are active.


> Hi Boris,
>
> be sure that both (host and fragment bundle) are in the same "location".
> This means they both need to be located in your target or both need to
> reside in the workspace. This would mean for you, in order to create
> patch fragments without building the fragment jar, that you need to
> import the corresponding host bundle into your workspace. This is a
> limitation by equinox regarding fragment patches.
>
> Hope that helps.
>
> Greets
> Benny
>
> Boris Stepanov wrote:
>> Hello,
>>
>> I try to use RAP patch fragments to implement missing functionality.
>> Code compiles, but when I debug/run my application using RAP Launcher
>> (fragments, locating in my workspace, selected in bundles tab of
>> configuration), functionality does not work.
>>
>>
>> I have maked the following steps:
>>
>> 1) Build .jar files from patch fragments.
>> 2) Copy them to plugins directory of RAP target platform.
>> 3) Reload platform plugins.
>> 4) Select these new platform fragments in run/debug configuration.
>>
>> New functionality works correctly now.
>>
>> How to develop patch fragments for RAP without building fragment jars?
>>
>> Thanks.
>>


--
Boris Stepanov
Re: Problem with patch fragments [message #72626 is a reply to message #71353] Fri, 01 February 2008 12:49 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

there should be no need for building the jar from the patch fragment for
developing. As long as you have the patch-plug-in and the host plug-in as
source plug-in in the workspace and configured the launch-configuration
accordingly, the patched classes should be loaded instead of the original
classes. Most of the time the second part (configuration of the
launch-configuration) causes the problem, since people forget to include the
workspace bundle instead the target-version to the launch.

Ciao
Frank


"Boris Stepanov" <freepriman@rambler.ru> schrieb im Newsbeitrag
news:fn9otk$t9u$1@build.eclipse.org...
> Hi Benjamin,
>
> Thank you for answer.
>
> I installed all rap plugins to my workspace and run application with my
> fragments locating in workspace too, but fragments do not work.
>
> OSGI console command "ss" inform that all fragments are resolved and all
> plugins are active.
>
>
>> Hi Boris,
>>
>> be sure that both (host and fragment bundle) are in the same "location".
>> This means they both need to be located in your target or both need to
>> reside in the workspace. This would mean for you, in order to create
>> patch fragments without building the fragment jar, that you need to
>> import the corresponding host bundle into your workspace. This is a
>> limitation by equinox regarding fragment patches.
>>
>> Hope that helps.
>>
>> Greets
>> Benny
>>
>> Boris Stepanov wrote:
>>> Hello,
>>>
>>> I try to use RAP patch fragments to implement missing functionality.
>>> Code compiles, but when I debug/run my application using RAP Launcher
>>> (fragments, locating in my workspace, selected in bundles tab of
>>> configuration), functionality does not work.
>>>
>>>
>>> I have maked the following steps:
>>>
>>> 1) Build .jar files from patch fragments.
>>> 2) Copy them to plugins directory of RAP target platform.
>>> 3) Reload platform plugins.
>>> 4) Select these new platform fragments in run/debug configuration.
>>>
>>> New functionality works correctly now.
>>>
>>> How to develop patch fragments for RAP without building fragment jars?
>>>
>>> Thanks.
>>>
>
>
> --
> Boris Stepanov
Previous Topic:problem with images
Next Topic:Resource Manager getResource problem
Goto Forum:
  


Current Time: Wed Sep 25 20:05:00 GMT 2024

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

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

Back to the top