CheckOutNBSources

Checking out from CVS and doing headless builds

Doc Contributor: Varun Nischal
[[{TableOfContentsTitle=TableOfContents} | {TableOfContents title='Table of Contents'}]]
Most of might have already got an idea of what exactly is NetBeans IDE all about, its time to take the next big step- work with NetBeans sources. You might have even encountered some bugs, might have filed them on IssueZilla as well.
Also, you might have tried out the sample Plug-in's as well as other Rich-Client App's etc.

Now, its time to get your hands-on their source code.

Three questions arise
1. Why Its Requried?
2. How can we get hands-on it?
3. From where to get the Source code?

This document is going to provide you ways on how to use CVS effectively. This is my personal experience which I'm sharing with you people. I hope everyone would be able to benefit from this doc.

However, I shall give you a brief introduction on CVS. Then, I would proceed with the more important things to be covered here.

Read Legal Notice as well, its important to know what rights you would be exercising when downloading and using NetBeans source-code.


Introduction


Concurrent Versioning System, abbreviated as CVS, is an open-source version control system that keeps track of all work and all changes in a set of files, typically the implementation of a software project , and allows several (potentially widely-separated) developers to collaborate .

  • In our case, the software project is NetBeans IDE, collaboration is done by NetBeans community members
  • It was invented and developed by Dick Grune in the 1980s. CVS has become popular in the open source software world and is released under the "GNU General Public License".

One can either checkout the sources from the command line, or even using the CVS support built into the IDE itself! Before you start you should know how the sources are organized, both in terms of directory structure , and also branches (most important for login access).


Why Its Requried?

If you are a good programmer and a regular user of such IDE's.

  • As I said before, you might have encountered some bugs and would have thought, that if given a chance, you will correct it on your own and re-build it, as any regular Unix-compliant OS user does!

Then don't waste the opportunity, just grab it.

How can we get hands-on CVS?

There are few methods, to get the CVS client. It was the first time, I used it and learned about it.

  • For command line Versioning;
  • Linux Machines — Most Linux machines have the command-line CVS client installed by default. If you should not have a CVS client, first download and install one of the available clients.
  • Using CVS on Windows — If you use Windows and you don't have a CVS client yet, the community recommends you to download and install this CVS client. Choose cvs-1-11-17.zip or better.
  • Refer To http://www.netbeans.org/community/sources/cvs.html, for precise information.


  • Using NetBeans in-built CVS Versioning Tool;
  • Just click on the Versioning menu, goto CVS > Checkout...
  • That's it, you don't have to do any personal checks.

From where to get the Source code?

  • Browse them online, click on any one of the modules present there and then you would get options, how to checkout them using command-line CVS.


Legal Notice


By downloading builds, source code, or accessing the CVS repository, you acknowledge that you have read, understood, and agree to be bound by the terms and conditions of the applicable licenses:

All the souce code made available on "NB.org" is provided to you under the terms and conditions of "Common Development and Distribution License ( CDDL) v1.0 and the GNU General Public License (GPL) v2".

The software developed at "NB.org" may make use of third-party software components which are distributed under different licenses than the CDDL. Examples of such components may include Apache Ant, Apache Tomcat, JUnit, JavaHelp runtime, Java Compiler - a wrapper around the JDK java compiler.

All those components are either open source software or redistributable binary libraries. They are included in the builds, source code downloads and the CVS repository. Their licenses can be found in the

  • For the IDE installation the license is in the top-level directory
  • For the feature pack the license is in the top-level directory of the feature pack
  • For a module source directory the license texts are in a subdirectory named "external"


It is your obligation to read and accept all such terms and conditions prior to the use of the builds and source code made available on the "NB.org" website or in the "NB.org" CVS repository.


CheckOut - Getting the Sources


[{InsertPage page='COutNBSources_6'

            style='margin: 10px; padding: 5px;}]

Building NetBeans 6.0 Sources from Its IDE

[{InsertPage page='BuildingNetBeans6.0'

            style='margin: 10px; padding: 5px;' 
            }]

References


Checkout using CVS

Netbeans.org
NetBeans Sources
Guided Tutorials
Using NB 5.0
Guided Tour For NB 6.0
NetBeans Wiki
Search Results
Placing a NetBeans projects into CVS

Build Process

  1. Checking Out NB Sources
  2. Getting Source Code Zip-File

Work Ahead


  • Building sources from "zip-file".


  • For the time being, you can refer to the following Wiki docs;


Any Queries?


Drop a mail at my NetBeans ID.

thanks Jeniffer Samsung GALAXY NOTE Cases.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo