My favorites | Sign in
Logo
                
Search
for
Updated Oct 16, 2009 by jonas.fonseca
Labels: Featured
Contribute  
Developer resources and how to contribute code

So you want to contribute? Below are some useful resources of where to start and what to consider before submitting your changes.

Developer Resources

First, read the introduction to NetBeans VCS modules and the introduction to the code.

JGit:

  • Tutorial (work in progress)
  • Issues for JGit that need work
  • ... and of course the javadoc which has hints on best practices.

Document about the NetBeans VCS API and standards:

Other NetBeans resources:

Tips

Java 5 compatibility

Contributing Code and Licensing

The project contains code with different licenses. Because of this split licensing model every file within the project must list which license covers it in the header of the file. Any new files must clearly indicate which license they are provided under in the file header. Any new contributions to an existing file must be submitted under the current license of that file.

Furthermore, to improve tracking of who did what and make it clear that you have verified that you are legally allowed and willing to submit your changes under the license covering each file, you should sign-off your changes. The sign-off is a simple line at the end of the explanation for the patch, which certifies that you wrote it or otherwise have the right to contribute it under the license stated in the patch or the files being changed. The rules are pretty simple: if you can certify the Developer's Certificate of Origin 1.1 listed below then you just add a line saying

Signed-off-by: Random J Developer <devrandom@example.org>

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

  1. The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
  2. The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
  3. The contribution was provided directly to me by some other person who certified 1., 2. or 3. and I have not modified it.
  4. I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Sign in to add a comment
Hosted by Google Code