Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Open the OpenJDK project with NetBeans.

  2. Make some changes in the project code as shown:

  3. Then, follow the chain of context menus, as shown in the preceding screenshot.

  4. Click on the OK button.

  5. 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...