Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » RCP Question
RCP Question [message #379905] Sat, 30 August 2008 01:03 Go to next message
Scott Hendrickson is currently offline Scott HendricksonFriend
Messages: 69
Registered: July 2009
Member
I've been using the approach of downloading the zipped RCP file from the
eclipse website, and then building my SWT-based application using
headless buckminster. However, it seems that what I have been doing
doesn't work any longer. I was hoping that someone could help me figure
out what's going on.

I have a cquery, below, that just downloads the RCP delta pack for my OS:


<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery
xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap="my.rmap">
<cq:rootRequest name="eclipse-RCP-SDK-3.3.2-delta-pack"/>
</cq:componentQuery>


my.rmap looks like the following:


<?xml version="1.0" encoding="UTF-8"?>
<rmap
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">

<searchPath name="rcp">
<provider readerType="url" componentTypes="unknown"
mutable="false" source="false">
<uri
format=" http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-solar is-gtk.zip&amp;r=1&amp;protocol=http"/>
</provider>
</searchPath>

<locator searchPathRef="rcp" pattern="^eclipse-RCP-3.3.2-.*"/>
</rmap>


When I resolve the cquery, the workspace has a resulting
eclipse-RCP-3.3.2-delta-pack file in the .buckminster subfolder, which
appears to be correct. I'll then resolve the cquery for my application,
which is here:

http://tps.ics.uci.edu/svn/projects/archstudio4/trunk/edu.uc i.isr.archstudio4_updatesite/archstudio4.cquery

However, when I build my project, I always get an error such as: "The
project was not built since its build path is incomplete. Cannot find
the class file for org.eclipse.swt.widgets.Display. Fix the build path
then try building this project"

I've tried having the RCP-SDK installed instead, or both the RCP-SDK and
the RCP Delta Pack (both for all systems and for the Solaris
specifically). But, I always get the same error.

I'm using buckminster.product-1.0.0.r09533 and Java 1.5 on a Solaris box.

Do you have any ideas of what I could try differently, or what might be
happening?

Thanks,
-- Scott
Re: RCP Question [message #379908 is a reply to message #379905] Sat, 30 August 2008 12:39 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Scott,
I need some more information in order to help you with this. How do you install the
delta-pack after it's been downloaded? How do you set the target platform?

Regards,
Thomas Hallgren

Scott A. Hendrickson wrote:
> I've been using the approach of downloading the zipped RCP file from the
> eclipse website, and then building my SWT-based application using
> headless buckminster. However, it seems that what I have been doing
> doesn't work any longer. I was hoping that someone could help me figure
> out what's going on.
>
> I have a cquery, below, that just downloads the RCP delta pack for my OS:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="my.rmap">
> <cq:rootRequest name="eclipse-RCP-SDK-3.3.2-delta-pack"/>
> </cq:componentQuery>
>
>
> my.rmap looks like the following:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <rmap
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>
> <searchPath name="rcp">
> <provider readerType="url" componentTypes="unknown"
> mutable="false" source="false">
> <uri
> format=" http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-solar is-gtk.zip&amp;r=1&amp;protocol=http"/>
>
> </provider>
> </searchPath>
>
> <locator searchPathRef="rcp" pattern="^eclipse-RCP-3.3.2-.*"/>
> </rmap>
>
>
> When I resolve the cquery, the workspace has a resulting
> eclipse-RCP-3.3.2-delta-pack file in the .buckminster subfolder, which
> appears to be correct. I'll then resolve the cquery for my application,
> which is here:
>
> http://tps.ics.uci.edu/svn/projects/archstudio4/trunk/edu.uc i.isr.archstudio4_updatesite/archstudio4.cquery
>
>
> However, when I build my project, I always get an error such as: "The
> project was not built since its build path is incomplete. Cannot find
> the class file for org.eclipse.swt.widgets.Display. Fix the build path
> then try building this project"
>
> I've tried having the RCP-SDK installed instead, or both the RCP-SDK and
> the RCP Delta Pack (both for all systems and for the Solaris
> specifically). But, I always get the same error.
>
> I'm using buckminster.product-1.0.0.r09533 and Java 1.5 on a Solaris box.
>
> Do you have any ideas of what I could try differently, or what might be
> happening?
>
> Thanks,
> -- Scott
Re: RCP Question [message #379914 is a reply to message #379908] Sun, 31 August 2008 00:58 Go to previous messageGo to next message
Scott Hendrickson is currently offline Scott HendricksonFriend
Messages: 69
Registered: July 2009
Member
Hi Thomas,

I've been looking through the newsgroups again to see if I missed stuff
and to try to address the questions that you've asked. I've created an
example of what I'm trying to do, the cquery is:

http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.cquery

The example is a simple Eclipse view from the Eclipse project wizards.
As you'll note the cquery seems to works fine. However, when I use the
import wizard from within eclipse to import the project using

http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.mspec

I get the following error:

[0000] : Unable to obtain URI for
TestViewFeature:eclipse.feature$1.0.0.qualifier#OSGi

I'm not sure what that means or how to fix it.

Once that's fixed, I think that I've addressed your questions: I added
the mspec to install the delta-pack after the download, and I modified
the buckminster.properties to use the OS's configuration for the target
platform. Although, I'm not trying to build an RCP application, just an
update site .

The way I have been planning on using this is to run a cron job that would

1) use svn to checkout
" http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite"
2) run "buckminster -L DEBUG -S ./headless.build.script" from within the
checked out folder (maybe I can skip the first step and just use a
direct URL?)
3) publish the resulting updates site (fro ${user.home}/buckminster, or
wherever I have it built to)

Would you mind seeing why I can check out the files using the cquery,
but cannot the mspec? I'll then see if the changes I made fix the
original problem I was having.

Thanks for your help!
-- Scott

Thomas Hallgren wrote:
> Hi Scott,
> I need some more information in order to help you with this. How do you
> install the delta-pack after it's been downloaded? How do you set the
> target platform?
>
> Regards,
> Thomas Hallgren
>
> Scott A. Hendrickson wrote:
>> I've been using the approach of downloading the zipped RCP file from
>> the eclipse website, and then building my SWT-based application using
>> headless buckminster. However, it seems that what I have been doing
>> doesn't work any longer. I was hoping that someone could help me
>> figure out what's going on.
>>
>> I have a cquery, below, that just downloads the RCP delta pack for my OS:
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <cq:componentQuery
>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>> resourceMap="my.rmap">
>> <cq:rootRequest name="eclipse-RCP-SDK-3.3.2-delta-pack"/>
>> </cq:componentQuery>
>>
>>
>> my.rmap looks like the following:
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <rmap
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>>
>> <searchPath name="rcp">
>> <provider readerType="url" componentTypes="unknown"
>> mutable="false" source="false">
>> <uri
>> format=" http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-solar is-gtk.zip&amp;r=1&amp;protocol=http"/>
>>
>> </provider>
>> </searchPath>
>>
>> <locator searchPathRef="rcp" pattern="^eclipse-RCP-3.3.2-.*"/>
>> </rmap>
>>
>>
>> When I resolve the cquery, the workspace has a resulting
>> eclipse-RCP-3.3.2-delta-pack file in the .buckminster subfolder, which
>> appears to be correct. I'll then resolve the cquery for my
>> application, which is here:
>>
>> http://tps.ics.uci.edu/svn/projects/archstudio4/trunk/edu.uc i.isr.archstudio4_updatesite/archstudio4.cquery
>>
>>
>> However, when I build my project, I always get an error such as: "The
>> project was not built since its build path is incomplete. Cannot find
>> the class file for org.eclipse.swt.widgets.Display. Fix the build path
>> then try building this project"
>>
>> I've tried having the RCP-SDK installed instead, or both the RCP-SDK
>> and the RCP Delta Pack (both for all systems and for the Solaris
>> specifically). But, I always get the same error.
>>
>> I'm using buckminster.product-1.0.0.r09533 and Java 1.5 on a Solaris box.
>>
>> Do you have any ideas of what I could try differently, or what might
>> be happening?
>>
>> Thanks,
>> -- Scott
Re: RCP Question [message #380022 is a reply to message #379914] Thu, 04 September 2008 16:50 Go to previous messageGo to next message
Scott Hendrickson is currently offline Scott HendricksonFriend
Messages: 69
Registered: July 2009
Member
Any ideas why the cquery works but the mspec can't obtain the URI? Or,
any pointers on where I should look?

Thanks,
-- Scott


Scott A. Hendrickson wrote:
> Hi Thomas,
>
> I've been looking through the newsgroups again to see if I missed stuff
> and to try to address the questions that you've asked. I've created an
> example of what I'm trying to do, the cquery is:
>
> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.cquery
>
>
> The example is a simple Eclipse view from the Eclipse project wizards.
> As you'll note the cquery seems to works fine. However, when I use the
> import wizard from within eclipse to import the project using
>
> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.mspec
>
>
> I get the following error:
>
> [0000] : Unable to obtain URI for
> TestViewFeature:eclipse.feature$1.0.0.qualifier#OSGi
>
> I'm not sure what that means or how to fix it.
>
> Once that's fixed, I think that I've addressed your questions: I added
> the mspec to install the delta-pack after the download, and I modified
> the buckminster.properties to use the OS's configuration for the target
> platform. Although, I'm not trying to build an RCP application, just an
> update site .
>
> The way I have been planning on using this is to run a cron job that would
>
> 1) use svn to checkout
> " http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite"
>
> 2) run "buckminster -L DEBUG -S ./headless.build.script" from within the
> checked out folder (maybe I can skip the first step and just use a
> direct URL?)
> 3) publish the resulting updates site (fro ${user.home}/buckminster, or
> wherever I have it built to)
>
> Would you mind seeing why I can check out the files using the cquery,
> but cannot the mspec? I'll then see if the changes I made fix the
> original problem I was having.
>
> Thanks for your help!
> -- Scott
>
> Thomas Hallgren wrote:
>> Hi Scott,
>> I need some more information in order to help you with this. How do
>> you install the delta-pack after it's been downloaded? How do you set
>> the target platform?
>>
>> Regards,
>> Thomas Hallgren
>>
>> Scott A. Hendrickson wrote:
>>> I've been using the approach of downloading the zipped RCP file from
>>> the eclipse website, and then building my SWT-based application using
>>> headless buckminster. However, it seems that what I have been doing
>>> doesn't work any longer. I was hoping that someone could help me
>>> figure out what's going on.
>>>
>>> I have a cquery, below, that just downloads the RCP delta pack for my
>>> OS:
>>>
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <cq:componentQuery
>>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>>> resourceMap="my.rmap">
>>> <cq:rootRequest name="eclipse-RCP-SDK-3.3.2-delta-pack"/>
>>> </cq:componentQuery>
>>>
>>>
>>> my.rmap looks like the following:
>>>
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <rmap
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
>>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>>>
>>> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>>>
>>> <searchPath name="rcp">
>>> <provider readerType="url" componentTypes="unknown"
>>> mutable="false" source="false">
>>> <uri
>>> format=" http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-solar is-gtk.zip&amp;r=1&amp;protocol=http"/>
>>>
>>> </provider>
>>> </searchPath>
>>>
>>> <locator searchPathRef="rcp" pattern="^eclipse-RCP-3.3.2-.*"/>
>>> </rmap>
>>>
>>>
>>> When I resolve the cquery, the workspace has a resulting
>>> eclipse-RCP-3.3.2-delta-pack file in the .buckminster subfolder,
>>> which appears to be correct. I'll then resolve the cquery for my
>>> application, which is here:
>>>
>>> http://tps.ics.uci.edu/svn/projects/archstudio4/trunk/edu.uc i.isr.archstudio4_updatesite/archstudio4.cquery
>>>
>>>
>>> However, when I build my project, I always get an error such as: "The
>>> project was not built since its build path is incomplete. Cannot find
>>> the class file for org.eclipse.swt.widgets.Display. Fix the build
>>> path then try building this project"
>>>
>>> I've tried having the RCP-SDK installed instead, or both the RCP-SDK
>>> and the RCP Delta Pack (both for all systems and for the Solaris
>>> specifically). But, I always get the same error.
>>>
>>> I'm using buckminster.product-1.0.0.r09533 and Java 1.5 on a Solaris
>>> box.
>>>
>>> Do you have any ideas of what I could try differently, or what might
>>> be happening?
>>>
>>> Thanks,
>>> -- Scott
Re: RCP Question [message #380071 is a reply to message #380022] Thu, 25 September 2008 19:54 Go to previous messageGo to next message
Scott Hendrickson is currently offline Scott HendricksonFriend
Messages: 69
Registered: July 2009
Member
Hi Thomas,

Thanks for your earlier response. I've managed to figure out what is
going on from what you said...

It turns out that the default value of the targetWS is being incorrectly
reported as "motif" (by the osgi framework?) in the headless environment
(both on my solaris and ubuntu boxes). But from within the IDE, the
targetWS is correctly being reported as "gtk" by default. So, when I ran
the same process from the IDE, I was not getting errors, but from the
headless environment, the SWT classes could never be found. Indeed,
there is no solaris/motif rcp binary.

By manually setting the targetWS to "gtk" (the correct value for both
machines) and following your suggestion of using a target platform path,
the build succeeds headlessly. I can verify that everything else being
equal, leaving the targetWS to it's default value, prevents the build
from succeeding.

Wow, that was hard to find. But, It's all working now.

So, it seems that the targetWS is not being set to the correct value on
either of my (linux) systems, and thus, the SWT classes are not being
found no matter how/where the rcp archives are being extracted to. Your
comments helped me rule out this problem. Thanks!

Thanks again for your help! :)

