Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » "Build site" debugging
"Build site" debugging [message #59328] Sat, 02 May 2009 18:04 Go to next message
Julen Parra is currently offline Julen ParraFriend
Messages: 12
Registered: July 2009
Junior Member
Hi, everybody. Sorry, I posted this in eclipse.platform, but I suppose it
belongs most rightly here.

I maintain an OSS project (quantum.sourceforge.net) that is a database
plugin for Eclipse. I build it using the ant scripts generated by the PDE.
That works fine. But then, when building the update site using the
"site.xml"->PDE Tools->Build site automatic build, the build will fail.
The main plugin will compile OK, but the other plugins will complain (in
the logs.zip file) of "The import com.quantum.core cannot be resolved",
and similar. All imports that refer to the main plugin won't be found.

So my question is if there is a way of debugging that automated build, or
generating an ant script for it, or modifying it somehow, or similar. If
that's not possible, any idea on why my build could be failing that way
would be appreciated.

Thanks in advance.
Re: "Build site" debugging [message #59402 is a reply to message #59328] Sat, 02 May 2009 21:01 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Julen Parra wrote:
> Hi, everybody. Sorry, I posted this in eclipse.platform, but I suppose
> it belongs most rightly here.
>
> I maintain an OSS project (quantum.sourceforge.net) that is a database
> plugin for Eclipse. I build it using the ant scripts generated by the
> PDE. That works fine. But then, when building the update site using the
> "site.xml"->PDE Tools->Build site automatic build, the build will fail.
> The main plugin will compile OK, but the other plugins will complain (in
> the logs.zip file) of "The import com.quantum.core cannot be resolved",
> and similar. All imports that refer to the main plugin won't be found.
>
> So my question is if there is a way of debugging that automated build,
> or generating an ant script for it, or modifying it somehow, or similar.
> If that's not possible, any idea on why my build could be failing that
> way would be appreciated.

Don't generate Ant scripts from within PDE... it's a bad idea... I
really want us to remove that functionality... :(

I recommend you remove those generated build.xml files and use PDE Build
to build your plug-ins. I'd also use a product definition to make things
easier. Here's some articles on how to use PDE Build:

http://www.vogella.de/articles/EclipsePDEBuild/article.html
http://aniefer.blogspot.com/2008/06/example-headless-build-f or-rcp-product.html

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: "Build site" debugging [message #59427 is a reply to message #59402] Sun, 03 May 2009 00:18 Go to previous message
Julen Parra is currently offline Julen ParraFriend
Messages: 12
Registered: July 2009
Junior Member
Thanks a lot. I have always wanted to make a headless build procedure, but
was too lazy to really invest the work to do it. Also, most info about
headless build uses just one plugin, and I was never very sure how to
scale that to multiple plugins. The PDE generated scripts, although
certainly a bit of a pain to re-generate every time, are convenient to
use.

I'll have a look at the articles you mention, and try again to make a
headless procedure. Specially since I suppose that, if I do a headless
build, it could be modified to generate also the update site, so solving
my problem. I have been searching for info on doing that, but no big luck.
Just a couple of projects that have it done, and you could download the
ant script, but no explanation. If you know of some resource where the
procedure is explained, I'd be very grateful.

Thanks again. :o)

Julen.
Re: "Build site" debugging [message #596727 is a reply to message #59328] Sat, 02 May 2009 21:01 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Julen Parra wrote:
> Hi, everybody. Sorry, I posted this in eclipse.platform, but I suppose
> it belongs most rightly here.
>
> I maintain an OSS project (quantum.sourceforge.net) that is a database
> plugin for Eclipse. I build it using the ant scripts generated by the
> PDE. That works fine. But then, when building the update site using the
> "site.xml"->PDE Tools->Build site automatic build, the build will fail.
> The main plugin will compile OK, but the other plugins will complain (in
> the logs.zip file) of "The import com.quantum.core cannot be resolved",
> and similar. All imports that refer to the main plugin won't be found.
>
> So my question is if there is a way of debugging that automated build,
> or generating an ant script for it, or modifying it somehow, or similar.
> If that's not possible, any idea on why my build could be failing that
> way would be appreciated.

Don't generate Ant scripts from within PDE... it's a bad idea... I
really want us to remove that functionality... :(

I recommend you remove those generated build.xml files and use PDE Build
to build your plug-ins. I'd also use a product definition to make things
easier. Here's some articles on how to use PDE Build:

http://www.vogella.de/articles/EclipsePDEBuild/article.html
http://aniefer.blogspot.com/2008/06/example-headless-build-f or-rcp-product.html

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: "Build site" debugging [message #596731 is a reply to message #59402] Sun, 03 May 2009 00:18 Go to previous message
Julen Parra is currently offline Julen ParraFriend
Messages: 12
Registered: July 2009
Junior Member
Thanks a lot. I have always wanted to make a headless build procedure, but
was too lazy to really invest the work to do it. Also, most info about
headless build uses just one plugin, and I was never very sure how to
scale that to multiple plugins. The PDE generated scripts, although
certainly a bit of a pain to re-generate every time, are convenient to
use.

I'll have a look at the articles you mention, and try again to make a
headless procedure. Specially since I suppose that, if I do a headless
build, it could be modified to generate also the update site, so solving
my problem. I have been searching for info on doing that, but no big luck.
Just a couple of projects that have it done, and you could download the
ant script, but no explanation. If you know of some resource where the
procedure is explained, I'd be very grateful.

Thanks again. :o)

Julen.
Previous Topic:Using p2.inf to create a directory
Next Topic:Do we need different update sites for Windows and MacOSX?
Goto Forum:
  


Current Time: Fri Mar 29 05:13:04 GMT 2024

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

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

Back to the top