Creating a patch using NetBeans
This section will show you how to create a patch of the OpenJDK project using NetBeans.
Getting ready
You will need a configured development environment. It is preferable that you use NetBeans since NetBeans is a standard tool for developing and debugging OpenJDK.
How to do it...
We will do a simple patch creation with Mercurial and NetBeans by following these steps:
- Open the OpenJDK project with NetBeans.
- Make some changes in the project code as shown:
- Then, follow the chain of context menus, as shown in the preceding screenshot.
- Click on the OK button.
- Your patch will be saved to the specified directory. Later, you can apply patches using the Apply Diff Patch item in the Mercurial context menu.
How it works
NetBeans calls a program that exports a diff (your uncommitted changes versus the head revision in the repository) to a file that can be read and applied when needed.
See also...
Also, diffs between different divisions can also be exported. To do that, simply click...