-- Scott


Scott A. Hendrickson wrote:
> Any ideas why the cquery works but the mspec can't obtain the URI? Or,
> any pointers on where I should look?
>
> Thanks,
> -- Scott
>
>
> Scott A. Hendrickson wrote:
>> Hi Thomas,
>>
>> I've been looking through the newsgroups again to see if I missed
>> stuff and to try to address the questions that you've asked. I've
>> created an example of what I'm trying to do, the cquery is:
>>
>> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.cquery
>>
>>
>> The example is a simple Eclipse view from the Eclipse project wizards.
>> As you'll note the cquery seems to works fine. However, when I use the
>> import wizard from within eclipse to import the project using
>>
>> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.mspec
>>
>>
>> I get the following error:
>>
>> [0000] : Unable to obtain URI for
>> TestViewFeature:eclipse.feature$1.0.0.qualifier#OSGi
>>
>> I'm not sure what that means or how to fix it.
>>
>> Once that's fixed, I think that I've addressed your questions: I added
>> the mspec to install the delta-pack after the download, and I modified
>> the buckminster.properties to use the OS's configuration for the
>> target platform. Although, I'm not trying to build an RCP application,
>> just an update site .
>>
>> The way I have been planning on using this is to run a cron job that
>> would
>>
>> 1) use svn to checkout
>> " http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite"
>>
>> 2) run "buckminster -L DEBUG -S ./headless.build.script" from within
>> the checked out folder (maybe I can skip the first step and just use a
>> direct URL?)
>> 3) publish the resulting updates site (fro ${user.home}/buckminster,
>> or wherever I have it built to)
>>
>> Would you mind seeing why I can check out the files using the cquery,
>> but cannot the mspec? I'll then see if the changes I made fix the
>> original problem I was having.
>>
>> Thanks for your help!
>> -- Scott
>>
>> Thomas Hallgren wrote:
>>> Hi Scott,
>>> I need some more information in order to help you with this. How do
>>> you install the delta-pack after it's been downloaded? How do you set
>>> the target platform?
>>>
>>> Regards,
>>> Thomas Hallgren
>>>
>>> Scott A. Hendrickson wrote:
>>>> I've been using the approach of downloading the zipped RCP file from
>>>> the eclipse website, and then building my SWT-based application
>>>> using headless buckminster. However, it seems that what I have been
>>>> doing doesn't work any longer. I was hoping that someone could help
>>>> me figure out what's going on.
>>>>
>>>> I have a cquery, below, that just downloads the RCP delta pack for
>>>> my OS:
>>>>
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <cq:componentQuery
>>>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>>>> resourceMap="my.rmap">
>>>> <cq:rootRequest name="eclipse-RCP-SDK-3.3.2-delta-pack"/>
>>>> </cq:componentQuery>
>>>>
>>>>
>>>> my.rmap looks like the following:
>>>>
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <rmap
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>>>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
>>>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>>>>
>>>> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>>>>
>>>> <searchPath name="rcp">
>>>> <provider readerType="url" componentTypes="unknown"
>>>> mutable="false" source="false">
>>>> <uri
>>>> format=" http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-solar is-gtk.zip&amp;r=1&amp;protocol=http"/>
>>>>
>>>> </provider>
>>>> </searchPath>
>>>>
>>>> <locator searchPathRef="rcp" pattern="^eclipse-RCP-3.3.2-.*"/>
>>>> </rmap>
>>>>
>>>>
>>>> When I resolve the cquery, the workspace has a resulting
>>>> eclipse-RCP-3.3.2-delta-pack file in the .buckminster subfolder,
>>>> which appears to be correct. I'll then resolve the cquery for my
>>>> application, which is here:
>>>>
>>>> http://tps.ics.uci.edu/svn/projects/archstudio4/trunk/edu.uc i.isr.archstudio4_updatesite/archstudio4.cquery
>>>>
>>>>
>>>> However, when I build my project, I always get an error such as:
>>>> "The project was not built since its build path is incomplete.
>>>> Cannot find the class file for org.eclipse.swt.widgets.Display. Fix
>>>> the build path then try building this project"
>>>>
>>>> I've tried having the RCP-SDK installed instead, or both the RCP-SDK
>>>> and the RCP Delta Pack (both for all systems and for the Solaris
>>>> specifically). But, I always get the same error.
>>>>
>>>> I'm using buckminster.product-1.0.0.r09533 and Java 1.5 on a Solaris
>>>> box.
>>>>
>>>> Do you have any ideas of what I could try differently, or what might
>>>> be happening?
>>>>
>>>> Thanks,
>>>> -- Scott
Re: RCP Question [message #380074 is a reply to message #380071] Fri, 26 September 2008 06:33 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Scott,
I'm glad to hear that things are working for you. The 'motif' setting is the OSGi default
setting on a Linux system so in a headless environment it has to be set explicitly. I
haven't found a safe way to figure out what setting to use. If you have ideas around that
then we're of course interested in hearing about it. For the time being, setting the
targetWS using setpref is the right way to go.

Regards,
Thomas Hallgren



Scott A. Hendrickson wrote:
> Hi Thomas,
>
> Thanks for your earlier response. I've managed to figure out what is
> going on from what you said...
>
> It turns out that the default value of the targetWS is being incorrectly
> reported as "motif" (by the osgi framework?) in the headless environment
> (both on my solaris and ubuntu boxes). But from within the IDE, the
> targetWS is correctly being reported as "gtk" by default. So, when I ran
> the same process from the IDE, I was not getting errors, but from the
> headless environment, the SWT classes could never be found. Indeed,
> there is no solaris/motif rcp binary.
>
> By manually setting the targetWS to "gtk" (the correct value for both
> machines) and following your suggestion of using a target platform path,
> the build succeeds headlessly. I can verify that everything else being
> equal, leaving the targetWS to it's default value, prevents the build
> from succeeding.
>
> Wow, that was hard to find. But, It's all working now.
>
> So, it seems that the targetWS is not being set to the correct value on
> either of my (linux) systems, and thus, the SWT classes are not being
> found no matter how/where the rcp archives are being extracted to. Your
> comments helped me rule out this problem. Thanks!
>
> Thanks again for your help! :)
>
> -- Scott
>
>
> Scott A. Hendrickson wrote:
>> Any ideas why the cquery works but the mspec can't obtain the URI? Or,
>> any pointers on where I should look?
>>
>> Thanks,
>> -- Scott
>>
>>
>> Scott A. Hendrickson wrote:
>>> Hi Thomas,
>>>
>>> I've been looking through the newsgroups again to see if I missed
>>> stuff and to try to address the questions that you've asked. I've
>>> created an example of what I'm trying to do, the cquery is:
>>>
>>> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.cquery
>>>
>>>
>>> The example is a simple Eclipse view from the Eclipse project
>>> wizards. As you'll note the cquery seems to works fine. However, when
>>> I use the import wizard from within eclipse to import the project using
>>>
>>> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.mspec
>>>
>>>
>>> I get the following error:
>>>
>>> [0000] : Unable to obtain URI for
>>> TestViewFeature:eclipse.feature$1.0.0.qualifier#OSGi
>>>
>>> I'm not sure what that means or how to fix it.
>>>
>>> Once that's fixed, I think that I've addressed your questions: I
>>> added the mspec to install the delta-pack after the download, and I
>>> modified the buckminster.properties to use the OS's configuration for
>>> the target platform. Although, I'm not trying to build an RCP
>>> application, just an update site .
>>>
>>> The way I have been planning on using this is to run a cron job that
>>> would
>>>
>>> 1) use svn to checkout
>>> " http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite"
>>>
>>> 2) run "buckminster -L DEBUG -S ./headless.build.script" from within
>>> the checked out folder (maybe I can skip the first step and just use
>>> a direct URL?)
>>> 3) publish the resulting updates site (fro ${user.home}/buckminster,
>>> or wherever I have it built to)
>>>
>>> Would you mind seeing why I can check out the files using the cquery,
>>> but cannot the mspec? I'll then see if the changes I made fix the
>>> original problem I was having.
>>>
>>> Thanks for your help!
>>> -- Scott
>>>
>>> Thomas Hallgren wrote:
>>>> Hi Scott,
>>>> I need some more information in order to help you with this. How do
>>>> you install the delta-pack after it's been downloaded? How do you
>>>> set the target platform?
>>>>
>>>> Regards,
>>>> Thomas Hallgren
>>>>
>>>> Scott A. Hendrickson wrote:
>>>>> I've been using the approach of downloading the zipped RCP file
>>>>> from the eclipse website, and then building my SWT-based
>>>>> application using headless buckminster. However, it seems that what
>>>>> I have been doing doesn't work any longer. I was hoping that
>>>>> someone could help me figure out what's going on.
>>>>>
>>>>> I have a cquery, below, that just downloads the RCP delta pack for
>>>>> my OS:
>>>>>
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <cq:componentQuery
>>>>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>>>>> resourceMap="my.rmap">
>>>>> <cq:rootRequest name="eclipse-RCP-SDK-3.3.2-delta-pack"/>
>>>>> </cq:componentQuery>
>>>>>
>>>>>
>>>>> my.rmap looks like the following:
>>>>>
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <rmap
>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>>>>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
>>>>>
>>>>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>>>>>
>>>>> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>>>>>
>>>>> <searchPath name="rcp">
>>>>> <provider readerType="url" componentTypes="unknown"
>>>>> mutable="false" source="false">
>>>>> <uri
>>>>> format=" http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-solar is-gtk.zip&amp;r=1&amp;protocol=http"/>
>>>>>
>>>>> </provider>
>>>>> </searchPath>
>>>>>
>>>>> <locator searchPathRef="rcp" pattern="^eclipse-RCP-3.3.2-.*"/>
>>>>> </rmap>
>>>>>
>>>>>
>>>>> When I resolve the cquery, the workspace has a resulting
>>>>> eclipse-RCP-3.3.2-delta-pack file in the .buckminster subfolder,
>>>>> which appears to be correct. I'll then resolve the cquery for my
>>>>> application, which is here:
>>>>>
>>>>> http://tps.ics.uci.edu/svn/projects/archstudio4/trunk/edu.uc i.isr.archstudio4_updatesite/archstudio4.cquery
>>>>>
>>>>>
>>>>> However, when I build my project, I always get an error such as:
>>>>> "The project was not built since its build path is incomplete.
>>>>> Cannot find the class file for org.eclipse.swt.widgets.Display. Fix
>>>>> the build path then try building this project"
>>>>>
>>>>> I've tried having the RCP-SDK installed instead, or both the
>>>>> RCP-SDK and the RCP Delta Pack (both for all systems and for the
>>>>> Solaris specifically). But, I always get the same error.
>>>>>
>>>>> I'm using buckminster.product-1.0.0.r09533 and Java 1.5 on a
>>>>> Solaris box.
>>>>>
>>>>> Do you have any ideas of what I could try differently, or what
>>>>> might be happening?
>>>>>
>>>>> Thanks,
>>>>> -- Scott
Re: RCP Question [message #380439 is a reply to message #380074] Mon, 03 November 2008 17:47 Go to previous message
Scott Hendrickson is currently offline Scott HendricksonFriend
Messages: 69
Registered: July 2009
Member
The one suggestion I'd have is that this should be documented or a warning
should be printed. :) At least, that would help someone who runs in to the
same problem in the future.
-- Scott


