You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Jean-Philippe Caruana <je...@orange-ftgroup.com> on 2011/02/02 11:31:52 UTC

buildr and eclipse : .class files

Hi,

I'm using buildr 1.4.4 with eclipse.
I do generate my eclipse files with buildr eclipse and it works fine.
But it seems to me that .class files are completely different when 
eclipse compiles and when buildr compiles. It becomes a problem when I 
want to use the incremental build : I have a lot a compilation errors 
under buildr (when I change an API) and I have to make "buildr clean 
test" every time. It's like working with maven again :-(
My question is : is it possible to have eclipse compile its classes in 
another directory than buildr's ? I don't want an eclipse hack, but a 
buildr way of doing it.

Thanks

-- Jean-Philippe Caruana
********************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'attention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration. Multimedia Business Services decline
toute responsabilite au titre de ce message s'il a ete altere, deforme
ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur.
*********************************
This message and any attachments (the "message") are confidential and
intended solely for the addressees. Any unauthorised use or
dissemination is prohibited.
Messages are susceptible to alteration. Multimedia Business Services shall not be liable for the
message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it
immediately and inform the sender..
********************************

Re: buildr and eclipse : .class files

Posted by Peter Donald <pe...@realityforge.org>.
On Thu, Feb 3, 2011 at 4:23 AM, Alex Boisvert <al...@gmail.com> wrote:
> Would having an option to build into a different directory be a good
> solution?  Or even use a different directory by default?

The idea extension allows you to set a different directory for it to
generate it's .class files in. I almost always use this feature to put
class files in _(:target, :idea, :main, :java) and _(:target, :idea,
:test, :java) - that way you avoid the IDE getting confused when you
compile from the command line. I thought about making that the default
but didn't but if you change the eclipse one we can change the buildr
one at the same time.

-- 
Cheers,

Peter Donald

Re: buildr and eclipse : .class files

Posted by Alex Boisvert <al...@gmail.com>.
Would having an option to build into a different directory be a good
solution?  Or even use a different directory by default?

alex

On Wednesday, February 2, 2011, Antoine Toulme <an...@lunar-ocean.com> wrote:
> Yes, same problem as maven. You need to configure Eclipse to build somewhere
> else.
>
> Go to the project, right-click, Properties, go to Java Build Path, in
> Source, change the Default output folder to bin.
>
> This is not a hack, that's how it is :)
>
> On Wed, Feb 2, 2011 at 02:31, Jean-Philippe Caruana <
> jeanphilippe1.caruana@orange-ftgroup.com> wrote:
>
>> Hi,
>>
>> I'm using buildr 1.4.4 with eclipse.
>> I do generate my eclipse files with buildr eclipse and it works fine.
>> But it seems to me that .class files are completely different when eclipse
>> compiles and when buildr compiles. It becomes a problem when I want to use
>> the incremental build : I have a lot a compilation errors under buildr (when
>> I change an API) and I have to make "buildr clean test" every time. It's
>> like working with maven again :-(
>> My question is : is it possible to have eclipse compile its classes in
>> another directory than buildr's ? I don't want an eclipse hack, but a buildr
>> way of doing it.
>>
>> Thanks
>>
>> -- Jean-Philippe Caruana
>> ********************************
>> Ce message et toutes les pieces jointes (ci-apres le "message") sont
>> confidentiels et etablis a l'attention exclusive de ses destinataires.
>> Toute utilisation ou diffusion non autorisee est interdite.
>> Tout message electronique est susceptible d'alteration. Multimedia Business
>> Services decline
>> toute responsabilite au titre de ce message s'il a ete altere, deforme
>> ou falsifie.
>> Si vous n'etes pas destinataire de ce message, merci de le detruire
>> immediatement et d'avertir l'expediteur.
>> *********************************
>> This message and any attachments (the "message") are confidential and
>> intended solely for the addressees. Any unauthorised use or
>> dissemination is prohibited.
>> Messages are susceptible to alteration. Multimedia Business Services shall
>> not be liable for the
>> message if altered, changed or falsified.
>> If you are not the intended addressee of this message, please cancel it
>> immediately and inform the sender..
>> ********************************
>>
>

Re: buildr and eclipse : .class files

Posted by Antoine Toulme <an...@lunar-ocean.com>.
Yes, same problem as maven. You need to configure Eclipse to build somewhere
else.

Go to the project, right-click, Properties, go to Java Build Path, in
Source, change the Default output folder to bin.

This is not a hack, that's how it is :)

On Wed, Feb 2, 2011 at 02:31, Jean-Philippe Caruana <
jeanphilippe1.caruana@orange-ftgroup.com> wrote:

> Hi,
>
> I'm using buildr 1.4.4 with eclipse.
> I do generate my eclipse files with buildr eclipse and it works fine.
> But it seems to me that .class files are completely different when eclipse
> compiles and when buildr compiles. It becomes a problem when I want to use
> the incremental build : I have a lot a compilation errors under buildr (when
> I change an API) and I have to make "buildr clean test" every time. It's
> like working with maven again :-(
> My question is : is it possible to have eclipse compile its classes in
> another directory than buildr's ? I don't want an eclipse hack, but a buildr
> way of doing it.
>
> Thanks
>
> -- Jean-Philippe Caruana
> ********************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'attention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration. Multimedia Business
> Services decline
> toute responsabilite au titre de ce message s'il a ete altere, deforme
> ou falsifie.
> Si vous n'etes pas destinataire de ce message, merci de le detruire
> immediatement et d'avertir l'expediteur.
> *********************************
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees. Any unauthorised use or
> dissemination is prohibited.
> Messages are susceptible to alteration. Multimedia Business Services shall
> not be liable for the
> message if altered, changed or falsified.
> If you are not the intended addressee of this message, please cancel it
> immediately and inform the sender..
> ********************************
>

Re: buildr and eclipse : .class files

Posted by lacton <la...@users.sourceforge.net>.
I haven't used buildr with Eclipse for a long time, but IIRC they used to
coexist peacefully. Any idea what has changed?

Could you provide a minimal use case that I could use to reproduce the
issue? I'd like to understand the root cause.

Cheers.

lacton

On Wed, Feb 2, 2011 at 11:31 AM, Jean-Philippe Caruana <
jeanphilippe1.caruana@orange-ftgroup.com> wrote:

> Hi,
>
> I'm using buildr 1.4.4 with eclipse.
> I do generate my eclipse files with buildr eclipse and it works fine.
> But it seems to me that .class files are completely different when eclipse
> compiles and when buildr compiles. It becomes a problem when I want to use
> the incremental build : I have a lot a compilation errors under buildr (when
> I change an API) and I have to make "buildr clean test" every time. It's
> like working with maven again :-(
> My question is : is it possible to have eclipse compile its classes in
> another directory than buildr's ? I don't want an eclipse hack, but a buildr
> way of doing it.
>
> Thanks
>
> -- Jean-Philippe Caruana
> ********************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'attention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration. Multimedia Business
> Services decline
> toute responsabilite au titre de ce message s'il a ete altere, deforme
> ou falsifie.
> Si vous n'etes pas destinataire de ce message, merci de le detruire
> immediatement et d'avertir l'expediteur.
> *********************************
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees. Any unauthorised use or
> dissemination is prohibited.
> Messages are susceptible to alteration. Multimedia Business Services shall
> not be liable for the
> message if altered, changed or falsified.
> If you are not the intended addressee of this message, please cancel it
> immediately and inform the sender..
> ********************************
>