Fri, 23 Jan 2009 11:23:10 -0800
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
Reviewed-by: mcimadamore
1.1 --- a/make/README Thu Jan 22 15:45:44 2009 -0800 1.2 +++ b/make/README Fri Jan 23 11:23:10 2009 -0800 1.3 @@ -15,7 +15,7 @@ 1.4 1.5 System Requirements: 1.6 Ant: version 1.6.5 or later 1.7 - NetBeans: version 5.0 or later (optional) 1.8 + NetBeans: version 6.0 or later (optional) 1.9 JDK: currently version 1.5.0, although 1.6.0 is recommended 1.10 OS: any system supporting the above tools 1.11
2.1 --- a/make/build.xml Thu Jan 22 15:45:44 2009 -0800 2.2 +++ b/make/build.xml Fri Jan 23 11:23:10 2009 -0800 2.3 @@ -660,7 +660,7 @@ 2.4 <!-- the next two properties are for convenience, when only 2.5 a single instance of jtreg will be invoked. --> 2.6 <condition property="jtreg.passed"> 2.7 - <equals arg1="${jtreg.javac.result}" arg2="0"/> 2.8 + <equals arg1="${jtreg.@{name}.result}" arg2="0"/> 2.9 </condition> 2.10 <property name="jtreg.report" value="${build.jtreg.dir}/@{name}/report"/> 2.11 </sequential>
3.1 --- a/make/netbeans/README Thu Jan 22 15:45:44 2009 -0800 3.2 +++ b/make/netbeans/README Fri Jan 23 11:23:10 2009 -0800 3.3 @@ -1,28 +1,39 @@ 3.4 -Working on the "langtools" workspace using NetBeans. 3.5 +Using NetBeans to work on the langtools repository. 3.6 3.7 -This directory (make/netbeans) contains NetBeans projects that 3.8 -allow you to work on the various tools using the NetBeans IDE. 3.9 +Netbeans 6.0 or later is recommended. 3.10 3.11 -NetBeans 5.0 or later is required and sufficient to use these 3.12 -projects. This is different from other projects in OpenJDK, 3.13 -which requires version 6.0 or later. 3.14 +The "langtools" project in this directory allows you to 3.15 +edit, run, test and debug the tools in the OpenJDK langtools 3.16 +repository. 3.17 3.18 -The following projects are provided: 3.19 +The repository contains a number of tools: 3.20 + apt, javac, javadoc and its doclets, javah and javap. 3.21 3.22 -compiler: for working on the compiler, javac 3.23 -javadoc: for working on the documentation tool, javadoc 3.24 -doclets: for working on the standard doclets used by the 3.25 - documentation tool, javadoc 3.26 -javah: for working on the C header tool, javah 3.27 -javap: for working on the disassembler, javap 3.28 -apt: for working on the annotation processing tool, apt. 3.29 - Note that this is just provided for completeness; 3.30 - the tool has been superceded by new features in javac, 3.31 - and work on apt itself is discouraged. 3.32 +Build Properties. 3.33 3.34 -However, any tool can be worked on from any project; the only difference 3.35 -between these projects is the behavior of the standard NetBeans actions, 3.36 -so that "Build" in the compiler project will build the compiler, etc. 3.37 +To build this repository, you must set some properties for Ant. 3.38 +You can set these properties in a number of ways: 3.39 3.40 +- Set the properties in the Properties panel under Tool> Options> Ant. 3.41 + Properties set this way will apply globally to all the langtools 3.42 + repositories you may be working on. 3.43 3.44 +- Create a file build.properties in the root directory of a 3.45 + langtools repository, and set the properties in that file. 3.46 + These properties will be specific to that repository. 3.47 3.48 +To build the repository, at a minimum you must set the "boot.java.home" 3.49 +property. To run the tools, you must also set "target.java.home". To 3.50 +run the regression tests, you must set "jtreg.home". 3.51 + 3.52 +By default, the build and test targets will build and test all 3.53 +of these tools. The run and debug targets will prompt you for the 3.54 +name of a tool to execute. 3.55 + 3.56 +As an alternative, you can focus on a single tool. When you do 3.57 +this, you will still see all the source code for all the tools, 3.58 +but the various Ant targets will now be focussed on the selected tool. 3.59 +To focus on a tool, bring up the context menu on the "langtools" 3.60 +project (i.e. right-click on the project) and select "Select Tool". 3.61 +This brings up a dialog which allows you to specify which tool you 3.62 +wish to work on, and the arguments to use if and when you run it.
4.1 --- a/make/netbeans/apt/README Thu Jan 22 15:45:44 2009 -0800 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,15 +0,0 @@ 4.4 -"apt" project README. 4.5 - 4.6 -This project is for working on the annotation processing tool (apt) 4.7 -in the OpenJDK langtools component. 4.8 - 4.9 -The tool was provided in Java 1.5, but has been superceded by new 4.10 -features in the compiler (javac) in Java 6. apt itself is now 4.11 -deprecated, and any further devlopment on it is strongly discouraged. 4.12 - 4.13 -The main class for the tool is com.sun.tools.apt.Main. 4.14 - 4.15 -NetBeans 5.0 or later is required and sufficient to use this 4.16 -project, and others in the OpenJDK langtools component. 4.17 -This is different from other projects in OpenJDK, which 4.18 -require version 6.0 or later.
5.1 --- a/make/netbeans/apt/build.xml Thu Jan 22 15:45:44 2009 -0800 5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 5.3 @@ -1,62 +0,0 @@ 5.4 -<?xml version="1.0" encoding="UTF-8"?> 5.5 -<!-- 5.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 5.7 - 5.8 - Redistribution and use in source and binary forms, with or without 5.9 - modification, are permitted provided that the following conditions 5.10 - are met: 5.11 - 5.12 - - Redistributions of source code must retain the above copyright 5.13 - notice, this list of conditions and the following disclaimer. 5.14 - 5.15 - - Redistributions in binary form must reproduce the above copyright 5.16 - notice, this list of conditions and the following disclaimer in the 5.17 - documentation and/or other materials provided with the distribution. 5.18 - 5.19 - - Neither the name of Sun Microsystems nor the names of its 5.20 - contributors may be used to endorse or promote products derived 5.21 - from this software without specific prior written permission. 5.22 - 5.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 5.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 5.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 5.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 5.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 5.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 5.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 5.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 5.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 5.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 5.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 5.34 ---> 5.35 - 5.36 -<!-- 5.37 - Build file for the annotation processing tool, apt. 5.38 - - The basic functionality of the build is imported from make/build.xml. 5.39 - - Additional support for NetBeans actions is imported from 5.40 - make/netbeans/common/shared.xml. 5.41 - - This file gives the final customizations. 5.42 - This tool is now deprecated, and any further development is strongly 5.43 - discouraged. 5.44 ---> 5.45 - 5.46 -<project name="apt" default="build" basedir="../../.."> 5.47 - <property name="tool.name" value="apt"/> 5.48 - 5.49 - <import file="../common/shared.xml"/> 5.50 - 5.51 - <!-- 5.52 - Alias the following imported targets, giving descriptions as appropriate. 5.53 - NetBeans will emphasize targets with descriptions in the Ant Targets list, 5.54 - and will display the targets in the context menu (under Run Target) for 5.55 - this file in the Projects viewer. 5.56 - --> 5.57 - 5.58 - <target name="build" depends="build-apt" description="Build the annotation processing tool, apt."/> 5.59 - 5.60 - <target name="debug" depends="-debug-nb" description="Debug the annotation processing tool, apt."/> 5.61 - 5.62 - <target name="-jtreg" depends="jtreg-apt"/> 5.63 - <target name="jtreg" depends="-jtreg-nb" description="Run the jtreg tests for the annotation processing tool, apt."/> 5.64 - 5.65 -</project>
6.1 --- a/make/netbeans/apt/nbproject/project.xml Thu Jan 22 15:45:44 2009 -0800 6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 6.3 @@ -1,108 +0,0 @@ 6.4 -<?xml version="1.0" encoding="UTF-8"?> 6.5 -<!-- 6.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 6.7 - 6.8 - Redistribution and use in source and binary forms, with or without 6.9 - modification, are permitted provided that the following conditions 6.10 - are met: 6.11 - 6.12 - - Redistributions of source code must retain the above copyright 6.13 - notice, this list of conditions and the following disclaimer. 6.14 - 6.15 - - Redistributions in binary form must reproduce the above copyright 6.16 - notice, this list of conditions and the following disclaimer in the 6.17 - documentation and/or other materials provided with the distribution. 6.18 - 6.19 - - Neither the name of Sun Microsystems nor the names of its 6.20 - contributors may be used to endorse or promote products derived 6.21 - from this software without specific prior written permission. 6.22 - 6.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 6.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 6.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 6.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 6.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 6.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 6.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 6.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 6.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 6.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 6.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 6.34 ---> 6.35 - 6.36 -<!DOCTYPE project [ 6.37 - <!ENTITY standard-ide-actions-no-javadoc SYSTEM "../../common/standard-ide-actions-no-javadoc.ent"> 6.38 - <!ENTITY standard-context-menu-items-no-javadoc SYSTEM "../../common/standard-context-menu-items-no-javadoc.ent"> 6.39 -]> 6.40 -<project xmlns="http://www.netbeans.org/ns/project/1"> 6.41 - <type>org.netbeans.modules.ant.freeform</type> 6.42 - <configuration> 6.43 - <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 6.44 - <!-- Do not use Project Properties customizer when editing this file manually. --> 6.45 - <name>apt</name> 6.46 - <properties> 6.47 - <property name="root">../../..</property> 6.48 - </properties> 6.49 - <folders> 6.50 - <source-folder> 6.51 - <label>langtools</label> 6.52 - <location>${root}</location> 6.53 - </source-folder> 6.54 - <source-folder> 6.55 - <label>Source files</label> 6.56 - <type>java</type> 6.57 - <location>${root}/src/share/classes</location> 6.58 - </source-folder> 6.59 - <source-folder> 6.60 - <label>Test files</label> 6.61 - <type>tests</type> 6.62 - <location>${root}/test</location> 6.63 - </source-folder> 6.64 - <source-folder> 6.65 - <label>Build files</label> 6.66 - <type>build</type> 6.67 - <location>${root}/make</location> 6.68 - </source-folder> 6.69 - </folders> 6.70 - <ide-actions> 6.71 - &standard-ide-actions-no-javadoc; 6.72 - </ide-actions> 6.73 - <export> 6.74 - <type>folder</type> 6.75 - <location>${root}/build/classes</location> 6.76 - <build-target>build</build-target> 6.77 - </export> 6.78 - <view> 6.79 - <items> 6.80 - <source-folder style="tree"> 6.81 - <label>Source files</label> 6.82 - <location>${root}/src/share/classes</location> 6.83 - </source-folder> 6.84 - <source-folder style="tree"> 6.85 - <label>Test files</label> 6.86 - <location>${root}/test</location> 6.87 - </source-folder> 6.88 - <source-folder style="tree"> 6.89 - <label>Build files</label> 6.90 - <location>${root}/make</location> 6.91 - </source-folder> 6.92 - <source-file> 6.93 - <label>README</label> 6.94 - <location>README</location> 6.95 - </source-file> 6.96 - </items> 6.97 - <context-menu> 6.98 - &standard-context-menu-items-no-javadoc; 6.99 - </context-menu> 6.100 - </view> 6.101 - <subprojects/> 6.102 - </general-data> 6.103 - <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> 6.104 - <compilation-unit> 6.105 - <package-root>${root}/src/share/classes</package-root> 6.106 - <built-to>${root}/build/classes</built-to> 6.107 - <source-level>1.5</source-level> <!-- FIXME --> 6.108 - </compilation-unit> 6.109 - </java-data> 6.110 - </configuration> 6.111 -</project>
7.1 --- a/make/netbeans/common/shared.xml Thu Jan 22 15:45:44 2009 -0800 7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 7.3 @@ -1,186 +0,0 @@ 7.4 -<?xml version="1.0" encoding="UTF-8"?> 7.5 -<!-- 7.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 7.7 - 7.8 - Redistribution and use in source and binary forms, with or without 7.9 - modification, are permitted provided that the following conditions 7.10 - are met: 7.11 - 7.12 - - Redistributions of source code must retain the above copyright 7.13 - notice, this list of conditions and the following disclaimer. 7.14 - 7.15 - - Redistributions in binary form must reproduce the above copyright 7.16 - notice, this list of conditions and the following disclaimer in the 7.17 - documentation and/or other materials provided with the distribution. 7.18 - 7.19 - - Neither the name of Sun Microsystems nor the names of its 7.20 - contributors may be used to endorse or promote products derived 7.21 - from this software without specific prior written permission. 7.22 - 7.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 7.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 7.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 7.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 7.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 7.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 7.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 7.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 7.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 7.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 7.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 7.34 ---> 7.35 - 7.36 -<!-- 7.37 - The file contains targets for NetBeans action that are shared across 7.38 - all langtools projects. 7.39 ---> 7.40 - 7.41 -<project name="shared" default="build" basedir="../../.."> 7.42 - <!-- 7.43 - Instead of importing the main build file, we could call it when needed. 7.44 - That would reduce the list of Ant targets that get displayed for this 7.45 - file, but it also complicates the interface between the project build 7.46 - file and the main build file. For example, some imported targets 7.47 - would have to be reclared, properties would have to be restructured, 7.48 - and it would be harder to run results (e.g. in properties) from nested 7.49 - targets. 7.50 - --> 7.51 - <import file="../../build.xml"/> 7.52 - 7.53 - <property name="tool.mainclass" value="com.sun.tools.${tool.name}.Main"/> 7.54 - <property name="tool.default.args" value="-version"/> 7.55 - 7.56 - <!-- compile a single file --> 7.57 - 7.58 - <!-- for compile-single, etc, we might want different targets for 7.59 - javac and not javac, because of bootstrap issues --> 7.60 - <target name="compile-single" depends="build-bootstrap-javac"> 7.61 - <fail unless="includes">Must set property 'includes'</fail> 7.62 - <javac fork="true" executable="${build.bootstrap.dir}/bin/javac" 7.63 - srcdir="${src.classes.dir}" 7.64 - destdir="${build.classes.dir}" 7.65 - includes="${includes}" 7.66 - sourcepath="" 7.67 - includeAntRuntime="no" 7.68 - target="${target}" 7.69 - debug="${javac.debug}" 7.70 - debuglevel="${javac.debuglevel}"/> 7.71 - </target> 7.72 - 7.73 - <!-- run tool --> 7.74 - 7.75 - <target name="run" depends="build,-def-run" description="run ${tool.description}"> 7.76 - <run/> 7.77 - </target> 7.78 - 7.79 - <!-- run a selected class --> 7.80 - 7.81 - <target name="run-single" depends="-def-run"> 7.82 - <fail unless="run.classname">Must set property 'run.classname'</fail> 7.83 - <run name="${run.classname}" mainclass="${run.classname}" default.args=""/> 7.84 - </target> 7.85 - 7.86 - <!-- run jtreg tests, and display results in NetBeans --> 7.87 - 7.88 - <target name="-jtreg-nb" depends="-jtreg" if="netbeans.home" unless="jtreg.passed"> 7.89 - <nbbrowse file="${jtreg.report}/report.html"/> 7.90 - <fail>Some tests failed; see report for details.</fail> 7.91 - </target> 7.92 - 7.93 - <!-- debug tool in NetBeans --> 7.94 - 7.95 - <target name="-debug-nb" depends="build,-def-run,-def-start-debugger" if="netbeans.home"> 7.96 - <start-debugger/> 7.97 - <run jpda.jvmargs="${jpda.jvmargs}"/> 7.98 - </target> 7.99 - 7.100 - <!-- debug a selected class --> 7.101 - 7.102 - <target name="debug-single-nb" depends="-def-start-debugger,-def-run"> 7.103 - <fail unless="debug.classname">Must set property 'debug.classname'</fail> 7.104 - <start-debugger/> 7.105 - <run name="${debug.classname}" mainclass="${debug.classname}" default.args="" 7.106 - jpda.jvmargs="${jpda.jvmargs}"/> 7.107 - </target> 7.108 - 7.109 - <!-- debug a jtreg test --> 7.110 - 7.111 - <target name="debug-jtreg-nb" depends="-def-start-debugger,-def-jtreg"> 7.112 - <fail unless="jtreg.tests">Must set property 'jtreg.tests'</fail> 7.113 - <start-debugger/> 7.114 - <jtreg-tool name="${tool.name}" samevm="false" tests="${jtreg.tests}" 7.115 - jpda.jvmargs="${jpda.jvmargs}"/> 7.116 - </target> 7.117 - 7.118 - <!-- update a class being debugged --> 7.119 - 7.120 - <target name="debug-fix"> 7.121 - <fail unless="class">Must set property 'class'</fail> 7.122 - <antcall target="compile-single"> 7.123 - <param name="includes" value="${class}.java"/> 7.124 - </antcall> 7.125 - <nbjpdareload> 7.126 - <fileset dir="${build.classes.dir}"> 7.127 - <include name="${class}.class"/> 7.128 - </fileset> 7.129 - </nbjpdareload> 7.130 - </target> 7.131 - 7.132 - 7.133 - <!-- create javadoc documentation --> 7.134 - 7.135 - <target name="-javadoc-nb" depends="-javadoc" if="netbeans.home"> 7.136 - <nbbrowse file="${build.javadoc.dir}/${tool.name}/index.html"/> 7.137 - </target> 7.138 - 7.139 - <!-- default target for those projects that don't have public API docs; 7.140 - override as needed for projects with public API docs.--> 7.141 - <target name="-javadoc"/> 7.142 - 7.143 - <!-- macro to run a tool or selected class - used by run* and debug* tasks --> 7.144 - 7.145 - <target name="-def-run"> 7.146 - <macrodef name="run"> 7.147 - <attribute name="name" default="${tool.name}"/> 7.148 - <attribute name="mainclass" default="${tool.mainclass}"/> 7.149 - <attribute name="default.args" default="${tool.default.args}"/> 7.150 - <attribute name="jpda.jvmargs" default=""/> 7.151 - <sequential> 7.152 - <input addproperty="run.args" message="Run @{name} with options" defaultvalue="@{default.args}"/> 7.153 - <java fork="true" jvm="${target.java}" classname="@{mainclass}"> 7.154 - <bootclasspath> 7.155 - <pathelement location="${build.classes.dir}"/> 7.156 - <pathelement location="${target.java.home}/jre/lib/rt.jar"/> 7.157 - </bootclasspath> 7.158 - <jvmarg line="@{jpda.jvmargs}"/> 7.159 - <arg line="${run.args}"/> 7.160 - </java> 7.161 - </sequential> 7.162 - </macrodef> 7.163 - </target> 7.164 - 7.165 - <!-- macro to start the debugger and set a property containg the args needed by the run task --> 7.166 - 7.167 - <target name="-def-start-debugger" if="netbeans.home"> 7.168 - <macrodef name="start-debugger"> 7.169 - <attribute name="jpda.jvmargs.property" default="jpda.jvmargs"/> 7.170 - <sequential> 7.171 - <nbjpdastart name="${ant.project.name}" addressproperty="jpda.address" transport="dt_socket"> 7.172 - <bootclasspath> 7.173 - <pathelement location="${build.classes.dir}"/> 7.174 - <pathelement location="${target.java.home}/jre/lib/rt.jar"/> 7.175 - </bootclasspath> 7.176 - <sourcepath> 7.177 - <pathelement location="${src.classes.dir}"/> 7.178 - </sourcepath> 7.179 - </nbjpdastart> 7.180 - <property 7.181 - name="@{jpda.jvmargs.property}" 7.182 - value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}" 7.183 - /> 7.184 - </sequential> 7.185 - </macrodef> 7.186 - </target> 7.187 - 7.188 - 7.189 -</project>
8.1 --- a/make/netbeans/common/standard-context-menu-items-no-javadoc.ent Thu Jan 22 15:45:44 2009 -0800 8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 8.3 @@ -1,56 +0,0 @@ 8.4 -<?xml version="1.0" encoding="UTF-8"?> 8.5 -<!-- 8.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 8.7 - 8.8 - Redistribution and use in source and binary forms, with or without 8.9 - modification, are permitted provided that the following conditions 8.10 - are met: 8.11 - 8.12 - - Redistributions of source code must retain the above copyright 8.13 - notice, this list of conditions and the following disclaimer. 8.14 - 8.15 - - Redistributions in binary form must reproduce the above copyright 8.16 - notice, this list of conditions and the following disclaimer in the 8.17 - documentation and/or other materials provided with the distribution. 8.18 - 8.19 - - Neither the name of Sun Microsystems nor the names of its 8.20 - contributors may be used to endorse or promote products derived 8.21 - from this software without specific prior written permission. 8.22 - 8.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 8.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 8.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 8.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 8.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 8.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 8.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 8.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 8.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 8.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 8.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 8.34 ---> 8.35 - 8.36 -<!-- 8.37 - This file defines the actions that will appear on the project's context 8.38 - menu, in the Projects viewer. 8.39 - It is normally included as an entity into a project's project.xml file. 8.40 - 8.41 - For information on these actions, see 8.42 - - NetBeans: Setting Up Projects 8.43 - at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 8.44 - - NetBeans: Advanced Freeform Project Configuration 8.45 - at http://www.netbeans.org/kb/41/freeform-config.html 8.46 ---> 8.47 - 8.48 -<ide-action name="build"/> 8.49 -<ide-action name="rebuild"/> 8.50 -<ide-action name="clean"/> 8.51 - 8.52 -<separator/> 8.53 - 8.54 -<ide-action name="run"/> 8.55 -<ide-action name="debug"/> 8.56 - 8.57 -<separator/> 8.58 - 8.59 -<ide-action name="test"/>
9.1 --- a/make/netbeans/common/standard-context-menu-items.ent Thu Jan 22 15:45:44 2009 -0800 9.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 9.3 @@ -1,57 +0,0 @@ 9.4 -<?xml version="1.0" encoding="UTF-8"?> 9.5 -<!-- 9.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 9.7 - 9.8 - Redistribution and use in source and binary forms, with or without 9.9 - modification, are permitted provided that the following conditions 9.10 - are met: 9.11 - 9.12 - - Redistributions of source code must retain the above copyright 9.13 - notice, this list of conditions and the following disclaimer. 9.14 - 9.15 - - Redistributions in binary form must reproduce the above copyright 9.16 - notice, this list of conditions and the following disclaimer in the 9.17 - documentation and/or other materials provided with the distribution. 9.18 - 9.19 - - Neither the name of Sun Microsystems nor the names of its 9.20 - contributors may be used to endorse or promote products derived 9.21 - from this software without specific prior written permission. 9.22 - 9.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 9.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 9.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 9.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 9.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 9.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 9.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 9.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 9.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 9.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 9.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 9.34 ---> 9.35 - 9.36 -<!-- 9.37 - This file defines the actions that will appear on the project's context 9.38 - menu, in the Projects viewer. 9.39 - It is normally included as an entity into a project's project.xml file. 9.40 - 9.41 - For information on these actions, see 9.42 - - NetBeans: Setting Up Projects 9.43 - at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 9.44 - - NetBeans: Advanced Freeform Project Configuration 9.45 - at http://www.netbeans.org/kb/41/freeform-config.html 9.46 ---> 9.47 - 9.48 -<ide-action name="build"/> 9.49 -<ide-action name="rebuild"/> 9.50 -<ide-action name="clean"/> 9.51 -<ide-action name="javadoc"/> 9.52 - 9.53 -<separator/> 9.54 - 9.55 -<ide-action name="run"/> 9.56 -<ide-action name="debug"/> 9.57 - 9.58 -<separator/> 9.59 - 9.60 -<ide-action name="test"/>
10.1 --- a/make/netbeans/common/standard-ide-actions-no-javadoc.ent Thu Jan 22 15:45:44 2009 -0800 10.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 10.3 @@ -1,161 +0,0 @@ 10.4 -<?xml version="1.0" encoding="UTF-8"?> 10.5 -<!-- 10.6 - Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 10.7 - 10.8 - Redistribution and use in source and binary forms, with or without 10.9 - modification, are permitted provided that the following conditions 10.10 - are met: 10.11 - 10.12 - - Redistributions of source code must retain the above copyright 10.13 - notice, this list of conditions and the following disclaimer. 10.14 - 10.15 - - Redistributions in binary form must reproduce the above copyright 10.16 - notice, this list of conditions and the following disclaimer in the 10.17 - documentation and/or other materials provided with the distribution. 10.18 - 10.19 - - Neither the name of Sun Microsystems nor the names of its 10.20 - contributors may be used to endorse or promote products derived 10.21 - from this software without specific prior written permission. 10.22 - 10.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 10.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 10.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 10.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 10.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 10.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 10.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 10.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 10.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 10.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 10.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 10.34 ---> 10.35 - 10.36 -<!-- 10.37 - This file defines the standard actions accepted by langtools projects. 10.38 - It is normally included as an entity into a project's project.xml file. 10.39 - 10.40 - For information on these actions, see 10.41 - - NetBeans: Setting Up Projects 10.42 - at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 10.43 - - NetBeans: Advanced Freeform Project Configuration 10.44 - at http://www.netbeans.org/kb/41/freeform-config.html 10.45 ---> 10.46 - 10.47 -<action name="build"> 10.48 - <target>build</target> 10.49 -</action> 10.50 - 10.51 -<action name="clean"> 10.52 - <target>clean</target> 10.53 -</action> 10.54 - 10.55 -<action name="rebuild"> 10.56 - <target>clean</target> 10.57 - <target>build</target> 10.58 -</action> 10.59 - 10.60 -<action name="compile.single"> 10.61 - <target>compile-single</target> 10.62 - <property name="srcdir">${root}/src/share/classes</property> 10.63 - <context> 10.64 - <property>includes</property> 10.65 - <folder>${root}/src/share/classes</folder> 10.66 - <pattern>\.java$</pattern> 10.67 - <format>relative-path</format> 10.68 - <arity> 10.69 - <separated-files>,</separated-files> 10.70 - </arity> 10.71 - </context> 10.72 -</action> 10.73 - 10.74 -<action name="run"> 10.75 - <target>run</target> 10.76 -</action> 10.77 - 10.78 -<action name="run.single"> 10.79 - <target>run-single</target> 10.80 - <context> 10.81 - <property>run.classname</property> 10.82 - <folder>${root}/src/share/classes</folder> 10.83 - <pattern>\.java$</pattern> 10.84 - <format>java-name</format> 10.85 - <arity> 10.86 - <one-file-only/> 10.87 - </arity> 10.88 - </context> 10.89 -</action> 10.90 - 10.91 -<!-- 10.92 - Note: NetBeans does not appear to support context menu items 10.93 - on shell scripts :-( 10.94 ---> 10.95 - 10.96 -<action name="run.single"> 10.97 - <target>jtreg</target> 10.98 - <context> 10.99 - <property>jtreg.tests</property> 10.100 - <folder>${root}/test</folder> 10.101 - <pattern>\.(java|sh)$</pattern> 10.102 - <format>relative-path</format> 10.103 - <arity> 10.104 - <separated-files>,</separated-files> 10.105 - </arity> 10.106 - </context> 10.107 -</action> 10.108 - 10.109 -<action name="test"> 10.110 - <target>jtreg</target> 10.111 -</action> 10.112 - 10.113 -<action name="debug"> 10.114 - <target>debug-nb</target> 10.115 -</action> 10.116 - 10.117 -<action name="debug.single"> 10.118 - <target>debug-single-nb</target> 10.119 - <context> 10.120 - <property>debug.classname</property> 10.121 - <folder>${root}/src/share/classes</folder> 10.122 - <pattern>\.java$</pattern> 10.123 - <format>java-name</format> 10.124 - <arity> 10.125 - <one-file-only/> 10.126 - </arity> 10.127 - </context> 10.128 -</action> 10.129 - 10.130 -<!-- 10.131 - Note: NetBeans does not appear to support context menu items 10.132 - on shell scripts :-( 10.133 ---> 10.134 - 10.135 -<action name="debug.single"> 10.136 - <target>debug-jtreg-nb</target> 10.137 - <context> 10.138 - <property>jtreg.tests</property> 10.139 - <folder>${root}/test</folder> 10.140 - <pattern>\.(java|sh)$</pattern> 10.141 - <format>relative-path</format> 10.142 - <arity> 10.143 - <one-file-only/> 10.144 - </arity> 10.145 - </context> 10.146 -</action> 10.147 - 10.148 -<action name="debug.fix"> 10.149 - <target>debug-fix</target> 10.150 - <property name="srcdir">${root}/src/share/classes</property> 10.151 - <context> 10.152 - <property>class</property> 10.153 - <folder>${root}/src/share/classes</folder> 10.154 - <pattern>\.java$</pattern> 10.155 - <format>relative-path-noext</format> 10.156 - <arity> 10.157 - <one-file-only/> 10.158 - </arity> 10.159 - </context> 10.160 -</action> 10.161 - 10.162 -<action name="javadoc"> 10.163 - <target>-javadoc-nb</target> 10.164 -</action>
11.1 --- a/make/netbeans/common/standard-ide-actions.ent Thu Jan 22 15:45:44 2009 -0800 11.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 11.3 @@ -1,161 +0,0 @@ 11.4 -<?xml version="1.0" encoding="UTF-8"?> 11.5 -<!-- 11.6 - Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 11.7 - 11.8 - Redistribution and use in source and binary forms, with or without 11.9 - modification, are permitted provided that the following conditions 11.10 - are met: 11.11 - 11.12 - - Redistributions of source code must retain the above copyright 11.13 - notice, this list of conditions and the following disclaimer. 11.14 - 11.15 - - Redistributions in binary form must reproduce the above copyright 11.16 - notice, this list of conditions and the following disclaimer in the 11.17 - documentation and/or other materials provided with the distribution. 11.18 - 11.19 - - Neither the name of Sun Microsystems nor the names of its 11.20 - contributors may be used to endorse or promote products derived 11.21 - from this software without specific prior written permission. 11.22 - 11.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 11.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 11.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 11.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 11.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 11.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 11.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 11.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 11.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 11.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 11.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 11.34 ---> 11.35 - 11.36 -<!-- 11.37 - This file defines the standard actions accepted by langtools projects. 11.38 - It is normally included as an entity into a project's project.xml file. 11.39 - 11.40 - For information on these actions, see 11.41 - - NetBeans: Setting Up Projects 11.42 - at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 11.43 - - NetBeans: Advanced Freeform Project Configuration 11.44 - at http://www.netbeans.org/kb/41/freeform-config.html 11.45 ---> 11.46 - 11.47 -<action name="build"> 11.48 - <target>build</target> 11.49 -</action> 11.50 - 11.51 -<action name="clean"> 11.52 - <target>clean</target> 11.53 -</action> 11.54 - 11.55 -<action name="rebuild"> 11.56 - <target>clean</target> 11.57 - <target>build</target> 11.58 -</action> 11.59 - 11.60 -<action name="compile.single"> 11.61 - <target>compile-single</target> 11.62 - <property name="srcdir">${root}/src/share/classes</property> 11.63 - <context> 11.64 - <property>includes</property> 11.65 - <folder>${root}/src/share/classes</folder> 11.66 - <pattern>\.java$</pattern> 11.67 - <format>relative-path</format> 11.68 - <arity> 11.69 - <separated-files>,</separated-files> 11.70 - </arity> 11.71 - </context> 11.72 -</action> 11.73 - 11.74 -<action name="run"> 11.75 - <target>run</target> 11.76 -</action> 11.77 - 11.78 -<action name="run.single"> 11.79 - <target>run-single</target> 11.80 - <context> 11.81 - <property>run.classname</property> 11.82 - <folder>${root}/src/share/classes</folder> 11.83 - <pattern>\.java$</pattern> 11.84 - <format>java-name</format> 11.85 - <arity> 11.86 - <one-file-only/> 11.87 - </arity> 11.88 - </context> 11.89 -</action> 11.90 - 11.91 -<!-- 11.92 - Note: NetBeans does not appear to support context menu items 11.93 - on shell scripts :-( 11.94 ---> 11.95 - 11.96 -<action name="run.single"> 11.97 - <target>jtreg</target> 11.98 - <context> 11.99 - <property>jtreg.tests</property> 11.100 - <folder>${root}/test</folder> 11.101 - <pattern>\.(java|sh)$</pattern> 11.102 - <format>relative-path</format> 11.103 - <arity> 11.104 - <separated-files>,</separated-files> 11.105 - </arity> 11.106 - </context> 11.107 -</action> 11.108 - 11.109 -<action name="test"> 11.110 - <target>jtreg</target> 11.111 -</action> 11.112 - 11.113 -<action name="debug"> 11.114 - <target>debug-nb</target> 11.115 -</action> 11.116 - 11.117 -<action name="debug.single"> 11.118 - <target>debug-single-nb</target> 11.119 - <context> 11.120 - <property>debug.classname</property> 11.121 - <folder>${root}/src/share/classes</folder> 11.122 - <pattern>\.java$</pattern> 11.123 - <format>java-name</format> 11.124 - <arity> 11.125 - <one-file-only/> 11.126 - </arity> 11.127 - </context> 11.128 -</action> 11.129 - 11.130 -<!-- 11.131 - Note: NetBeans does not appear to support context menu items 11.132 - on shell scripts :-( 11.133 ---> 11.134 - 11.135 -<action name="debug.single"> 11.136 - <target>debug-jtreg-nb</target> 11.137 - <context> 11.138 - <property>jtreg.tests</property> 11.139 - <folder>${root}/test</folder> 11.140 - <pattern>\.(java|sh)$</pattern> 11.141 - <format>relative-path</format> 11.142 - <arity> 11.143 - <one-file-only/> 11.144 - </arity> 11.145 - </context> 11.146 -</action> 11.147 - 11.148 -<action name="debug.fix"> 11.149 - <target>debug-fix</target> 11.150 - <property name="srcdir">${root}/src/share/classes</property> 11.151 - <context> 11.152 - <property>class</property> 11.153 - <folder>${root}/src/share/classes</folder> 11.154 - <pattern>\.java$</pattern> 11.155 - <format>relative-path-noext</format> 11.156 - <arity> 11.157 - <one-file-only/> 11.158 - </arity> 11.159 - </context> 11.160 -</action> 11.161 - 11.162 -<action name="javadoc"> 11.163 - <target>-javadoc-nb</target> 11.164 -</action>
12.1 --- a/make/netbeans/compiler/README Thu Jan 22 15:45:44 2009 -0800 12.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 12.3 @@ -1,11 +0,0 @@ 12.4 -"compiler" project README. 12.5 - 12.6 -This project is for working on the compiler tool (javac) 12.7 -in the OpenJDK langtools component. 12.8 - 12.9 -The main class for the tool is com.sun.tools.javac.Main. 12.10 - 12.11 -NetBeans 5.0 or later is required and sufficient to use this 12.12 -project, and others in the OpenJDK langtools component. 12.13 -This is different from other projects in OpenJDK, which 12.14 -require version 6.0 or later.
13.1 --- a/make/netbeans/compiler/build.xml Thu Jan 22 15:45:44 2009 -0800 13.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 13.3 @@ -1,63 +0,0 @@ 13.4 -<?xml version="1.0" encoding="UTF-8"?> 13.5 -<!-- 13.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 13.7 - 13.8 - Redistribution and use in source and binary forms, with or without 13.9 - modification, are permitted provided that the following conditions 13.10 - are met: 13.11 - 13.12 - - Redistributions of source code must retain the above copyright 13.13 - notice, this list of conditions and the following disclaimer. 13.14 - 13.15 - - Redistributions in binary form must reproduce the above copyright 13.16 - notice, this list of conditions and the following disclaimer in the 13.17 - documentation and/or other materials provided with the distribution. 13.18 - 13.19 - - Neither the name of Sun Microsystems nor the names of its 13.20 - contributors may be used to endorse or promote products derived 13.21 - from this software without specific prior written permission. 13.22 - 13.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 13.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 13.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 13.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 13.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 13.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 13.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 13.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 13.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 13.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 13.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 13.34 ---> 13.35 - 13.36 -<!-- 13.37 - Build file for the compiler. 13.38 - - The basic functionality of the build is imported from make/build.xml. 13.39 - - Additional support for NetBeans actions is imported from 13.40 - make/netbeans/common/shared.xml. 13.41 - - This file gives the final customizations. 13.42 ---> 13.43 - 13.44 -<project name="compiler" default="build" basedir="../../.."> 13.45 - <property name="tool.name" value="javac"/> 13.46 - 13.47 - <import file="../common/shared.xml"/> 13.48 - 13.49 - <!-- 13.50 - Alias the following imported targets, giving descriptions as appropriate. 13.51 - NetBeans will emphasize targets with descriptions in the Ant Targets list, 13.52 - and will display the targets in the context menu (under Run Target) for 13.53 - this file in the Projects viewer. 13.54 - --> 13.55 - 13.56 - <target name="build" depends="build-javac" description="Build the compiler."/> 13.57 - 13.58 - <target name="debug" depends="-debug-nb" description="Debug the compiler."/> 13.59 - 13.60 - <target name="-javadoc" depends="javadoc-javac"/> 13.61 - <target name="javadoc" depends="-javadoc-nb" description="Generate javadoc documentation for the compiler."/> 13.62 - 13.63 - <target name="-jtreg" depends="jtreg-javac"/> 13.64 - <target name="jtreg" depends="-jtreg-nb" description="Run the jtreg tests for the compiler."/> 13.65 - 13.66 -</project>
14.1 --- a/make/netbeans/compiler/nbproject/project.xml Thu Jan 22 15:45:44 2009 -0800 14.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 14.3 @@ -1,108 +0,0 @@ 14.4 -<?xml version="1.0" encoding="UTF-8"?> 14.5 -<!-- 14.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 14.7 - 14.8 - Redistribution and use in source and binary forms, with or without 14.9 - modification, are permitted provided that the following conditions 14.10 - are met: 14.11 - 14.12 - - Redistributions of source code must retain the above copyright 14.13 - notice, this list of conditions and the following disclaimer. 14.14 - 14.15 - - Redistributions in binary form must reproduce the above copyright 14.16 - notice, this list of conditions and the following disclaimer in the 14.17 - documentation and/or other materials provided with the distribution. 14.18 - 14.19 - - Neither the name of Sun Microsystems nor the names of its 14.20 - contributors may be used to endorse or promote products derived 14.21 - from this software without specific prior written permission. 14.22 - 14.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 14.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 14.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 14.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 14.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 14.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 14.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 14.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 14.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 14.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 14.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 14.34 ---> 14.35 - 14.36 -<!DOCTYPE project [ 14.37 - <!ENTITY standard-ide-actions SYSTEM "../../common/standard-ide-actions.ent"> 14.38 - <!ENTITY standard-context-menu-items SYSTEM "../../common/standard-context-menu-items.ent"> 14.39 -]> 14.40 -<project xmlns="http://www.netbeans.org/ns/project/1"> 14.41 - <type>org.netbeans.modules.ant.freeform</type> 14.42 - <configuration> 14.43 - <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 14.44 - <!-- Do not use Project Properties customizer when editing this file manually. --> 14.45 - <name>compiler</name> 14.46 - <properties> 14.47 - <property name="root">../../..</property> 14.48 - </properties> 14.49 - <folders> 14.50 - <source-folder> 14.51 - <label>langtools</label> 14.52 - <location>${root}</location> 14.53 - </source-folder> 14.54 - <source-folder> 14.55 - <label>Source files</label> 14.56 - <type>java</type> 14.57 - <location>${root}/src/share/classes</location> 14.58 - </source-folder> 14.59 - <source-folder> 14.60 - <label>Test files</label> 14.61 - <type>tests</type> 14.62 - <location>${root}/test</location> 14.63 - </source-folder> 14.64 - <source-folder> 14.65 - <label>Build files</label> 14.66 - <type>build</type> 14.67 - <location>${root}/make</location> 14.68 - </source-folder> 14.69 - </folders> 14.70 - <ide-actions> 14.71 - &standard-ide-actions; 14.72 - </ide-actions> 14.73 - <export> 14.74 - <type>folder</type> 14.75 - <location>${root}/build/classes</location> 14.76 - <build-target>build</build-target> 14.77 - </export> 14.78 - <view> 14.79 - <items> 14.80 - <source-folder style="tree"> 14.81 - <label>Source files</label> 14.82 - <location>${root}/src/share/classes</location> 14.83 - </source-folder> 14.84 - <source-folder style="tree"> 14.85 - <label>Test files</label> 14.86 - <location>${root}/test</location> 14.87 - </source-folder> 14.88 - <source-folder style="tree"> 14.89 - <label>Build files</label> 14.90 - <location>${root}/make</location> 14.91 - </source-folder> 14.92 - <source-file> 14.93 - <label>README</label> 14.94 - <location>README</location> 14.95 - </source-file> 14.96 - </items> 14.97 - <context-menu> 14.98 - &standard-context-menu-items; 14.99 - </context-menu> 14.100 - </view> 14.101 - <subprojects/> 14.102 - </general-data> 14.103 - <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> 14.104 - <compilation-unit> 14.105 - <package-root>${root}/src/share/classes</package-root> 14.106 - <built-to>${root}/build/classes</built-to> 14.107 - <source-level>1.5</source-level> <!-- FIXME --> 14.108 - </compilation-unit> 14.109 - </java-data> 14.110 - </configuration> 14.111 -</project>
15.1 --- a/make/netbeans/doclets/README Thu Jan 22 15:45:44 2009 -0800 15.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 15.3 @@ -1,16 +0,0 @@ 15.4 -"doclets" project README. 15.5 - 15.6 -This project is for working on the standard doclets used by 15.7 -the documentation tool (javadoc) in the OpenJDK langtools component. 15.8 - 15.9 -The doclets are invoked as part of the documentation tool (javadoc). 15.10 -Using this project, you can also browse javadoc and any tools in langtools. 15.11 -If you build the doclets, javadoc will be built automatically as well, 15.12 -if necessary. 15.13 - 15.14 -The doclets are found in com.sun.tools.doclets. 15.15 - 15.16 -NetBeans 5.0 or later is required and sufficient to use this 15.17 -project, and others in the OpenJDK langtools component. 15.18 -This is different from other projects in OpenJDK, which 15.19 -require version 6.0 or later.
16.1 --- a/make/netbeans/doclets/build.xml Thu Jan 22 15:45:44 2009 -0800 16.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 16.3 @@ -1,60 +0,0 @@ 16.4 -<?xml version="1.0" encoding="UTF-8"?> 16.5 -<!-- 16.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 16.7 - 16.8 - Redistribution and use in source and binary forms, with or without 16.9 - modification, are permitted provided that the following conditions 16.10 - are met: 16.11 - 16.12 - - Redistributions of source code must retain the above copyright 16.13 - notice, this list of conditions and the following disclaimer. 16.14 - 16.15 - - Redistributions in binary form must reproduce the above copyright 16.16 - notice, this list of conditions and the following disclaimer in the 16.17 - documentation and/or other materials provided with the distribution. 16.18 - 16.19 - - Neither the name of Sun Microsystems nor the names of its 16.20 - contributors may be used to endorse or promote products derived 16.21 - from this software without specific prior written permission. 16.22 - 16.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 16.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 16.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 16.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 16.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 16.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 16.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 16.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 16.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 16.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 16.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 16.34 ---> 16.35 - 16.36 -<!-- 16.37 - Build file for the standard doclets used by documentation tool, javadoc. 16.38 - - The basic functionality of the build is imported from make/build.xml. 16.39 - - Additional support for NetBeans actions is imported from 16.40 - make/netbeans/common/shared.xml. 16.41 - - This file gives the final customizations. 16.42 ---> 16.43 - 16.44 -<project name="doclets" default="build" basedir="../../.."> 16.45 - <property name="tool.name" value="doclets"/> 16.46 - 16.47 - <import file="../common/shared.xml"/> 16.48 - 16.49 - <!-- 16.50 - Alias the following imported targets, giving descriptions as appropriate. 16.51 - NetBeans will emphasize targets with descriptions in the Ant Targets list, 16.52 - and will display the targets in the context menu (under Run Target) for 16.53 - this file in the Projects viewer. 16.54 - --> 16.55 - 16.56 - <target name="build" depends="build-doclets" description="Build the standard doclets for the documentation tool, javadoc."/> 16.57 - 16.58 - <target name="debug" depends="-debug-nb" description="Debug the standard doclets for the documentation tool, javadoc."/> 16.59 - 16.60 - <target name="-jtreg" depends="jtreg-doclets"/> 16.61 - <target name="jtreg" depends="-jtreg-nb" description="Run the jtreg tests for the standard doclets used by the documentation tool, javadoc."/> 16.62 - 16.63 -</project>
17.1 --- a/make/netbeans/doclets/nbproject/project.xml Thu Jan 22 15:45:44 2009 -0800 17.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 17.3 @@ -1,108 +0,0 @@ 17.4 -<?xml version="1.0" encoding="UTF-8"?> 17.5 -<!-- 17.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 17.7 - 17.8 - Redistribution and use in source and binary forms, with or without 17.9 - modification, are permitted provided that the following conditions 17.10 - are met: 17.11 - 17.12 - - Redistributions of source code must retain the above copyright 17.13 - notice, this list of conditions and the following disclaimer. 17.14 - 17.15 - - Redistributions in binary form must reproduce the above copyright 17.16 - notice, this list of conditions and the following disclaimer in the 17.17 - documentation and/or other materials provided with the distribution. 17.18 - 17.19 - - Neither the name of Sun Microsystems nor the names of its 17.20 - contributors may be used to endorse or promote products derived 17.21 - from this software without specific prior written permission. 17.22 - 17.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 17.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 17.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 17.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 17.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 17.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 17.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 17.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 17.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 17.34 ---> 17.35 - 17.36 -<!DOCTYPE project [ 17.37 - <!ENTITY standard-ide-actions-no-javadoc SYSTEM "../../common/standard-ide-actions-no-javadoc.ent"> 17.38 - <!ENTITY standard-context-menu-items-no-javadoc SYSTEM "../../common/standard-context-menu-items-no-javadoc.ent"> 17.39 -]> 17.40 -<project xmlns="http://www.netbeans.org/ns/project/1"> 17.41 - <type>org.netbeans.modules.ant.freeform</type> 17.42 - <configuration> 17.43 - <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 17.44 - <!-- Do not use Project Properties customizer when editing this file manually. --> 17.45 - <name>doclets</name> 17.46 - <properties> 17.47 - <property name="root">../../..</property> 17.48 - </properties> 17.49 - <folders> 17.50 - <source-folder> 17.51 - <label>langtools</label> 17.52 - <location>${root}</location> 17.53 - </source-folder> 17.54 - <source-folder> 17.55 - <label>Source files</label> 17.56 - <type>java</type> 17.57 - <location>${root}/src/share/classes</location> 17.58 - </source-folder> 17.59 - <source-folder> 17.60 - <label>Test files</label> 17.61 - <type>tests</type> 17.62 - <location>${root}/test</location> 17.63 - </source-folder> 17.64 - <source-folder> 17.65 - <label>Build files</label> 17.66 - <type>build</type> 17.67 - <location>${root}/make</location> 17.68 - </source-folder> 17.69 - </folders> 17.70 - <ide-actions> 17.71 - &standard-ide-actions-no-javadoc; 17.72 - </ide-actions> 17.73 - <export> 17.74 - <type>folder</type> 17.75 - <location>${root}/build/classes</location> 17.76 - <build-target>build</build-target> 17.77 - </export> 17.78 - <view> 17.79 - <items> 17.80 - <source-folder style="tree"> 17.81 - <label>Source files</label> 17.82 - <location>${root}/src/share/classes</location> 17.83 - </source-folder> 17.84 - <source-folder style="tree"> 17.85 - <label>Test files</label> 17.86 - <location>${root}/test</location> 17.87 - </source-folder> 17.88 - <source-folder style="tree"> 17.89 - <label>Build files</label> 17.90 - <location>${root}/make</location> 17.91 - </source-folder> 17.92 - <source-file> 17.93 - <label>README</label> 17.94 - <location>README</location> 17.95 - </source-file> 17.96 - </items> 17.97 - <context-menu> 17.98 - &standard-context-menu-items-no-javadoc; 17.99 - </context-menu> 17.100 - </view> 17.101 - <subprojects/> 17.102 - </general-data> 17.103 - <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> 17.104 - <compilation-unit> 17.105 - <package-root>${root}/src/share/classes</package-root> 17.106 - <built-to>${root}/build/classes</built-to> 17.107 - <source-level>1.5</source-level> <!-- FIXME --> 17.108 - </compilation-unit> 17.109 - </java-data> 17.110 - </configuration> 17.111 -</project>
18.1 --- a/make/netbeans/javadoc/README Thu Jan 22 15:45:44 2009 -0800 18.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 18.3 @@ -1,16 +0,0 @@ 18.4 -"javadoc" project README. 18.5 - 18.6 -This project is for working on the documentation tool (javadoc) 18.7 -in the OpenJDK langtools component. 18.8 - 18.9 -javadoc is built on top of the compiler (javac). Using this 18.10 -project, you can also browse javac and any tools in langtools. 18.11 -If you build javadoc, javac will be built automatically as well, 18.12 -if necessary. 18.13 - 18.14 -The main class for the tool is com.sun.tools.javadoc.Main. 18.15 - 18.16 -NetBeans 5.0 or later is required and sufficient to use this 18.17 -project, and others in the OpenJDK langtools component. 18.18 -This is different from other projects in OpenJDK, which 18.19 -require version 6.0 or later.
19.1 --- a/make/netbeans/javadoc/build.xml Thu Jan 22 15:45:44 2009 -0800 19.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 19.3 @@ -1,63 +0,0 @@ 19.4 -<?xml version="1.0" encoding="UTF-8"?> 19.5 -<!-- 19.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 19.7 - 19.8 - Redistribution and use in source and binary forms, with or without 19.9 - modification, are permitted provided that the following conditions 19.10 - are met: 19.11 - 19.12 - - Redistributions of source code must retain the above copyright 19.13 - notice, this list of conditions and the following disclaimer. 19.14 - 19.15 - - Redistributions in binary form must reproduce the above copyright 19.16 - notice, this list of conditions and the following disclaimer in the 19.17 - documentation and/or other materials provided with the distribution. 19.18 - 19.19 - - Neither the name of Sun Microsystems nor the names of its 19.20 - contributors may be used to endorse or promote products derived 19.21 - from this software without specific prior written permission. 19.22 - 19.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 19.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 19.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 19.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 19.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 19.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 19.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 19.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 19.34 ---> 19.35 - 19.36 -<!-- 19.37 - Build file for the documentation tool, javadoc. 19.38 - - The basic functionality of the build is imported from make/build.xml. 19.39 - - Additional support for NetBeans actions is imported from 19.40 - make/netbeans/common/shared.xml. 19.41 - - This file gives the final customizations. 19.42 ---> 19.43 - 19.44 -<project name="javadoc" default="build" basedir="../../.."> 19.45 - <property name="tool.name" value="javadoc"/> 19.46 - 19.47 - <import file="../common/shared.xml"/> 19.48 - 19.49 - <!-- 19.50 - Alias the following imported targets, giving descriptions as appropriate. 19.51 - NetBeans will emphasize targets with descriptions in the Ant Targets list, 19.52 - and will display the targets in the context menu (under Run Target) for 19.53 - this file in the Projects viewer. 19.54 - --> 19.55 - 19.56 - <target name="build" depends="build-javadoc" description="Build the documentation tool, javadoc."/> 19.57 - 19.58 - <target name="debug" depends="-debug-nb" description="Debug the documentation tool, javadoc."/> 19.59 - 19.60 - <target name="-javadoc" depends="javadoc-javadoc"/> 19.61 - <target name="javadoc" depends="-javadoc-nb" description="Generate javadoc documentation for the Doclet API."/> 19.62 - 19.63 - <target name="-jtreg" depends="jtreg-javadoc"/> 19.64 - <target name="jtreg" depends="-jtreg-nb" description="Run the jtreg tests for the documentation tool, javadoc."/> 19.65 - 19.66 -</project>
20.1 --- a/make/netbeans/javadoc/nbproject/project.xml Thu Jan 22 15:45:44 2009 -0800 20.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 20.3 @@ -1,108 +0,0 @@ 20.4 -<?xml version="1.0" encoding="UTF-8"?> 20.5 -<!-- 20.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 20.7 - 20.8 - Redistribution and use in source and binary forms, with or without 20.9 - modification, are permitted provided that the following conditions 20.10 - are met: 20.11 - 20.12 - - Redistributions of source code must retain the above copyright 20.13 - notice, this list of conditions and the following disclaimer. 20.14 - 20.15 - - Redistributions in binary form must reproduce the above copyright 20.16 - notice, this list of conditions and the following disclaimer in the 20.17 - documentation and/or other materials provided with the distribution. 20.18 - 20.19 - - Neither the name of Sun Microsystems nor the names of its 20.20 - contributors may be used to endorse or promote products derived 20.21 - from this software without specific prior written permission. 20.22 - 20.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 20.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 20.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 20.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 20.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 20.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 20.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 20.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 20.34 ---> 20.35 - 20.36 -<!DOCTYPE project [ 20.37 - <!ENTITY standard-ide-actions SYSTEM "../../common/standard-ide-actions.ent"> 20.38 - <!ENTITY standard-context-menu-items SYSTEM "../../common/standard-context-menu-items.ent"> 20.39 -]> 20.40 -<project xmlns="http://www.netbeans.org/ns/project/1"> 20.41 - <type>org.netbeans.modules.ant.freeform</type> 20.42 - <configuration> 20.43 - <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 20.44 - <!-- Do not use Project Properties customizer when editing this file manually. --> 20.45 - <name>javadoc</name> 20.46 - <properties> 20.47 - <property name="root">../../..</property> 20.48 - </properties> 20.49 - <folders> 20.50 - <source-folder> 20.51 - <label>langtools</label> 20.52 - <location>${root}</location> 20.53 - </source-folder> 20.54 - <source-folder> 20.55 - <label>Source files</label> 20.56 - <type>java</type> 20.57 - <location>${root}/src/share/classes</location> 20.58 - </source-folder> 20.59 - <source-folder> 20.60 - <label>Test files</label> 20.61 - <type>tests</type> 20.62 - <location>${root}/test</location> 20.63 - </source-folder> 20.64 - <source-folder> 20.65 - <label>Build files</label> 20.66 - <type>build</type> 20.67 - <location>${root}/make</location> 20.68 - </source-folder> 20.69 - </folders> 20.70 - <ide-actions> 20.71 - &standard-ide-actions; 20.72 - </ide-actions> 20.73 - <export> 20.74 - <type>folder</type> 20.75 - <location>${root}/build/classes</location> 20.76 - <build-target>build</build-target> 20.77 - </export> 20.78 - <view> 20.79 - <items> 20.80 - <source-folder style="tree"> 20.81 - <label>Source files</label> 20.82 - <location>${root}/src/share/classes</location> 20.83 - </source-folder> 20.84 - <source-folder style="tree"> 20.85 - <label>Test files</label> 20.86 - <location>${root}/test</location> 20.87 - </source-folder> 20.88 - <source-folder style="tree"> 20.89 - <label>Build files</label> 20.90 - <location>${root}/make</location> 20.91 - </source-folder> 20.92 - <source-file> 20.93 - <label>README</label> 20.94 - <location>README</location> 20.95 - </source-file> 20.96 - </items> 20.97 - <context-menu> 20.98 - &standard-context-menu-items; 20.99 - </context-menu> 20.100 - </view> 20.101 - <subprojects/> 20.102 - </general-data> 20.103 - <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> 20.104 - <compilation-unit> 20.105 - <package-root>${root}/src/share/classes</package-root> 20.106 - <built-to>${root}/build/classes</built-to> 20.107 - <source-level>1.5</source-level> <!-- FIXME --> 20.108 - </compilation-unit> 20.109 - </java-data> 20.110 - </configuration> 20.111 -</project>
21.1 --- a/make/netbeans/javah/README Thu Jan 22 15:45:44 2009 -0800 21.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 21.3 @@ -1,21 +0,0 @@ 21.4 -"javah" project README. 21.5 - 21.6 -This project is for working on the native header tool (javah) 21.7 -in the OpenJDK langtools component. 21.8 - 21.9 -javah is built on top of the documentation tool (javadoc). Using this 21.10 -project, you can also browse javadoc and any other tools in langtools. 21.11 -If you build javah, javadoc will be built automatically as well, 21.12 -if necessary. 21.13 - 21.14 -javah is in the process of being converted so that it runs directly on 21.15 -top of the compiler, javac, using the annotation processing API, 21.16 -instead of on top of the documentation tool, javadoc, using the 21.17 -Doclet API. 21.18 - 21.19 -The main class for the tool is com.sun.tools.javah.Main. 21.20 - 21.21 -NetBeans 5.0 or later is required and sufficient to use this 21.22 -project, and others in the OpenJDK langtools component. 21.23 -This is different from other projects in OpenJDK, which 21.24 -require version 6.0 or later.
22.1 --- a/make/netbeans/javah/build.xml Thu Jan 22 15:45:44 2009 -0800 22.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 22.3 @@ -1,60 +0,0 @@ 22.4 -<?xml version="1.0" encoding="UTF-8"?> 22.5 -<!-- 22.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 22.7 - 22.8 - Redistribution and use in source and binary forms, with or without 22.9 - modification, are permitted provided that the following conditions 22.10 - are met: 22.11 - 22.12 - - Redistributions of source code must retain the above copyright 22.13 - notice, this list of conditions and the following disclaimer. 22.14 - 22.15 - - Redistributions in binary form must reproduce the above copyright 22.16 - notice, this list of conditions and the following disclaimer in the 22.17 - documentation and/or other materials provided with the distribution. 22.18 - 22.19 - - Neither the name of Sun Microsystems nor the names of its 22.20 - contributors may be used to endorse or promote products derived 22.21 - from this software without specific prior written permission. 22.22 - 22.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 22.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 22.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 22.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 22.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 22.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22.34 ---> 22.35 - 22.36 -<!-- 22.37 - Build file for the native header tool, javah. 22.38 - - The basic functionality of the build is imported from make/build.xml. 22.39 - - Additional support for NetBeans actions is imported from 22.40 - make/netbeans/common/shared.xml. 22.41 - - This file gives the final customizations. 22.42 ---> 22.43 - 22.44 -<project name="javah" default="build" basedir="../../.."> 22.45 - <property name="tool.name" value="javah"/> 22.46 - 22.47 - <import file="../common/shared.xml"/> 22.48 - 22.49 - <!-- 22.50 - Alias the following imported targets, giving descriptions as appropriate. 22.51 - NetBeans will emphasize targets with descriptions in the Ant Targets list, 22.52 - and will display the targets in the context menu (under Run Target) for 22.53 - this file in the Projects viewer. 22.54 - --> 22.55 - 22.56 - <target name="build" depends="build-javah" description="Build the native header tool, javah."/> 22.57 - 22.58 - <target name="debug" depends="-debug-nb" description="Debug the native header tool, javah."/> 22.59 - 22.60 - <target name="-jtreg" depends="jtreg-javah"/> 22.61 - <target name="jtreg" depends="-jtreg-nb" description="Run the jtreg tests for the native header tool, javah."/> 22.62 - 22.63 -</project>
23.1 --- a/make/netbeans/javah/nbproject/project.xml Thu Jan 22 15:45:44 2009 -0800 23.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 23.3 @@ -1,108 +0,0 @@ 23.4 -<?xml version="1.0" encoding="UTF-8"?> 23.5 -<!-- 23.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 23.7 - 23.8 - Redistribution and use in source and binary forms, with or without 23.9 - modification, are permitted provided that the following conditions 23.10 - are met: 23.11 - 23.12 - - Redistributions of source code must retain the above copyright 23.13 - notice, this list of conditions and the following disclaimer. 23.14 - 23.15 - - Redistributions in binary form must reproduce the above copyright 23.16 - notice, this list of conditions and the following disclaimer in the 23.17 - documentation and/or other materials provided with the distribution. 23.18 - 23.19 - - Neither the name of Sun Microsystems nor the names of its 23.20 - contributors may be used to endorse or promote products derived 23.21 - from this software without specific prior written permission. 23.22 - 23.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 23.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 23.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 23.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 23.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 23.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 23.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23.34 ---> 23.35 - 23.36 -<!DOCTYPE project [ 23.37 - <!ENTITY standard-ide-actions-no-javadoc SYSTEM "../../common/standard-ide-actions-no-javadoc.ent"> 23.38 - <!ENTITY standard-context-menu-items-no-javadoc SYSTEM "../../common/standard-context-menu-items-no-javadoc.ent"> 23.39 -]> 23.40 -<project xmlns="http://www.netbeans.org/ns/project/1"> 23.41 - <type>org.netbeans.modules.ant.freeform</type> 23.42 - <configuration> 23.43 - <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 23.44 - <!-- Do not use Project Properties customizer when editing this file manually. --> 23.45 - <name>javah</name> 23.46 - <properties> 23.47 - <property name="root">../../..</property> 23.48 - </properties> 23.49 - <folders> 23.50 - <source-folder> 23.51 - <label>langtools</label> 23.52 - <location>${root}</location> 23.53 - </source-folder> 23.54 - <source-folder> 23.55 - <label>Source files</label> 23.56 - <type>java</type> 23.57 - <location>${root}/src/share/classes</location> 23.58 - </source-folder> 23.59 - <source-folder> 23.60 - <label>Test files</label> 23.61 - <type>tests</type> 23.62 - <location>${root}/test</location> 23.63 - </source-folder> 23.64 - <source-folder> 23.65 - <label>Build files</label> 23.66 - <type>build</type> 23.67 - <location>${root}/make</location> 23.68 - </source-folder> 23.69 - </folders> 23.70 - <ide-actions> 23.71 - &standard-ide-actions-no-javadoc; 23.72 - </ide-actions> 23.73 - <export> 23.74 - <type>folder</type> 23.75 - <location>${root}/build/classes</location> 23.76 - <build-target>build</build-target> 23.77 - </export> 23.78 - <view> 23.79 - <items> 23.80 - <source-folder style="tree"> 23.81 - <label>Source files</label> 23.82 - <location>${root}/src/share/classes</location> 23.83 - </source-folder> 23.84 - <source-folder style="tree"> 23.85 - <label>Test files</label> 23.86 - <location>${root}/test</location> 23.87 - </source-folder> 23.88 - <source-folder style="tree"> 23.89 - <label>Build files</label> 23.90 - <location>${root}/make</location> 23.91 - </source-folder> 23.92 - <source-file> 23.93 - <label>README</label> 23.94 - <location>README</location> 23.95 - </source-file> 23.96 - </items> 23.97 - <context-menu> 23.98 - &standard-context-menu-items-no-javadoc; 23.99 - </context-menu> 23.100 - </view> 23.101 - <subprojects/> 23.102 - </general-data> 23.103 - <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> 23.104 - <compilation-unit> 23.105 - <package-root>${root}/src/share/classes</package-root> 23.106 - <built-to>${root}/build/classes</built-to> 23.107 - <source-level>1.5</source-level> <!-- FIXME --> 23.108 - </compilation-unit> 23.109 - </java-data> 23.110 - </configuration> 23.111 -</project>
24.1 --- a/make/netbeans/javap/README Thu Jan 22 15:45:44 2009 -0800 24.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 24.3 @@ -1,11 +0,0 @@ 24.4 -"javap" project README. 24.5 - 24.6 -This project is for working on the disassembler tool (javap) 24.7 -in the OpenJDK langtools component. 24.8 - 24.9 -The main class for the tool is sun.tools.javap.Main. 24.10 - 24.11 -NetBeans 5.0 or later is required and sufficient to use this 24.12 -project, and others in the OpenJDK langtools component. 24.13 -This is different from other projects in OpenJDK, which 24.14 -require version 6.0 or later.
25.1 --- a/make/netbeans/javap/build.xml Thu Jan 22 15:45:44 2009 -0800 25.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 25.3 @@ -1,60 +0,0 @@ 25.4 -<?xml version="1.0" encoding="UTF-8"?> 25.5 -<!-- 25.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 25.7 - 25.8 - Redistribution and use in source and binary forms, with or without 25.9 - modification, are permitted provided that the following conditions 25.10 - are met: 25.11 - 25.12 - - Redistributions of source code must retain the above copyright 25.13 - notice, this list of conditions and the following disclaimer. 25.14 - 25.15 - - Redistributions in binary form must reproduce the above copyright 25.16 - notice, this list of conditions and the following disclaimer in the 25.17 - documentation and/or other materials provided with the distribution. 25.18 - 25.19 - - Neither the name of Sun Microsystems nor the names of its 25.20 - contributors may be used to endorse or promote products derived 25.21 - from this software without specific prior written permission. 25.22 - 25.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 25.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 25.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 25.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 25.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 25.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25.34 ---> 25.35 - 25.36 -<!-- 25.37 - Build file for the disassembler tool, javap. 25.38 - - The basic functionality of the build is imported from make/build.xml. 25.39 - - Additional support for NetBeans actions is imported from 25.40 - make/netbeans/common/shared.xml. 25.41 - - This file gives the final customizations. 25.42 ---> 25.43 - 25.44 -<project name="javap" default="build" basedir="../../.."> 25.45 - <property name="tool.name" value="javap"/> 25.46 - 25.47 - <import file="../common/shared.xml"/> 25.48 - 25.49 - <!-- 25.50 - Alias the following imported targets, giving descriptions as appropriate. 25.51 - NetBeans will emphasize targets with descriptions in the Ant Targets list, 25.52 - and will display the targets in the context menu (under Run Target) for 25.53 - this file in the Projects viewer. 25.54 - --> 25.55 - 25.56 - <target name="build" depends="build-javap" description="Build the disassembler tool, javap."/> 25.57 - 25.58 - <target name="debug" depends="-debug-nb" description="Debug the disassembler tool, javap."/> 25.59 - 25.60 - <target name="-jtreg" depends="jtreg-javap"/> 25.61 - <target name="jtreg" depends="-jtreg-nb" description="Run the jtreg tests for the disassembler tool, javap."/> 25.62 - 25.63 -</project>
26.1 --- a/make/netbeans/javap/nbproject/project.xml Thu Jan 22 15:45:44 2009 -0800 26.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 26.3 @@ -1,108 +0,0 @@ 26.4 -<?xml version="1.0" encoding="UTF-8"?> 26.5 -<!-- 26.6 - Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. 26.7 - 26.8 - Redistribution and use in source and binary forms, with or without 26.9 - modification, are permitted provided that the following conditions 26.10 - are met: 26.11 - 26.12 - - Redistributions of source code must retain the above copyright 26.13 - notice, this list of conditions and the following disclaimer. 26.14 - 26.15 - - Redistributions in binary form must reproduce the above copyright 26.16 - notice, this list of conditions and the following disclaimer in the 26.17 - documentation and/or other materials provided with the distribution. 26.18 - 26.19 - - Neither the name of Sun Microsystems nor the names of its 26.20 - contributors may be used to endorse or promote products derived 26.21 - from this software without specific prior written permission. 26.22 - 26.23 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 26.24 - IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 26.25 - THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 26.26 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 26.27 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26.28 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26.29 - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26.30 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 26.31 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26.32 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26.33 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.34 ---> 26.35 - 26.36 -<!DOCTYPE project [ 26.37 - <!ENTITY standard-ide-actions-no-javadoc SYSTEM "../../common/standard-ide-actions-no-javadoc.ent"> 26.38 - <!ENTITY standard-context-menu-items-no-javadoc SYSTEM "../../common/standard-context-menu-items-no-javadoc.ent"> 26.39 -]> 26.40 -<project xmlns="http://www.netbeans.org/ns/project/1"> 26.41 - <type>org.netbeans.modules.ant.freeform</type> 26.42 - <configuration> 26.43 - <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 26.44 - <!-- Do not use Project Properties customizer when editing this file manually. --> 26.45 - <name>javap</name> 26.46 - <properties> 26.47 - <property name="root">../../..</property> 26.48 - </properties> 26.49 - <folders> 26.50 - <source-folder> 26.51 - <label>langtools</label> 26.52 - <location>${root}</location> 26.53 - </source-folder> 26.54 - <source-folder> 26.55 - <label>Source files</label> 26.56 - <type>java</type> 26.57 - <location>${root}/src/share/classes</location> 26.58 - </source-folder> 26.59 - <source-folder> 26.60 - <label>Test files</label> 26.61 - <type>tests</type> 26.62 - <location>${root}/test</location> 26.63 - </source-folder> 26.64 - <source-folder> 26.65 - <label>Build files</label> 26.66 - <type>build</type> 26.67 - <location>${root}/make</location> 26.68 - </source-folder> 26.69 - </folders> 26.70 - <ide-actions> 26.71 - &standard-ide-actions-no-javadoc; 26.72 - </ide-actions> 26.73 - <export> 26.74 - <type>folder</type> 26.75 - <location>${root}/build/classes</location> 26.76 - <build-target>build</build-target> 26.77 - </export> 26.78 - <view> 26.79 - <items> 26.80 - <source-folder style="tree"> 26.81 - <label>Source files</label> 26.82 - <location>${root}/src/share/classes</location> 26.83 - </source-folder> 26.84 - <source-folder style="tree"> 26.85 - <label>Test files</label> 26.86 - <location>${root}/test</location> 26.87 - </source-folder> 26.88 - <source-folder style="tree"> 26.89 - <label>Build files</label> 26.90 - <location>${root}/make</location> 26.91 - </source-folder> 26.92 - <source-file> 26.93 - <label>README</label> 26.94 - <location>README</location> 26.95 - </source-file> 26.96 - </items> 26.97 - <context-menu> 26.98 - &standard-context-menu-items-no-javadoc; 26.99 - </context-menu> 26.100 - </view> 26.101 - <subprojects/> 26.102 - </general-data> 26.103 - <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> 26.104 - <compilation-unit> 26.105 - <package-root>${root}/src/share/classes</package-root> 26.106 - <built-to>${root}/build/classes</built-to> 26.107 - <source-level>1.5</source-level> <!-- FIXME --> 26.108 - </compilation-unit> 26.109 - </java-data> 26.110 - </configuration> 26.111 -</project>
27.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 27.2 +++ b/make/netbeans/langtools/build.xml Fri Jan 23 11:23:10 2009 -0800 27.3 @@ -0,0 +1,279 @@ 27.4 +<?xml version="1.0" encoding="UTF-8"?> 27.5 +<!-- 27.6 + Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 27.7 + 27.8 + Redistribution and use in source and binary forms, with or without 27.9 + modification, are permitted provided that the following conditions 27.10 + are met: 27.11 + 27.12 + - Redistributions of source code must retain the above copyright 27.13 + notice, this list of conditions and the following disclaimer. 27.14 + 27.15 + - Redistributions in binary form must reproduce the above copyright 27.16 + notice, this list of conditions and the following disclaimer in the 27.17 + documentation and/or other materials provided with the distribution. 27.18 + 27.19 + - Neither the name of Sun Microsystems nor the names of its 27.20 + contributors may be used to endorse or promote products derived 27.21 + from this software without specific prior written permission. 27.22 + 27.23 + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 27.24 + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 27.25 + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 27.26 + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 27.27 + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27.28 + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 27.29 + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27.30 + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27.31 + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27.32 + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27.33 + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27.34 +--> 27.35 + 27.36 +<project name="langtools-netbeans" default="build" basedir="../../.."> 27.37 + 27.38 + <property name="langtools.properties" 27.39 + location="make/netbeans/langtools/nbproject/private/langtools.properties"/> 27.40 + 27.41 + <!-- 27.42 + Instead of importing the main build file, we could call it when needed. 27.43 + That would reduce the list of Ant targets that get displayed for this 27.44 + file, but it also complicates the interface between the project build 27.45 + file and the main build file. For example, some imported targets 27.46 + would have to be reclared, properties would have to be restructured, 27.47 + and it would be harder to run results (e.g. in properties) from nested 27.48 + targets. 27.49 + --> 27.50 + <import file="../../build.xml"/> 27.51 + 27.52 + <!-- Build project. (action: build; F11) 27.53 + If langtools.tool.name is set, then just build that tool; otherwise 27.54 + build all tools. 27.55 + --> 27.56 + 27.57 + <target name="build" depends="-get-tool-if-set,-build-tool,-build-all" 27.58 + description="Build one or all langtools tools" 27.59 + /> 27.60 + 27.61 + <target name="-build-tool" if="langtools.tool.name"> 27.62 + <echo level="info" message="Building ${langtools.tool.name}"/> 27.63 + <echo level="verbose" message="(Unset langtools.tool.name to build all tools)"/> 27.64 + <antcall target="build-${langtools.tool.name}"/> 27.65 + </target> 27.66 + 27.67 + <target name="-build-all" unless="langtools.tool.name"> 27.68 + <echo level="info" message="Building all tools"/> 27.69 + <echo level="verbose" message="(Set langtools.tool.name to build a single tool)"/> 27.70 + <antcall target="build-all-tools"/> 27.71 + </target> 27.72 + 27.73 + <!-- Compile a single file. (action: compile.single; F9) --> 27.74 + 27.75 + <target name="compile-single" depends="build-bootstrap-javac"> 27.76 + <fail unless="includes">Must set property 'includes'</fail> 27.77 + <javac fork="true" executable="${build.bootstrap.dir}/bin/javac" 27.78 + srcdir="${src.classes.dir}" 27.79 + destdir="${build.classes.dir}" 27.80 + includes="${includes}" 27.81 + sourcepath="" 27.82 + includeAntRuntime="no" 27.83 + target="${javac.target}" 27.84 + debug="${javac.debug}" 27.85 + debuglevel="${javac.debuglevel}"/> 27.86 + </target> 27.87 + 27.88 + <!-- Run tool. (action: run; F6) 27.89 + Use langtools.tool.name and langtools.tool.args properties if set; otherwise prompt 27.90 + the user. 27.91 + --> 27.92 + 27.93 + <target name="run" depends="-check-target.java.home,build,-def-run,-get-tool-and-args" 27.94 + description="run tool"> 27.95 + <echo level="info" message="Run ${langtools.tool.name} with args ${langtools.tool.args}"/> 27.96 + <run mainclass="com.sun.tools.${langtools.tool.name}.Main" args="${langtools.tool.args}"/> 27.97 + </target> 27.98 + 27.99 + <!-- Run a selected class. (action: run.single; shift-F6) --> 27.100 + 27.101 + <target name="run-single" depends="-check-target.java.home,-def-run"> 27.102 + <fail unless="run.classname">Must set property 'run.classname' </fail> 27.103 + <echo level="info" message="run ${run.classname}"/> 27.104 + <run mainclass="${run.classname}" args=""/> 27.105 + </target> 27.106 + 27.107 + <!-- Test project, and display results if tests failed. (action: test; Alt-F6) 27.108 + If langtools.tool.name is set, then just test that tool; otherwise 27.109 + test all tools. 27.110 + --> 27.111 + 27.112 + <target name="jtreg" depends="-get-tool-if-set,-jtreg-tool,-jtreg-all" 27.113 + description="Test one or all langtools tools" 27.114 + /> 27.115 + 27.116 + <target name="-jtreg-tool" if="langtools.tool.name"> 27.117 + <echo level="info" message="Testing ${langtools.tool.name}"/> 27.118 + <echo level="verbose" message="(Unset langtools.tool.name to test all tools)"/> 27.119 + <antcall> 27.120 + <target name="jtreg-${langtools.tool.name}"/> 27.121 + <target name="-show-jtreg"/> 27.122 + </antcall> 27.123 + </target> 27.124 + 27.125 + <target name="-jtreg-all" unless="langtools.tool.name"> 27.126 + <echo level="info" message="Testing all tools"/> 27.127 + <echo level="verbose" message="(Set langtools.tool.name to test a single tool)"/> 27.128 + <antcall> 27.129 + <target name="langtools.jtreg"/> 27.130 + <target name="-show-jtreg"/> 27.131 + </antcall> 27.132 + </target> 27.133 + 27.134 + <target name="-show-jtreg" if="netbeans.home" unless="jtreg.passed"> 27.135 + <nbbrowse file="${jtreg.report}/report.html"/> 27.136 + <fail>Some tests failed; see report for details.</fail> 27.137 + </target> 27.138 + 27.139 + <!-- Debug tool in NetBeans. --> 27.140 + 27.141 + <target name="debug" depends="-check-target.java.home,-def-run,-def-start-debugger,-get-tool-and-args,build" if="netbeans.home"> 27.142 + <echo level="info" message="Debug ${langtools.tool.name} with args ${langtools.tool.args}"/> 27.143 + <start-debugger/> 27.144 + <run mainclass="com.sun.tools.${langtools.tool.name}.Main" args="${langtools.tool.args}" jpda.jvmargs="${jpda.jvmargs}"/> 27.145 + </target> 27.146 + 27.147 + <!-- Debug a selected class . --> 27.148 + <target name="debug-single" depends="-check-target.java.home,-def-start-debugger,-def-run"> 27.149 + <fail unless="debug.classname">Must set property 'debug.classname'</fail> 27.150 + <start-debugger/> 27.151 + <run mainclass="${debug.classname}" default.args="" jpda.jvmargs="${jpda.jvmargs}"/> 27.152 + </target> 27.153 + 27.154 + <!-- Debug a jtreg test. --> 27.155 + <target name="debug-jtreg" depends="-check-target.java.home,-def-start-debugger,-def-jtreg"> 27.156 + <fail unless="jtreg.tests">Must set property 'jtreg.tests'</fail> 27.157 + <start-debugger/> 27.158 + <jtreg-tool name="debug" samevm="false" tests="${jtreg.tests}" jpda.jvmargs="${jpda.jvmargs}"/> 27.159 + </target> 27.160 + 27.161 + <!-- Update a class being debugged. --> 27.162 + 27.163 + <target name="debug-fix" if="langtools.tool.name"> 27.164 + <fail unless="class">Must set property 'class' 27.165 + </fail> 27.166 + <antcall target="compile-single"> 27.167 + <param name="includes" value="${class}.java"/> 27.168 + </antcall> 27.169 + <nbjpdareload> 27.170 + <fileset dir="${build.classes.dir}"> 27.171 + <include name="${class}.class"/> 27.172 + </fileset> 27.173 + </nbjpdareload> 27.174 + </target> 27.175 + 27.176 + <!-- Generate javadoc for one or all tools. (action: javadoc; Alt-F6) 27.177 + If langtools.tool.name is set, then just test that tool; otherwise 27.178 + test all tools. 27.179 + --> 27.180 + 27.181 + <target name="javadoc" depends="-javadoc-tool,-javadoc-all" 27.182 + description="Generate javadoc for one or all langtools tools" 27.183 + /> 27.184 + 27.185 + <target name="-javadoc-tool" if="langtools.tool.name"> 27.186 + <echo level="info" message="Generate javadoc for ${langtools.tool.name}"/> 27.187 + <echo level="verbose" message="(Unset langtools.tool.name to generate javadoc for all tools)"/> 27.188 + <antcall> 27.189 + <target name="javadoc-${langtools.tool.name}"/> 27.190 + <target name="-show-javadoc"/> 27.191 + </antcall> 27.192 + </target> 27.193 + 27.194 + <target name="-javadoc-all" unless="langtools.tool.name"> 27.195 + <echo level="info" message="Generate javadoc for all tools"/> 27.196 + <echo level="verbose" message="(Set langtools.tool.name to generate javadoc for a single tool)"/> 27.197 + <antcall> 27.198 + <target name="langtools.javadoc"/> 27.199 + <target name="-show-javadoc"/> 27.200 + </antcall> 27.201 + </target> 27.202 + 27.203 + <target name="-show-javadoc" if="netbeans.home"> 27.204 + <!-- what if doing javadoc for all? --> 27.205 + <nbbrowse file="${build.javadoc.dir}/${langtools.tool.name}/index.html"/> 27.206 + </target> 27.207 + 27.208 + <!-- Prompt for values. --> 27.209 + 27.210 + <target name="-get-tool-if-set" depends="-def-select-tool"> 27.211 + <select-tool 27.212 + toolproperty="langtools.tool.name" 27.213 + propertyfile="${langtools.properties}" 27.214 + askIfUnset="false" 27.215 + /> 27.216 + </target> 27.217 + 27.218 + <target name="-get-tool-and-args" depends="-def-select-tool"> 27.219 + <select-tool 27.220 + toolproperty="langtools.tool.name" 27.221 + argsproperty="langtools.tool.args" 27.222 + propertyfile="${langtools.properties}" 27.223 + askIfUnset="true" 27.224 + /> 27.225 + </target> 27.226 + 27.227 + <!-- Macro to run a tool or selected class - used by run* and debug* tasks --> 27.228 + <target name="-def-run"> 27.229 + <macrodef name="run"> 27.230 + <attribute name="mainclass"/> 27.231 + <attribute name="args" default=""/> 27.232 + <attribute name="jpda.jvmargs" default=""/> 27.233 + <sequential> 27.234 + <java fork="true" jvm="${target.java}" classname="@{mainclass}"> 27.235 + <jvmarg line="-Xbootclasspath/p:${build.classes.dir}"/> 27.236 + <jvmarg line="@{jpda.jvmargs}"/> 27.237 + <arg line="@{args}"/> 27.238 + </java> 27.239 + </sequential> 27.240 + </macrodef> 27.241 + </target> 27.242 + 27.243 + <!-- Macro to start the debugger and set a property containg the args needed by the run task --> 27.244 + <target name="-def-start-debugger" if="netbeans.home"> 27.245 + <macrodef name="start-debugger"> 27.246 + <attribute name="jpda.jvmargs.property" default="jpda.jvmargs"/> 27.247 + <sequential> 27.248 + <nbjpdastart name="${ant.project.name}" addressproperty="jpda.address" transport="dt_socket"> 27.249 + <bootclasspath> 27.250 + <pathelement location="${build.classes.dir}"/> 27.251 + <pathelement location="${target.java.home}/jre/lib/rt.jar"/> 27.252 + </bootclasspath> 27.253 + <sourcepath> 27.254 + <pathelement location="${src.classes.dir}"/> 27.255 + </sourcepath> 27.256 + </nbjpdastart> 27.257 + <property 27.258 + name="@{jpda.jvmargs.property}" 27.259 + value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}" 27.260 + /> 27.261 + </sequential> 27.262 + </macrodef> 27.263 + </target> 27.264 + 27.265 + <target name="-def-select-tool"> 27.266 + <mkdir dir="${build.toolclasses.dir}"/> 27.267 + <javac srcdir="${make.tools.dir}/SelectTool" 27.268 + destdir="${build.toolclasses.dir}/" 27.269 + classpath="${ant.home}/lib/ant.jar" 27.270 + debug="${javac.debug}" 27.271 + debuglevel="${javac.debuglevel}"> 27.272 + <compilerarg line="-Xlint"/> 27.273 + </javac> 27.274 + <taskdef name="select-tool" 27.275 + classname="SelectToolTask" 27.276 + classpath="${build.toolclasses.dir}/"/> 27.277 + </target> 27.278 + 27.279 + <target name="select-tool" depends="-def-select-tool"> 27.280 + <select-tool propertyfile="${langtools.properties}"/> 27.281 + </target> 27.282 +</project>
28.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 28.2 +++ b/make/netbeans/langtools/nbproject/project.xml Fri Jan 23 11:23:10 2009 -0800 28.3 @@ -0,0 +1,108 @@ 28.4 +<?xml version="1.0" encoding="UTF-8"?> 28.5 +<!-- 28.6 + Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 28.7 + 28.8 + Redistribution and use in source and binary forms, with or without 28.9 + modification, are permitted provided that the following conditions 28.10 + are met: 28.11 + 28.12 + - Redistributions of source code must retain the above copyright 28.13 + notice, this list of conditions and the following disclaimer. 28.14 + 28.15 + - Redistributions in binary form must reproduce the above copyright 28.16 + notice, this list of conditions and the following disclaimer in the 28.17 + documentation and/or other materials provided with the distribution. 28.18 + 28.19 + - Neither the name of Sun Microsystems nor the names of its 28.20 + contributors may be used to endorse or promote products derived 28.21 + from this software without specific prior written permission. 28.22 + 28.23 + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 28.24 + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 28.25 + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28.26 + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28.27 + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28.28 + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28.29 + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 28.30 + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 28.31 + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28.32 + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28.33 + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28.34 +--> 28.35 + 28.36 +<!DOCTYPE project [ 28.37 + <!ENTITY standard-ide-actions SYSTEM "standard-ide-actions.ent"> 28.38 + <!ENTITY standard-context-menu-items SYSTEM "standard-context-menu-items.ent"> 28.39 +]> 28.40 +<project xmlns="http://www.netbeans.org/ns/project/1"> 28.41 + <type>org.netbeans.modules.ant.freeform</type> 28.42 + <configuration> 28.43 + <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 28.44 + <!-- Do not use Project Properties customizer when editing this file manually. --> 28.45 + <name>langtools</name> 28.46 + <properties> 28.47 + <property name="root">../../..</property> 28.48 + </properties> 28.49 + <folders> 28.50 + <source-folder> 28.51 + <label>langtools</label> 28.52 + <location>${root}</location> 28.53 + </source-folder> 28.54 + <source-folder> 28.55 + <label>Source files</label> 28.56 + <type>java</type> 28.57 + <location>${root}/src/share/classes</location> 28.58 + </source-folder> 28.59 + <source-folder> 28.60 + <label>Test files</label> 28.61 + <type>tests</type> 28.62 + <location>${root}/test</location> 28.63 + </source-folder> 28.64 + <source-folder> 28.65 + <label>Build files</label> 28.66 + <type>build</type> 28.67 + <location>${root}/make</location> 28.68 + </source-folder> 28.69 + </folders> 28.70 + <ide-actions> 28.71 + &standard-ide-actions; 28.72 + </ide-actions> 28.73 + <export> 28.74 + <type>folder</type> 28.75 + <location>${root}/build/classes</location> 28.76 + <build-target>build</build-target> 28.77 + </export> 28.78 + <view> 28.79 + <items> 28.80 + <source-folder style="tree"> 28.81 + <label>Source files</label> 28.82 + <location>${root}/src/share/classes</location> 28.83 + </source-folder> 28.84 + <source-folder style="tree"> 28.85 + <label>Test files</label> 28.86 + <location>${root}/test</location> 28.87 + </source-folder> 28.88 + <source-folder style="tree"> 28.89 + <label>Build files</label> 28.90 + <location>${root}/make</location> 28.91 + </source-folder> 28.92 + <source-file> 28.93 + <label>README</label> 28.94 + <location>README</location> 28.95 + </source-file> 28.96 + </items> 28.97 + <context-menu> 28.98 + &standard-context-menu-items; 28.99 + </context-menu> 28.100 + </view> 28.101 + <subprojects/> 28.102 + </general-data> 28.103 + <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> 28.104 + <compilation-unit> 28.105 + <package-root>${root}/src/share/classes</package-root> 28.106 + <built-to>${root}/build/classes</built-to> 28.107 + <source-level>1.5</source-level> <!-- FIXME --> 28.108 + </compilation-unit> 28.109 + </java-data> 28.110 + </configuration> 28.111 +</project>
29.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 29.2 +++ b/make/netbeans/langtools/nbproject/standard-context-menu-items.ent Fri Jan 23 11:23:10 2009 -0800 29.3 @@ -0,0 +1,61 @@ 29.4 +<?xml version="1.0" encoding="UTF-8"?> 29.5 +<!-- 29.6 + Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 29.7 + 29.8 + Redistribution and use in source and binary forms, with or without 29.9 + modification, are permitted provided that the following conditions 29.10 + are met: 29.11 + 29.12 + - Redistributions of source code must retain the above copyright 29.13 + notice, this list of conditions and the following disclaimer. 29.14 + 29.15 + - Redistributions in binary form must reproduce the above copyright 29.16 + notice, this list of conditions and the following disclaimer in the 29.17 + documentation and/or other materials provided with the distribution. 29.18 + 29.19 + - Neither the name of Sun Microsystems nor the names of its 29.20 + contributors may be used to endorse or promote products derived 29.21 + from this software without specific prior written permission. 29.22 + 29.23 + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 29.24 + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 29.25 + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29.26 + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29.27 + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 29.28 + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29.29 + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29.30 + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 29.31 + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29.32 + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29.33 + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29.34 +--> 29.35 + 29.36 +<!-- 29.37 + This file defines the actions that will appear on the project's context 29.38 + menu, in the Projects viewer. 29.39 + It is normally included as an entity into a project's project.xml file. 29.40 + 29.41 + For information on these actions, see 29.42 + - NetBeans: Setting Up Projects 29.43 + at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 29.44 + - NetBeans: Advanced Freeform Project Configuration 29.45 + at http://www.netbeans.org/kb/41/freeform-config.html 29.46 +--> 29.47 + 29.48 +<ide-action name="select-tool"/> 29.49 + 29.50 +<separator/> 29.51 + 29.52 +<ide-action name="build"/> 29.53 +<ide-action name="rebuild"/> 29.54 +<ide-action name="clean"/> 29.55 +<ide-action name="javadoc"/> 29.56 + 29.57 +<separator/> 29.58 + 29.59 +<ide-action name="run"/> 29.60 +<ide-action name="debug"/> 29.61 + 29.62 +<separator/> 29.63 + 29.64 +<ide-action name="test"/>
30.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 30.2 +++ b/make/netbeans/langtools/nbproject/standard-ide-actions.ent Fri Jan 23 11:23:10 2009 -0800 30.3 @@ -0,0 +1,173 @@ 30.4 +<?xml version="1.0" encoding="UTF-8"?> 30.5 +<!-- 30.6 + Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 30.7 + 30.8 + Redistribution and use in source and binary forms, with or without 30.9 + modification, are permitted provided that the following conditions 30.10 + are met: 30.11 + 30.12 + - Redistributions of source code must retain the above copyright 30.13 + notice, this list of conditions and the following disclaimer. 30.14 + 30.15 + - Redistributions in binary form must reproduce the above copyright 30.16 + notice, this list of conditions and the following disclaimer in the 30.17 + documentation and/or other materials provided with the distribution. 30.18 + 30.19 + - Neither the name of Sun Microsystems nor the names of its 30.20 + contributors may be used to endorse or promote products derived 30.21 + from this software without specific prior written permission. 30.22 + 30.23 + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 30.24 + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 30.25 + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 30.26 + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 30.27 + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 30.28 + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 30.29 + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30.30 + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30.31 + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 30.32 + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30.33 + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30.34 +--> 30.35 + 30.36 +<!-- 30.37 + This file defines the standard actions accepted by langtools projects. 30.38 + It is normally included as an entity into a project's project.xml file. 30.39 + 30.40 + For information on these actions, see 30.41 + - NetBeans: Setting Up Projects 30.42 + at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 30.43 + - NetBeans: Advanced Freeform Project Configuration 30.44 + at http://www.netbeans.org/kb/41/freeform-config.html 30.45 +--> 30.46 + 30.47 +<action name="build"> 30.48 + <target>build</target> 30.49 +</action> 30.50 + 30.51 +<action name="clean"> 30.52 + <target>clean</target> 30.53 +</action> 30.54 + 30.55 +<action name="rebuild"> 30.56 + <target>clean</target> 30.57 + <target>build</target> 30.58 +</action> 30.59 + 30.60 +<action name="compile.single"> 30.61 + <target>compile-single</target> 30.62 + <property name="srcdir">${root}/src/share/classes</property> 30.63 + <context> 30.64 + <property>includes</property> 30.65 + <folder>${root}/src/share/classes</folder> 30.66 + <pattern>\.java$</pattern> 30.67 + <format>relative-path</format> 30.68 + <arity> 30.69 + <separated-files>,</separated-files> 30.70 + </arity> 30.71 + </context> 30.72 +</action> 30.73 + 30.74 +<action name="run"> 30.75 + <target>run</target> 30.76 +</action> 30.77 + 30.78 +<action name="run.single"> 30.79 + <target>run-single</target> 30.80 + <context> 30.81 + <property>run.classname</property> 30.82 + <folder>${root}/src/share/classes</folder> 30.83 + <pattern>\.java$</pattern> 30.84 + <format>java-name</format> 30.85 + <arity> 30.86 + <one-file-only/> 30.87 + </arity> 30.88 + </context> 30.89 +</action> 30.90 + 30.91 +<!-- 30.92 + Note: NetBeans does not appear to support context menu items 30.93 + on shell scripts :-( 30.94 +--> 30.95 + 30.96 +<action name="run.single"> 30.97 + <target>jtreg</target> 30.98 + <context> 30.99 + <property>jtreg.tests</property> 30.100 + <folder>${root}/test</folder> 30.101 + <pattern>\.(java|sh)$</pattern> 30.102 + <format>relative-path</format> 30.103 + <arity> 30.104 + <separated-files>,</separated-files> 30.105 + </arity> 30.106 + </context> 30.107 +</action> 30.108 + 30.109 +<action name="test"> 30.110 + <target>jtreg</target> 30.111 +</action> 30.112 + 30.113 +<action name="debug"> 30.114 + <target>debug</target> 30.115 +</action> 30.116 + 30.117 +<action name="debug.single"> 30.118 + <target>debug-single</target> 30.119 + <context> 30.120 + <property>debug.classname</property> 30.121 + <folder>${root}/src/share/classes</folder> 30.122 + <pattern>\.java$</pattern> 30.123 + <format>java-name</format> 30.124 + <arity> 30.125 + <one-file-only/> 30.126 + </arity> 30.127 + </context> 30.128 +</action> 30.129 + 30.130 +<!-- 30.131 + Note: NetBeans does not appear to support context menu items 30.132 + on shell scripts :-( 30.133 +--> 30.134 + 30.135 +<action name="debug.single"> 30.136 + <target>debug-jtreg</target> 30.137 + <context> 30.138 + <property>jtreg.tests</property> 30.139 + <folder>${root}/test</folder> 30.140 + <pattern>\.(java|sh)$</pattern> 30.141 + <format>relative-path</format> 30.142 + <arity> 30.143 + <one-file-only/> 30.144 + </arity> 30.145 + </context> 30.146 +</action> 30.147 + 30.148 +<action name="debug.fix"> 30.149 + <target>debug-fix</target> 30.150 + <property name="srcdir">${root}/src/share/classes</property> 30.151 + <context> 30.152 + <property>class</property> 30.153 + <folder>${root}/src/share/classes</folder> 30.154 + <pattern>\.java$</pattern> 30.155 + <format>relative-path-noext</format> 30.156 + <arity> 30.157 + <one-file-only/> 30.158 + </arity> 30.159 + </context> 30.160 +</action> 30.161 + 30.162 +<action name="javadoc"> 30.163 + <target>javadoc</target> 30.164 +</action> 30.165 + 30.166 +<action name="select-tool"> 30.167 + <target>select-tool</target> 30.168 +</action> 30.169 + 30.170 +<action name="test-select-tool-1"> 30.171 + <target>test-select-tool-1</target> 30.172 +</action> 30.173 + 30.174 +<action name="test-select-tool-2"> 30.175 + <target>test-select-tool-2</target> 30.176 +</action>
31.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 31.2 +++ b/make/tools/SelectTool/SelectToolTask.java Fri Jan 23 11:23:10 2009 -0800 31.3 @@ -0,0 +1,284 @@ 31.4 +/* 31.5 + * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. 31.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 31.7 + * 31.8 + * This code is free software; you can redistribute it and/or modify it 31.9 + * under the terms of the GNU General Public License version 2 only, as 31.10 + * published by the Free Software Foundation. Sun designates this 31.11 + * particular file as subject to the "Classpath" exception as provided 31.12 + * by Sun in the LICENSE file that accompanied this code. 31.13 + * 31.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 31.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 31.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 31.17 + * version 2 for more details (a copy is included in the LICENSE file that 31.18 + * accompanied this code). 31.19 + * 31.20 + * You should have received a copy of the GNU General Public License version 31.21 + * 2 along with this work; if not, write to the Free Software Foundation, 31.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 31.23 + * 31.24 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 31.25 + * CA 95054 USA or visit www.sun.com if you need additional information or 31.26 + * have any questions. 31.27 + */ 31.28 + 31.29 +import java.awt.GridBagConstraints; 31.30 +import java.awt.GridBagLayout; 31.31 +import java.awt.event.ActionEvent; 31.32 +import java.awt.event.ActionListener; 31.33 +import java.awt.event.FocusEvent; 31.34 +import java.awt.event.FocusListener; 31.35 +import java.awt.event.ItemEvent; 31.36 +import java.awt.event.ItemListener; 31.37 +import java.io.BufferedReader; 31.38 +import java.io.BufferedWriter; 31.39 +import java.io.File; 31.40 +import java.io.FileReader; 31.41 +import java.io.FileWriter; 31.42 +import java.io.IOException; 31.43 +import java.io.Reader; 31.44 +import java.io.Writer; 31.45 +import java.util.ArrayList; 31.46 +import java.util.Arrays; 31.47 +import java.util.List; 31.48 +import java.util.Properties; 31.49 +import javax.swing.JButton; 31.50 +import javax.swing.JCheckBox; 31.51 +import javax.swing.JComboBox; 31.52 +import javax.swing.JDialog; 31.53 +import javax.swing.JLabel; 31.54 +import javax.swing.JOptionPane; 31.55 +import javax.swing.JPanel; 31.56 +import javax.swing.JTextField; 31.57 + 31.58 +import javax.swing.SwingUtilities; 31.59 +import org.apache.tools.ant.BuildException; 31.60 +import org.apache.tools.ant.Project; 31.61 +import org.apache.tools.ant.Task; 31.62 + 31.63 +/** 31.64 + * Task to allow the user to control langtools tools built when using NetBeans. 31.65 + * 31.66 + * There are two primary modes. 31.67 + * 1) Property mode. In this mode, property names are provided to get values 31.68 + * that may be specified by the user, either directly in a GUI dialog, or 31.69 + * read from a properties file. If the GUI dialog is invoked, values may 31.70 + * optionally be set for future use. 31.71 + * 2) Setup mode. In this mode, no property names are provided, and the GUI 31.72 + * is invoked to allow the user to set or reset values for use in property mode. 31.73 + */ 31.74 +public class SelectToolTask extends Task { 31.75 + /** 31.76 + * Set the location of the private properties file used to keep the retain 31.77 + * user preferences for this repository. 31.78 + */ 31.79 + public void setPropertyFile(File propertyFile) { 31.80 + this.propertyFile = propertyFile; 31.81 + } 31.82 + 31.83 + /** 31.84 + * Set the name of the property which will be set to the name of the 31.85 + * selected tool, if any. If no tool is selected, the property will 31.86 + * remain unset. 31.87 + */ 31.88 + public void setToolProperty(String toolProperty) { 31.89 + this.toolProperty = toolProperty; 31.90 + } 31.91 + 31.92 + /** 31.93 + * Set the name of the property which will be set to the execution args of the 31.94 + * selected tool, if any. The args default to an empty string. 31.95 + */ 31.96 + public void setArgsProperty(String argsProperty) { 31.97 + this.argsProperty = argsProperty; 31.98 + } 31.99 + 31.100 + /** 31.101 + * Specify whether or not to pop up a dialog if the user has not specified 31.102 + * a default value for a property. 31.103 + */ 31.104 + public void setAskIfUnset(boolean askIfUnset) { 31.105 + this.askIfUnset = askIfUnset; 31.106 + } 31.107 + 31.108 + @Override 31.109 + public void execute() { 31.110 + Project p = getProject(); 31.111 + 31.112 + Properties props = readProperties(propertyFile); 31.113 + toolName = props.getProperty("tool.name"); 31.114 + if (toolName != null) { 31.115 + toolArgs = props.getProperty(toolName + ".args", ""); 31.116 + } 31.117 + 31.118 + if (toolProperty == null || 31.119 + askIfUnset && (toolName == null 31.120 + || (argsProperty != null && toolArgs == null))) { 31.121 + showGUI(props); 31.122 + } 31.123 + 31.124 + // finally, return required values, if any 31.125 + if (toolProperty != null && !(toolName == null || toolName.equals(""))) { 31.126 + p.setProperty(toolProperty, toolName); 31.127 + 31.128 + if (argsProperty != null && toolArgs != null) 31.129 + p.setProperty(argsProperty, toolArgs); 31.130 + } 31.131 + } 31.132 + 31.133 + void showGUI(Properties fileProps) { 31.134 + Properties guiProps = new Properties(fileProps); 31.135 + JOptionPane p = createPane(guiProps); 31.136 + p.createDialog("Select Tool").setVisible(true); 31.137 + 31.138 + toolName = (String) toolChoice.getSelectedItem(); 31.139 + toolArgs = argsField.getText(); 31.140 + 31.141 + if (defaultCheck.isSelected()) { 31.142 + if (toolName.equals("")) { 31.143 + fileProps.remove("tool.name"); 31.144 + } else { 31.145 + fileProps.put("tool.name", toolName); 31.146 + fileProps.put(toolName + ".args", toolArgs); 31.147 + } 31.148 + writeProperties(propertyFile, fileProps); 31.149 + } 31.150 + } 31.151 + 31.152 + JOptionPane createPane(final Properties props) { 31.153 + JPanel body = new JPanel(new GridBagLayout()); 31.154 + GridBagConstraints lc = new GridBagConstraints(); 31.155 + lc.insets.right = 10; 31.156 + lc.insets.bottom = 3; 31.157 + GridBagConstraints fc = new GridBagConstraints(); 31.158 + fc.anchor = GridBagConstraints.WEST; 31.159 + fc.gridx = 1; 31.160 + fc.gridwidth = GridBagConstraints.REMAINDER; 31.161 + fc.insets.bottom = 3; 31.162 + 31.163 + JLabel toolLabel = new JLabel("Tool:"); 31.164 + body.add(toolLabel, lc); 31.165 + String[] toolChoices = { "apt", "javac", "javadoc", "javah", "javap" }; 31.166 + if (true || toolProperty == null) { 31.167 + // include empty value in setup mode 31.168 + List<String> l = new ArrayList<String>(Arrays.asList(toolChoices)); 31.169 + l.add(0, ""); 31.170 + toolChoices = l.toArray(new String[l.size()]); 31.171 + } 31.172 + toolChoice = new JComboBox(toolChoices); 31.173 + if (toolName != null) 31.174 + toolChoice.setSelectedItem(toolName); 31.175 + toolChoice.addItemListener(new ItemListener() { 31.176 + public void itemStateChanged(ItemEvent e) { 31.177 + String tn = (String) e.getItem(); 31.178 + argsField.setText(getDefaultArgsForTool(props, tn)); 31.179 + if (toolProperty != null) 31.180 + okButton.setEnabled(!tn.equals("")); 31.181 + } 31.182 + }); 31.183 + body.add(toolChoice, fc); 31.184 + 31.185 + argsField = new JTextField(getDefaultArgsForTool(props, toolName), 40); 31.186 + if (toolProperty == null || argsProperty != null) { 31.187 + JLabel argsLabel = new JLabel("Args:"); 31.188 + body.add(argsLabel, lc); 31.189 + body.add(argsField, fc); 31.190 + argsField.addFocusListener(new FocusListener() { 31.191 + public void focusGained(FocusEvent e) { 31.192 + } 31.193 + public void focusLost(FocusEvent e) { 31.194 + String toolName = (String) toolChoice.getSelectedItem(); 31.195 + if (toolName.length() > 0) 31.196 + props.put(toolName + ".args", argsField.getText()); 31.197 + } 31.198 + }); 31.199 + } 31.200 + 31.201 + defaultCheck = new JCheckBox("Set as default"); 31.202 + if (toolProperty == null) 31.203 + defaultCheck.setSelected(true); 31.204 + else 31.205 + body.add(defaultCheck, fc); 31.206 + 31.207 + final JOptionPane p = new JOptionPane(body); 31.208 + okButton = new JButton("OK"); 31.209 + okButton.setEnabled(toolProperty == null || (toolName != null && !toolName.equals(""))); 31.210 + okButton.addActionListener(new ActionListener() { 31.211 + public void actionPerformed(ActionEvent e) { 31.212 + JDialog d = (JDialog) SwingUtilities.getAncestorOfClass(JDialog.class, p); 31.213 + d.setVisible(false); 31.214 + } 31.215 + }); 31.216 + p.setOptions(new Object[] { okButton }); 31.217 + 31.218 + return p; 31.219 + } 31.220 + 31.221 + Properties readProperties(File file) { 31.222 + Properties p = new Properties(); 31.223 + if (file != null && file.exists()) { 31.224 + Reader in = null; 31.225 + try { 31.226 + in = new BufferedReader(new FileReader(file)); 31.227 + p.load(in); 31.228 + in.close(); 31.229 + } catch (IOException e) { 31.230 + throw new BuildException("error reading property file", e); 31.231 + } finally { 31.232 + if (in != null) { 31.233 + try { 31.234 + in.close(); 31.235 + } catch (IOException e) { 31.236 + throw new BuildException("cannot close property file", e); 31.237 + } 31.238 + } 31.239 + } 31.240 + } 31.241 + return p; 31.242 + } 31.243 + 31.244 + void writeProperties(File file, Properties p) { 31.245 + if (file != null) { 31.246 + Writer out = null; 31.247 + try { 31.248 + File dir = file.getParentFile(); 31.249 + if (dir != null && !dir.exists()) 31.250 + dir.mkdirs(); 31.251 + out = new BufferedWriter(new FileWriter(file)); 31.252 + p.store(out, "langtools properties"); 31.253 + out.close(); 31.254 + } catch (IOException e) { 31.255 + throw new BuildException("error writing property file", e); 31.256 + } finally { 31.257 + if (out != null) { 31.258 + try { 31.259 + out.close(); 31.260 + } catch (IOException e) { 31.261 + throw new BuildException("cannot close property file", e); 31.262 + } 31.263 + } 31.264 + } 31.265 + } 31.266 + } 31.267 + 31.268 + String getDefaultArgsForTool(Properties props, String tn) { 31.269 + return (tn == null || tn.equals("")) ? "" : props.getProperty(tn + ".args", ""); 31.270 + } 31.271 + 31.272 + // Ant task parameters 31.273 + private boolean askIfUnset; 31.274 + private String toolProperty; 31.275 + private String argsProperty; 31.276 + private File propertyFile; 31.277 + 31.278 + // GUI components 31.279 + private JComboBox toolChoice; 31.280 + private JTextField argsField; 31.281 + private JCheckBox defaultCheck; 31.282 + private JButton okButton; 31.283 + 31.284 + // Result values for the client 31.285 + private String toolName; 31.286 + private String toolArgs; 31.287 +}