"Thomas Hallgren" <thomas@tada.se> wrote in message
news:48DC8237.6080700@tada.se...
> Hi Scott,
> I'm glad to hear that things are working for you. The 'motif' setting is
> the OSGi default setting on a Linux system so in a headless environment it
> has to be set explicitly. I haven't found a safe way to figure out what
> setting to use. If you have ideas around that then we're of course
> interested in hearing about it. For the time being, setting the targetWS
> using setpref is the right way to go.
>
> Regards,
> Thomas Hallgren
>
>
>
> Scott A. Hendrickson wrote:
>> Hi Thomas,
>>
>> Thanks for your earlier response. I've managed to figure out what is
>> going on from what you said...
>>
>> It turns out that the default value of the targetWS is being incorrectly
>> reported as "motif" (by the osgi framework?) in the headless environment
>> (both on my solaris and ubuntu boxes). But from within the IDE, the
>> targetWS is correctly being reported as "gtk" by default. So, when I ran
>> the same process from the IDE, I was not getting errors, but from the
>> headless environment, the SWT classes could never be found. Indeed, there
>> is no solaris/motif rcp binary.
>>
>> By manually setting the targetWS to "gtk" (the correct value for both
>> machines) and following your suggestion of using a target platform path,
>> the build succeeds headlessly. I can verify that everything else being
>> equal, leaving the targetWS to it's default value, prevents the build
>> from succeeding.
>>
>> Wow, that was hard to find. But, It's all working now.
>>
>> So, it seems that the targetWS is not being set to the correct value on
>> either of my (linux) systems, and thus, the SWT classes are not being
>> found no matter how/where the rcp archives are being extracted to. Your
>> comments helped me rule out this problem. Thanks!
>>
>> Thanks again for your help! :)
>>
>> -- Scott
>>
>>
>> Scott A. Hendrickson wrote:
>>> Any ideas why the cquery works but the mspec can't obtain the URI? Or,
>>> any pointers on where I should look?
>>>
>>> Thanks,
>>> -- Scott
>>>
>>>
>>> Scott A. Hendrickson wrote:
>>>> Hi Thomas,
>>>>
>>>> I've been looking through the newsgroups again to see if I missed stuff
>>>> and to try to address the questions that you've asked. I've created an
>>>> example of what I'm trying to do, the cquery is:
>>>>
>>>> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.cquery
>>>>
>>>> The example is a simple Eclipse view from the Eclipse project wizards.
>>>> As you'll note the cquery seems to works fine. However, when I use the
>>>> import wizard from within eclipse to import the project using
>>>>
>>>> http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite/TestViewUpdateSite.mspec
>>>>
>>>> I get the following error:
>>>>
>>>> [0000] : Unable to obtain URI for
>>>> TestViewFeature:eclipse.feature$1.0.0.qualifier#OSGi
>>>>
>>>> I'm not sure what that means or how to fix it.
>>>>
>>>> Once that's fixed, I think that I've addressed your questions: I added
>>>> the mspec to install the delta-pack after the download, and I modified
>>>> the buckminster.properties to use the OS's configuration for the target
>>>> platform. Although, I'm not trying to build an RCP application, just an
>>>> update site .
>>>>
>>>> The way I have been planning on using this is to run a cron job that
>>>> would
>>>>
>>>> 1) use svn to checkout
>>>> " http://tps.ics.uci.edu/svn/tests/buckminster-tests/trunk/Tes tViewUpdateSite"
>>>> 2) run "buckminster -L DEBUG -S ./headless.build.script" from within
>>>> the checked out folder (maybe I can skip the first step and just use a
>>>> direct URL?)
>>>> 3) publish the resulting updates site (fro ${user.home}/buckminster, or
>>>> wherever I have it built to)
>>>>
>>>> Would you mind seeing why I can check out the files using the cquery,
>>>> but cannot the mspec? I'll then see if the changes I made fix the
>>>> original problem I was having.
>>>>
>>>> Thanks for your help!
>>>> -- Scott
>>>>
>>>> Thomas Hallgren wrote:
>>>>> Hi Scott,
>>>>> I need some more information in order to help you with this. How do
>>>>> you install the delta-pack after it's been downloaded? How do you set
>>>>> the target platform?
>>>>>
>>>>> Regards,
>>>>> Thomas Hallgren
>>>>>
>>>>> Scott A. Hendrickson wrote:
>>>>>> I've been using the approach of downloading the zipped RCP file from
>>>>>> the eclipse website, and then building my SWT-based application using
>>>>>> headless buckminster. However, it seems that what I have been doing
>>>>>> doesn't work any longer. I was hoping that someone could help me
>>>>>> figure out what's going on.
>>>>>>
>>>>>> I have a cquery, below, that just downloads the RCP delta pack for my
>>>>>> OS:
>>>>>>
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <cq:componentQuery
>>>>>> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>>>>>> resourceMap="my.rmap">
>>>>>> <cq:rootRequest name="eclipse-RCP-SDK-3.3.2-delta-pack"/>
>>>>>> </cq:componentQuery>
>>>>>>
>>>>>>
>>>>>> my.rmap looks like the following:
>>>>>>
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <rmap
>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
>>>>>> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
>>>>>>
>>>>>> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
>>>>>>
>>>>>> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>>>>>>
>>>>>> <searchPath name="rcp">
>>>>>> <provider readerType="url" componentTypes="unknown"
>>>>>> mutable="false" source="false">
>>>>>> <uri
>>>>>> format=" http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-solar is-gtk.zip&amp;r=1&amp;protocol=http"/>
>>>>>> </provider>
>>>>>> </searchPath>
>>>>>>
>>>>>> <locator searchPathRef="rcp"
>>>>>> pattern="^eclipse-RCP-3.3.2-.*"/>
>>>>>> </rmap>
>>>>>>
>>>>>>
>>>>>> When I resolve the cquery, the workspace has a resulting
>>>>>> eclipse-RCP-3.3.2-delta-pack file in the .buckminster subfolder,
>>>>>> which appears to be correct. I'll then resolve the cquery for my
>>>>>> application, which is here:
>>>>>>
>>>>>> http://tps.ics.uci.edu/svn/projects/archstudio4/trunk/edu.uc i.isr.archstudio4_updatesite/archstudio4.cquery
>>>>>>
>>>>>> However, when I build my project, I always get an error such as: "The
>>>>>> project was not built since its build path is incomplete. Cannot find
>>>>>> the class file for org.eclipse.swt.widgets.Display. Fix the build
>>>>>> path then try building this project"
>>>>>>
>>>>>> I've tried having the RCP-SDK installed instead, or both the RCP-SDK
>>>>>> and the RCP Delta Pack (both for all systems and for the Solaris
>>>>>> specifically). But, I always get the same error.
>>>>>>
>>>>>> I'm using buckminster.product-1.0.0.r09533 and Java 1.5 on a Solaris
>>>>>> box.
>>>>>>
>>>>>> Do you have any ideas of what I could try differently, or what might
>>>>>> be happening?
>>>>>>
>>>>>> Thanks,
>>>>>> -- Scott
Previous Topic:how to "combine" component queries
Next Topic:Specifying a revision number for cquery resolution
Goto Forum:
  


Current Time: Fri Apr 19 18:53:36 GMT 2024

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

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

Back to the top