You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Doroszlai, Attila" <ad...@apache.org> on 2018/03/01 12:08:02 UTC

IDE setup required on branch-feature-AMBARI-14714

Hi,

For those developing on branch-feature-AMBARI-14714:

We started using FreeBuilder, an Apache 2.0-licenced code generation
library.  The goal is to reduce the amount of boilerplate code we need
to write a bit.

https://github.com/inferred/FreeBuilder#quick-start

It needs a bit of setup in IDEs, but there are instructions for both
Eclipse and IntelliJ IDEA:

* https://github.com/inferred/FreeBuilder#eclipse
* https://github.com/inferred/FreeBuilder#intellij

I found that in IDEA the only step that needs to be done is: find the
directory "ambari-server > target > generated-sources > annotations"
in the Project pane, right-click it, and select Mark Directory as >
Generated Sources Root.

Please let me know if you run into any problem with it.

-Attila

Re: IDE setup required on branch-feature-AMBARI-14714

Posted by Jonathan Hurley <jh...@hortonworks.com>.
I think this is something that should get voted on before it goes back into trunk. In general, it's risky to have to depend on 3rd party plugins to have a working, compiling project. If the contributors of FreeBuilder ever decide to abandon the project or if Eclipse or IntelliJ become incompatible with their JAR for any reason, it would leave the project in a bad state. 

> On Mar 1, 2018, at 8:19 AM, Nate Cole <nc...@hortonworks.com> wrote:
> 
> Was code generation discussed on an open thread?  Will this make things even more difficult to contribute to Ambari?
> 
> What boilerplate code are you referring and what is the precedent going forward?  What should we boilerplating?
> 
> Most developers won’t know or care unless forced to use it.
> 
> 
> On 3/1/18, 7:08 AM, "Doroszlai, Attila" <ad...@apache.org> wrote:
> 
>    Hi,
> 
>    For those developing on branch-feature-AMBARI-14714:
> 
>    We started using FreeBuilder, an Apache 2.0-licenced code generation
>    library.  The goal is to reduce the amount of boilerplate code we need
>    to write a bit.
> 
>    https://github.com/inferred/FreeBuilder#quick-start
> 
>    It needs a bit of setup in IDEs, but there are instructions for both
>    Eclipse and IntelliJ IDEA:
> 
>    * https://github.com/inferred/FreeBuilder#eclipse
>    * https://github.com/inferred/FreeBuilder#intellij
> 
>    I found that in IDEA the only step that needs to be done is: find the
>    directory "ambari-server > target > generated-sources > annotations"
>    in the Project pane, right-click it, and select Mark Directory as >
>    Generated Sources Root.
> 
>    Please let me know if you run into any problem with it.
> 
>    -Attila
> 
> 
> 


Re: IDE setup required on branch-feature-AMBARI-14714

Posted by Nate Cole <nc...@hortonworks.com>.
Was code generation discussed on an open thread?  Will this make things even more difficult to contribute to Ambari?

What boilerplate code are you referring and what is the precedent going forward?  What should we boilerplating?

Most developers won’t know or care unless forced to use it.
 

On 3/1/18, 7:08 AM, "Doroszlai, Attila" <ad...@apache.org> wrote:

    Hi,
    
    For those developing on branch-feature-AMBARI-14714:
    
    We started using FreeBuilder, an Apache 2.0-licenced code generation
    library.  The goal is to reduce the amount of boilerplate code we need
    to write a bit.
    
    https://github.com/inferred/FreeBuilder#quick-start
    
    It needs a bit of setup in IDEs, but there are instructions for both
    Eclipse and IntelliJ IDEA:
    
    * https://github.com/inferred/FreeBuilder#eclipse
    * https://github.com/inferred/FreeBuilder#intellij
    
    I found that in IDEA the only step that needs to be done is: find the
    directory "ambari-server > target > generated-sources > annotations"
    in the Project pane, right-click it, and select Mark Directory as >
    Generated Sources Root.
    
    Please let me know if you run into any problem with it.
    
    -Attila