Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » how to debug a build?
how to debug a build? [message #530677] Fri, 30 April 2010 13:58 Go to next message
Vlad Dumitrescu is currently offline Vlad Dumitrescu
Messages: 318
Registered: July 2009
Location: Gothenburg
Senior Member
Hi,

I'm quite a noob with Buckminster and I can't get it to work properly. I hope someone can help me.

I have a custom builder that has to be configured. For this I do

import '${WORKSPACE}/org.erlide.site/site.cquery'
importpreferences -F '${WORKSPACE}/org.erlide.site/erl.epf' -S 'instance'


but only the java files are getting compiled. The configuration seems to be ok (checked in .metadata). Autobuild is enabled too (I suppose the java files wouldn't get compiled either if it wasn't).

What I would like to get is the log output from the "normal" eclipse execution, but -consoleLog doesn't give that. Is it possible to obtain that log? Or is there some other way to check out what the custom builder does?

I'm using Eclipse 3.5 if that's interesting.

Thanks in advance!
best regards,
Vlad

[Updated on: Fri, 30 April 2010 14:26]

Report message to a moderator

Re: how to debug a build? [message #530698 is a reply to message #530677] Fri, 30 April 2010 14:43 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Hi Vlad,
The autobuild will always be disabled when you run headlessly. You need to issue a build command explicitly after the
imports to make it happen.

If some builders that you have listed in the .project file fails to run, then that might be caused by them having UI
dependencies and thus, being disabled. The Eclipse External Tools builder is one of those. If the objective is to call
on Ant using that, then you can use Buckminsters own ant launcher. It works headlessly. It's described in detail in the
documentation: http://www.eclipse.org/downloads/download.php?file=/tools/bu ckminster/doc/BuckyBook.pdf (chapter "Part
II. Buckminster" -> "Components" -> "External Tools Builder".

HTH,
THomas Hallgren

On 04/30/2010 03:58 PM, Vlad Dumitrescu wrote:
> Hi,
>
> I'm quite a noob with Buckminster and I can't get it to work properly. I
> hope someone can help me.
>
> I have a custom builder that has to be configured. For this I do
>
> import '${WORKSPACE}/org.erlide.site/site.cquery'
> importpreferences -F '${WORKSPACE}/org.erlide.site/erl.epf' -S 'instance'
>
> but only the java files are getting compiled. The configuration seems to
> be ok (checked in .metadata). Autobuild is enabled too (I suppose the
> java files wouldn't get compiled either if it wasn't).
>
> What I would like to get is the log output from the "normal" eclipse
> execution, but -consoleLog doesn't give that. Is it possible to obtain
> that log? Or is ther some other way to check out what the custom builder
> does?
> Thanks in advance!
> best regards,
> Vlad
>
Re: how to debug a build? [message #530755 is a reply to message #530698] Fri, 30 April 2010 17:31 Go to previous messageGo to next message
Vlad Dumitrescu is currently offline Vlad Dumitrescu
Messages: 318
Registered: July 2009
Location: Gothenburg
Senior Member
Thank you for the answer, Thomas.

Thomas Hallgren wrote on Fri, 30 April 2010 10:43
Hi Vlad,
The autobuild will always be disabled when you run headlessly. You need to issue a build command explicitly after the
imports to make it happen.


I set it to true in the preferences the I am importing. Isn't that enough? If the Java projects are getting compiled, it should be set, right?

Quote:
If some builders that you have listed in the .project file fails to run, then that might be caused by them having UI
dependencies and thus, being disabled.


I thought about that, too. The plugin implementing the builder has no UI dependencies. I even tried to tweak the target definition to exclude the ui plugins, but they seem to be installed anyway.

Quote:
The Eclipse External Tools builder is one of those. If the objective is to call
on Ant using that, then you can use Buckminsters own ant launcher. It works headlessly. It's described in detail in the
documentation: http://www.eclipse.org/downloads/download.php?file=/tools/bu ckminster/doc/BuckyBook.pdf (chapter "Part
II. Buckminster" -> "Components" -> "External Tools Builder".


No, it's not an external tool, it is a builder implemented by a plugin. Actually, it's exactly the plugins that I am trying to build, just an older version.

Thanks for the help!
/Vlad

Quote:


HTH,
THomas Hallgren

On 04/30/2010 03:58 PM, Vlad Dumitrescu wrote:
> Hi,
>
> I'm quite a noob with Buckminster and I can't get it to work properly. I
> hope someone can help me.
>
> I have a custom builder that has to be configured. For this I do
>
> import '${WORKSPACE}/org.erlide.site/site.cquery'
> importpreferences -F '${WORKSPACE}/org.erlide.site/erl.epf' -S 'instance'
>
> but only the java files are getting compiled. The configuration seems to
> be ok (checked in .metadata). Autobuild is enabled too (I suppose the
> java files wouldn't get compiled either if it wasn't).
>
> What I would like to get is the log output from the "normal" eclipse
> execution, but -consoleLog doesn't give that. Is it possible to obtain
> that log? Or is ther some other way to check out what the custom builder
> does?
> Thanks in advance!
> best regards,
> Vlad
>

Re: how to debug a build? [message #530780 is a reply to message #530755] Fri, 30 April 2010 19:36 Go to previous messageGo to next message
Achim Demelt is currently offline Achim Demelt
Messages: 160
Registered: July 2009
Senior Member
Hi Vlad,

Some comments below.

Vlad Dumitrescu wrote:

> Thank you for the answer, Thomas.
>
> Thomas Hallgren wrote on Fri, 30 April 2010 10:43
>> Hi Vlad,
>> The autobuild will always be disabled when you run headlessly. You need
>> to issue a build command explicitly after the imports to make it happen.
>
>
> I set it to true in the preferences the I am importing. Isn't that enough?
> If the Java projects are getting compiled, it should be set, right?
>

Buckminster will actively set the autobuild flag to false, regardless of
your workspace settings. So issuing a "build" command is definitely
required.

> Quote:
>> If some builders that you have listed in the .project file fails to run,
>> then that might be caused by them having UI dependencies and thus, being
>> disabled.
>
>
> I thought about that, too. The plugin implementing the builder has no UI
> dependencies. I even tried to tweak the target definition to exclude the
> ui plugins, but they seem to be installed anyway.
>

Please note that the builder must be installed in your Buckminster product.
It is not sufficient to have it in your target platform. That's similar to
your IDE: In order for your builder to execute, you must install it into
your Eclipse IDE.

HTH,
Achim

> Quote:
>> The Eclipse External Tools builder is one of those. If the objective is
>> to call on Ant using that, then you can use Buckminsters own ant
>> launcher. It works headlessly. It's described in detail in the
>> documentation:
>> http://www.eclipse.org/downloads/download.php?file=/tools/bu
>> ckminster/doc/BuckyBook.pdf (chapter "Part II. Buckminster" ->
>> "Components" -> "External Tools Builder".
>
>
> No, it's not an external tool, it is a builder implemented by a plugin.
> Actually, it's exactly the plugins that I am trying to build, just an
> older version.
>
> Thanks for the help!
> /Vlad
>
> Quote:
>> HTH,
>> THomas Hallgren
>>
>> On 04/30/2010 03:58 PM, Vlad Dumitrescu wrote:
>> > Hi,
>> >
>> > I'm quite a noob with Buckminster and I can't get it to work properly.
>> > I hope someone can help me.
>> >
>> > I have a custom builder that has to be configured. For this I do
>> >
>> > import '${WORKSPACE}/org.erlide.site/site.cquery'
>> > importpreferences -F '${WORKSPACE}/org.erlide.site/erl.epf' -S
>> > 'instance'
>> >
>> > but only the java files are getting compiled. The configuration seems
>> > to be ok (checked in .metadata). Autobuild is enabled too (I suppose
>> > the java files wouldn't get compiled either if it wasn't).
>> >
>> > What I would like to get is the log output from the "normal" eclipse
>> > execution, but -consoleLog doesn't give that. Is it possible to obtain
>> > that log? Or is ther some other way to check out what the custom
>> > builder does?
>> > Thanks in advance!
>> > best regards,
>> > Vlad
>> >
Re: how to debug a build? [message #530785 is a reply to message #530780] Fri, 30 April 2010 20:46 Go to previous messageGo to next message
Vlad Dumitrescu is currently offline Vlad Dumitrescu
Messages: 318
Registered: July 2009
Location: Gothenburg
Senior Member
Hello Achim,

Achim Demelt wrote on Fri, 30 April 2010 15:36
Buckminster will actively set the autobuild flag to false, regardless of
your workspace settings. So issuing a "build" command is definitely
required.


Yes, I do that.

Quote:
Please note that the builder must be installed in your Buckminster product.
It is not sufficient to have it in your target platform. That's similar to
your IDE: In order for your builder to execute, you must install it into
your Eclipse IDE.


Okay, I think I understand. Just to make sure: this means that I will have to create a headless feature for my tools that excludes the UI plugins, right?

Thanks!
regards,
Vlad
Re: how to debug a build? [message #530792 is a reply to message #530785] Fri, 30 April 2010 22:23 Go to previous messageGo to next message
Achim Demelt is currently offline Achim Demelt
Messages: 160
Registered: July 2009
Senior Member
Vlad Dumitrescu wrote:

> Hello Achim,
>
> Achim Demelt wrote on Fri, 30 April 2010 15:36
>> Buckminster will actively set the autobuild flag to false, regardless of
>> your workspace settings. So issuing a "build" command is definitely
>> required.
>
>
> Yes, I do that.
>
> Quote:
>> Please note that the builder must be installed in your Buckminster
>> product. It is not sufficient to have it in your target platform. That's
>> similar to your IDE: In order for your builder to execute, you must
>> install it into your Eclipse IDE.
>
>
> Okay, I think I understand. Just to make sure: this means that I will have
> to create a headless feature for my tools that excludes the UI plugins,
> right?
>

Yes, that's the way to go!

> Thanks!
> regards,
> Vlad
Re: how to debug a build? [message #530849 is a reply to message #530792] Sat, 01 May 2010 19:56 Go to previous messageGo to next message
Vlad Dumitrescu is currently offline Vlad Dumitrescu
Messages: 318
Registered: July 2009
Location: Gothenburg
Senior Member
>> Okay, I think I understand. Just to make sure: this means that I will have
>> to create a headless feature for my tools that excludes the UI plugins,
>> right?
>
> Yes, that's the way to go!

Thanks a lot, it works like a charm!

However, I have a related question: I tried to add checkstyle and findbugs, so that I can get those reports in my Hudson build. Buthe the features contain UI plugins and can't be installed... The question is: is it possible to install UI in a headless buckminster, or how do I get it to work? Do I have to install a separate eclipse with the full sdk, and run that instead? It feels clunky...

best regard,
Vlad
Re: how to debug a build? [message #530855 is a reply to message #530849] Sat, 01 May 2010 21:56 Go to previous message
Achim Demelt is currently offline Achim Demelt
Messages: 160
Registered: July 2009
Senior Member
Hi Vlad,

Great to hear that you are making progress! Regarding Checkstyle and
Findbugs, you may be able to install the plugins (not the features) using
the p2 director instead of buckminster's install command. I don't know if
anyone has tried this, so I'll be happy to hear about your experiences.

Achim

Vlad Dumitrescu wrote:

>>> Okay, I think I understand. Just to make sure: this means that I will
>>> have to create a headless feature for my tools that excludes the UI
>>> plugins, right?
>>
>> Yes, that's the way to go!
>
> Thanks a lot, it works like a charm!
>
> However, I have a related question: I tried to add checkstyle and
> findbugs, so that I can get those reports in my Hudson build. Buthe the
> features contain UI plugins and can't be installed... The question is: is
> it possible to install UI in a headless buckminster, or how do I get it to
> work? Do I have to install a separate eclipse with the full sdk, and run
> that instead? It feels clunky...
>
> best regard,
> Vlad
Previous Topic:headless builds with groovy
Next Topic:Problem installing JDT feature in Headless
Goto Forum:
  


Current Time: Thu Oct 30 17:44:28 GMT 2014

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

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