make/netbeans/README

Wed, 27 Apr 2016 01:34:52 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:34:52 +0800
changeset 0
959103a6100f
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/
changeset: 2573:53ca196be1ae
tag: jdk8u25-b17

aoqi@0 1 Using NetBeans to work on the langtools repository.
aoqi@0 2
aoqi@0 3 Netbeans 6.0 or later is recommended.
aoqi@0 4
aoqi@0 5 The "langtools" project in this directory allows you to
aoqi@0 6 edit, run, test and debug the tools in the OpenJDK langtools
aoqi@0 7 repository.
aoqi@0 8
aoqi@0 9 The repository contains a number of tools:
aoqi@0 10 javac, javadoc and its doclets, javah and javap.
aoqi@0 11
aoqi@0 12 Build Properties.
aoqi@0 13
aoqi@0 14 To build this repository, you must set some properties for Ant.
aoqi@0 15 You can set these properties in a number of ways:
aoqi@0 16
aoqi@0 17 - Set the properties in the Properties panel under Tool> Options> Ant.
aoqi@0 18 Properties set this way will apply globally to all the langtools
aoqi@0 19 repositories you may be working on.
aoqi@0 20
aoqi@0 21 - Create a file build.properties in the root directory of a
aoqi@0 22 langtools repository, and set the properties in that file.
aoqi@0 23 These properties will be specific to that repository.
aoqi@0 24
aoqi@0 25 To build the repository, at a minimum you must set the "boot.java.home"
aoqi@0 26 property. To run the tools, you must also set "target.java.home". To
aoqi@0 27 run the regression tests, you must set "jtreg.home".
aoqi@0 28
aoqi@0 29 By default, the build and test targets will build and test all
aoqi@0 30 of these tools. The run and debug targets will prompt you for the
aoqi@0 31 name of a tool to execute.
aoqi@0 32
aoqi@0 33 As an alternative, you can focus on a single tool. When you do
aoqi@0 34 this, you will still see all the source code for all the tools,
aoqi@0 35 but the various Ant targets will now be focussed on the selected tool.
aoqi@0 36 To focus on a tool, bring up the context menu on the "langtools"
aoqi@0 37 project (i.e. right-click on the project) and select "Select Tool".
aoqi@0 38 This brings up a dialog which allows you to specify which tool you
aoqi@0 39 wish to work on, and the arguments to use if and when you run it.

mercurial