Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » pde product build
pde product build [message #466322] Tue, 17 April 2007 13:35 Go to next message
Eclipse UserFriend
Are there any decent examples of doing a pde product build? I followed the
instructions int the help file, but I keep going in circles resolving
obscure error messages. I am not fetching from cvs at all.

I looked on the eclipseson site, and there isn't any material for the long
session on pde build, and almost everything I have seen is for feature
builds.
Re: pde product build [message #466468 is a reply to message #466322] Thu, 19 April 2007 10:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi Paul,

Unfortunately, there aren't any sample scripts that I'm aware of. I would
start with trying to build the "Hello RCP" example code produced by the
Plug-in wizard. One plug-in, no features, as simple as you can get.

If you get errors when building that, post them here and I'll try to help
out. Once you get a simple build running from start to finish, it's much
easier to start building your own code.

--- Patrick
patrick@rcpquickstart.com


Paul Gardiner wrote:

> Are there any decent examples of doing a pde product build? I followed the
> instructions int the help file, but I keep going in circles resolving
> obscure error messages. I am not fetching from cvs at all.

> I looked on the eclipseson site, and there isn't any material for the long
> session on pde build, and almost everything I have seen is for feature
> builds.
Re: pde product build [message #466471 is a reply to message #466322] Thu, 19 April 2007 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Paul,

I just went through this with our RCP and eventually got it to work (at
least it seems to work). Roughly, the steps I took were (I'm sure I'm
using the wrong terminology here):
* Get product export to work successfully as a plugin (vs. a feature).
* Make a feature for my plugin, and get product export to work
successfully as a feature.
* Add a builder and get the project to build as a feature plugin via the
builder.
* Add a product feature, update the builder, and get the project to
build the product as an RCP.

This was basically following along from Chapter 24 in the "Eclipse Rich
Client Platform" book, although I'm doing it for 3.3 and there were some
differences.

If you can post your progress, maybe I can help you. I'll try at least.


Paul Gardiner wrote:
> Are there any decent examples of doing a pde product build? I followed the
> instructions int the help file, but I keep going in circles resolving
> obscure error messages. I am not fetching from cvs at all.
>
> I looked on the eclipseson site, and there isn't any material for the long
> session on pde build, and almost everything I have seen is for feature
> builds.
>
>
Re: pde product build [message #466564 is a reply to message #466322] Fri, 20 April 2007 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the responses. I am not doing a feature build at all, it's a
product based on features. Anyways, I got it going, almost. I started from
scratch, and went through each property, and set up a new build area, and it
works. However, it only works if all of my plugins are already built. When
I do a check out from version control, and then start the build process,
when it gets to the part where it builds the plugins themselves, the order
is strange.

The first issue (which kills the build) is that it tries to build a fragment
plugin first before the host plugin. Does this make any sense? When it
tries to build the fragment, it can't find the classes from the host and
fails.


"Paul Gardiner" <pgardiner@syntellect.com> wrote in message
news:f032c1$n5d$1@build.eclipse.org...
> Are there any decent examples of doing a pde product build? I followed
> the instructions int the help file, but I keep going in circles resolving
> obscure error messages. I am not fetching from cvs at all.
>
> I looked on the eclipseson site, and there isn't any material for the long
> session on pde build, and almost everything I have seen is for feature
> builds.
>
Re: pde product build [message #466930 is a reply to message #466564] Thu, 26 April 2007 10:31 Go to previous message
Eclipse UserFriend
I got everything working a few days ago, and thought I would post a message
in case anyone runs into something similar in the future.

My initial problems were little/dumb things, that I solved through trial and
error. I had some backslashes in my path names, which had to be changed to
forward slashes. Also, some properties didn't work with relative paths, or
without a drive letter (I'm using windows). Once I was done, I ended up with
these props:
product=/com.syntellect.ocs.testrunner/obs_testrunner.produc t
baseLocation=e:/is_dev/ContBuild/OCS/eclipse
buildDirectory=e:/is_dev/ContBuild/OCS/OCS/server/build
configs=win32,win32,x86
archivePrefix=ocs
javacSource=1.5
javacTarget=1.5
buildType=I
buildId=TestBuild

However, this would only build the product if all of the plugins were
compiled. Since eclipse was building the plugins for me, this worked fine
on my local machine, but my integration server fell over, since none of the
class files are in version control. After much mucking about, I finally
figured out the problem, which was a small, but hard to find thing. The
build.properties files in a couple of the plugins didn't have the source..=.
or output..=. lines. I am certain that they were there before, but I must
have done something in the manifest editor that caused them to go away.
Since all of my plugins have a src directory for the source, I just had to
add the two lines, and everything worked. So now my plugins'
build.properties files look something like this:

source.. = src/
output.. = .
bin.includes = META-INF/,\
.,\
plugin.xml
src.includes = META-INF/,\
build.properties,\
plugin.xml,\
src/



"Paul Gardiner" <pgardiner@syntellect.com> wrote in message
news:f0ba2g$5pi$1@build.eclipse.org...
> Thanks for the responses. I am not doing a feature build at all, it's a
> product based on features. Anyways, I got it going, almost. I started
> from scratch, and went through each property, and set up a new build area,
> and it works. However, it only works if all of my plugins are already
> built. When I do a check out from version control, and then start the
> build process, when it gets to the part where it builds the plugins
> themselves, the order is strange.
>
> The first issue (which kills the build) is that it tries to build a
> fragment plugin first before the host plugin. Does this make any sense?
> When it tries to build the fragment, it can't find the classes from the
> host and fails.
>
>
> "Paul Gardiner" <pgardiner@syntellect.com> wrote in message
> news:f032c1$n5d$1@build.eclipse.org...
>> Are there any decent examples of doing a pde product build? I followed
>> the instructions int the help file, but I keep going in circles resolving
>> obscure error messages. I am not fetching from cvs at all.
>>
>> I looked on the eclipseson site, and there isn't any material for the
>> long session on pde build, and almost everything I have seen is for
>> feature builds.
>>
>
>
Previous Topic:menuContribution in 3.3
Next Topic:org/eclipse/core/runtime/Assert missing
Goto Forum:
  


Current Time: Thu May 15 13:05:22 EDT 2025

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

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

Back to the top