1N/AUsing NetBeans to work on the langtools repository.
1N/A
1N/ANetbeans 6.0 or later is recommended.
1N/A
1N/AThe "langtools" project in this directory allows you to
1N/Aedit, run, test and debug the tools in the OpenJDK langtools
1N/Arepository.
1N/A
1N/AThe repository contains a number of tools:
1N/A apt, javac, javadoc and its doclets, javah and javap.
1N/A
1N/ABuild Properties.
1N/A
1N/ATo build this repository, you must set some properties for Ant.
1N/AYou can set these properties in a number of ways:
1N/A
1N/A- Set the properties in the Properties panel under Tool> Options> Ant.
1N/A Properties set this way will apply globally to all the langtools
1N/A repositories you may be working on.
1N/A
1N/A- Create a file build.properties in the root directory of a
1N/A langtools repository, and set the properties in that file.
1N/A These properties will be specific to that repository.
1N/A
1N/ATo build the repository, at a minimum you must set the "boot.java.home"
1N/Aproperty. To run the tools, you must also set "target.java.home". To
1N/Arun the regression tests, you must set "jtreg.home".
1N/A
1N/ABy default, the build and test targets will build and test all
1N/Aof these tools. The run and debug targets will prompt you for the
1N/Aname of a tool to execute.
1N/A
1N/AAs an alternative, you can focus on a single tool. When you do
1N/Athis, you will still see all the source code for all the tools,
1N/Abut the various Ant targets will now be focussed on the selected tool.
1N/ATo focus on a tool, bring up the context menu on the "langtools"
1N/Aproject (i.e. right-click on the project) and select "Select Tool".
1N/AThis brings up a dialog which allows you to specify which tool you
1N/Awish to work on, and the arguments to use if and when you run it.
1N/A