Home » Archived » Buckminster » how to debug a build?
how to debug a build? [message #530677] |
Fri, 30 April 2010 13:58 |
Vlad Dumitrescu Messages: 431 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 |
|
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 |
Vlad Dumitrescu Messages: 431 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.
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 |
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 #530792 is a reply to message #530785] |
Fri, 30 April 2010 22:23 |
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 |
Vlad Dumitrescu Messages: 431 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 |
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
|
|
|
Goto Forum:
Current Time: Fri Apr 19 14:02:44 GMT 2024
Powered by FUDForum. Page generated in 0.02971 seconds
|