ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate Cole <nc...@hortonworks.com>
Subject Re: IDE setup required on branch-feature-AMBARI-14714
Date Thu, 01 Mar 2018 13:19:07 GMT
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" <adoroszlai@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
    
    

Mime
View raw message