project.xml revision 2384:176a2e871eb9
1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. 4 5 Redistribution and use in source and binary forms, with or without 6 modification, are permitted provided that the following conditions 7 are met: 8 9 - Redistributions of source code must retain the above copyright 10 notice, this list of conditions and the following disclaimer. 11 12 - Redistributions in binary form must reproduce the above copyright 13 notice, this list of conditions and the following disclaimer in the 14 documentation and/or other materials provided with the distribution. 15 16 - Neither the name of Oracle nor the names of its 17 contributors may be used to endorse or promote products derived 18 from this software without specific prior written permission. 19 20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 21 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 22 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 24 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 28 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31--> 32<project xmlns="http://www.netbeans.org/ns/project/1"> 33 <type>org.netbeans.modules.ant.freeform</type> 34 <configuration> 35 <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> 36 <name>langtools</name> 37 </general-data> 38 <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2"> 39 <!-- Do not use Project Properties customizer when editing this file manually. --> 40 <name>langtools</name> 41 <properties> 42 <property name="root">../../..</property> 43 </properties> 44 <folders> 45 <source-folder> 46 <label>langtools</label> 47 <location>${root}</location> 48 </source-folder> 49 <source-folder> 50 <label>Test files</label> 51 <type>tests</type> 52 <location>${root}/test</location> 53 </source-folder> 54 <source-folder> 55 <label>Build files</label> 56 <type>build</type> 57 <location>${root}/make</location> 58 </source-folder> 59 <source-folder> 60 <label>Source files</label> 61 <type>java</type> 62 <location>${root}/src/share/classes</location> 63 </source-folder> 64 <build-file> 65 <location>${root}/build/classes</location> 66 </build-file> 67 </folders> 68 <ide-actions> 69 <!-- 70 This section defines the standard actions accepted by langtools projects. 71 72 For information on these actions, see 73 - NetBeans: Setting Up Projects 74 at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 75 - NetBeans: Advanced Freeform Project Configuration 76 at http://www.netbeans.org/kb/41/freeform-config.html 77--> 78 <action name="build"> 79 <target>build</target> 80 </action> 81 <action name="clean"> 82 <target>clean</target> 83 </action> 84 <action name="rebuild"> 85 <target>clean</target> 86 <target>build</target> 87 </action> 88 <action name="compile.single"> 89 <target>compile-single</target> 90 <property name="srcdir">${root}/src/share/classes</property> 91 <context> 92 <property>includes</property> 93 <folder>${root}/src/share/classes</folder> 94 <pattern>\.java$</pattern> 95 <format>relative-path</format> 96 <arity> 97 <separated-files>,</separated-files> 98 </arity> 99 </context> 100 </action> 101 <action name="run"> 102 <target>run</target> 103 </action> 104 <action name="run.single"> 105 <target>run-single</target> 106 <context> 107 <property>run.classname</property> 108 <folder>${root}/src/share/classes</folder> 109 <pattern>\.java$</pattern> 110 <format>java-name</format> 111 <arity> 112 <one-file-only/> 113 </arity> 114 </context> 115 </action> 116 <!-- 117 Note: NetBeans does not appear to support context menu items 118 on shell scripts :-( 119--> 120 <action name="run.single"> 121 <target>jtreg</target> 122 <context> 123 <property>jtreg.tests</property> 124 <folder>${root}/test</folder> 125 <pattern>\.(java|sh)$</pattern> 126 <format>relative-path</format> 127 <arity> 128 <separated-files> </separated-files> 129 </arity> 130 </context> 131 </action> 132 <action name="test"> 133 <target>jtreg</target> 134 </action> 135 <action name="debug"> 136 <target>debug</target> 137 </action> 138 <action name="debug.single"> 139 <target>debug-single</target> 140 <context> 141 <property>debug.classname</property> 142 <folder>${root}/src/share/classes</folder> 143 <pattern>\.java$</pattern> 144 <format>java-name</format> 145 <arity> 146 <one-file-only/> 147 </arity> 148 </context> 149 </action> 150 <!-- 151 Note: NetBeans does not appear to support context menu items 152 on shell scripts :-( 153--> 154 <action name="debug.single"> 155 <target>debug-jtreg</target> 156 <context> 157 <property>jtreg.tests</property> 158 <folder>${root}/test</folder> 159 <pattern>\.(java|sh)$</pattern> 160 <format>relative-path</format> 161 <arity> 162 <one-file-only/> 163 </arity> 164 </context> 165 </action> 166 <action name="debug.fix"> 167 <target>debug-fix</target> 168 <property name="srcdir">${root}/src/share/classes</property> 169 <context> 170 <property>class</property> 171 <folder>${root}/src/share/classes</folder> 172 <pattern>\.java$</pattern> 173 <format>relative-path-noext</format> 174 <arity> 175 <one-file-only/> 176 </arity> 177 </context> 178 </action> 179 <action name="javadoc"> 180 <target>javadoc</target> 181 </action> 182 <action name="select-tool"> 183 <target>select-tool</target> 184 </action> 185 <action name="test-select-tool-1"> 186 <target>test-select-tool-1</target> 187 </action> 188 <action name="test-select-tool-2"> 189 <target>test-select-tool-2</target> 190 </action> 191 </ide-actions> 192 <export> 193 <type>folder</type> 194 <location>${root}/build/classes</location> 195 <build-target>build</build-target> 196 </export> 197 <view> 198 <items> 199 <source-folder style="tree"> 200 <label>Source files</label> 201 <location>${root}/src/share/classes</location> 202 </source-folder> 203 <source-folder style="tree"> 204 <label>Test files</label> 205 <location>${root}/test</location> 206 </source-folder> 207 <source-folder style="tree"> 208 <label>Build files</label> 209 <location>${root}/make</location> 210 </source-folder> 211 <source-file> 212 <label>README</label> 213 <location>README</location> 214 </source-file> 215 </items> 216 <context-menu> 217 <!-- 218 This section defines the actions that will appear on the project's context 219 menu, in the Projects viewer. 220 221 For information on these actions, see 222 - NetBeans: Setting Up Projects 223 at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html 224 - NetBeans: Advanced Freeform Project Configuration 225 at http://www.netbeans.org/kb/41/freeform-config.html 226--> 227 <ide-action name="select-tool"/> 228 <separator/> 229 <ide-action name="build"/> 230 <ide-action name="rebuild"/> 231 <ide-action name="clean"/> 232 <ide-action name="javadoc"/> 233 <separator/> 234 <ide-action name="run"/> 235 <ide-action name="debug"/> 236 <separator/> 237 <ide-action name="test"/> 238 </context-menu> 239 </view> 240 <subprojects/> 241 </general-data> 242 <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/3"> 243 <compilation-unit> 244 <package-root>${root}/src/share/classes</package-root> 245 <built-to>${root}/build/classes</built-to> 246 <source-level>1.7</source-level> 247 </compilation-unit> 248 </java-data> 249 </configuration> 250</project> 251