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 - java.compiler</label>
  61                     <type>java</type>
  62                     <location>${root}/src/java.compiler/share/classes</location>
  63                 </source-folder>
  64                 <source-folder>
  65                     <label>Source files - jdk.compiler</label>
  66                     <type>java</type>
  67                     <location>${root}/src/jdk.compiler/share/classes</location>
  68                 </source-folder>
  69                 <source-folder>
  70                     <label>Source files - jdk.dev</label>
  71                     <type>java</type>
  72                     <location>${root}/src/jdk.dev/share/classes</location>
  73                 </source-folder>
  74                 <source-folder>
  75                     <label>Source files - jdk.javadoc</label>
  76                     <type>java</type>
  77                     <location>${root}/src/jdk.javadoc/share/classes</location>
  78                 </source-folder>
  79                 <build-file>
  80                     <location>${root}/build/classes</location>
  81                 </build-file>
  82             </folders>
  83             <ide-actions>
  84                 <!--
  85  This section defines the standard actions accepted by langtools projects.
  86 
  87  For information on these actions, see
  88    - NetBeans: Setting Up Projects
  89      at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html
  90    - NetBeans: Advanced Freeform Project Configuration
  91      at http://www.netbeans.org/kb/41/freeform-config.html
  92 -->
  93                 <action name="build">
  94                     <target>build</target>
  95                 </action>
  96                 <action name="clean">
  97                     <target>clean</target>
  98                 </action>
  99                 <action name="rebuild">
 100                     <target>clean</target>
 101                     <target>build</target>
 102                 </action>
 103                 <action name="compile.single">
 104                     <target>compile-single</target>
 105                     <property name="module.name">java.compiler</property>
 106                     <context>
 107                         <property>includes</property>
 108                         <folder>${root}/src/java.compiler/share/classes</folder>
 109                         <pattern>\.java$</pattern>
 110                         <format>relative-path</format>
 111                         <arity>
 112                             <separated-files>,</separated-files>
 113                         </arity>
 114                     </context>
 115                 </action>
 116                 <action name="compile.single">
 117                     <target>compile-single</target>
 118                     <property name="module.name">jdk.compiler</property>
 119                     <context>
 120                         <property>includes</property>
 121                         <folder>${root}/src/jdk.compiler/share/classes</folder>
 122                         <pattern>\.java$</pattern>
 123                         <format>relative-path</format>
 124                         <arity>
 125                             <separated-files>,</separated-files>
 126                         </arity>
 127                     </context>
 128                 </action>
 129                 <action name="compile.single">
 130                     <target>compile-single</target>
 131                     <property name="module.name">jdk.dev</property>
 132                     <context>
 133                         <property>includes</property>
 134                         <folder>${root}/src/jdk.dev/share/classes</folder>
 135                         <pattern>\.java$</pattern>
 136                         <format>relative-path</format>
 137                         <arity>
 138                             <separated-files>,</separated-files>
 139                         </arity>
 140                     </context>
 141                 </action>
 142                 <action name="compile.single">
 143                     <target>compile-single</target>
 144                     <property name="module.name">jdk.javadoc</property>
 145                     <context>
 146                         <property>includes</property>
 147                         <folder>${root}/src/jdk.javadoc/share/classes</folder>
 148                         <pattern>\.java$</pattern>
 149                         <format>relative-path</format>
 150                         <arity>
 151                             <separated-files>,</separated-files>
 152                         </arity>
 153                     </context>
 154                 </action>
 155                 <action name="run">
 156                     <target>run</target>
 157                 </action>
 158                 <action name="run.single">
 159                     <target>run-single</target>
 160                     <context>
 161                         <property>run.classname</property>
 162                         <folder>${root}/src/jdk.base/share/classes</folder>
 163                         <pattern>\.java$</pattern>
 164                         <format>java-name</format>
 165                         <arity>
 166                             <one-file-only/>
 167                         </arity>
 168                     </context>
 169                 </action>
 170                 <action name="run.single">
 171                     <target>run-single</target>
 172                     <context>
 173                         <property>run.classname</property>
 174                         <folder>${root}/src/java.compiler/share/classes</folder>
 175                         <pattern>\.java$</pattern>
 176                         <format>java-name</format>
 177                         <arity>
 178                             <one-file-only/>
 179                         </arity>
 180                     </context>
 181                 </action>
 182                 <action name="run.single">
 183                     <target>run-single</target>
 184                     <context>
 185                         <property>run.classname</property>
 186                         <folder>${root}/src/jdk.compiler/share/classes</folder>
 187                         <pattern>\.java$</pattern>
 188                         <format>java-name</format>
 189                         <arity>
 190                             <one-file-only/>
 191                         </arity>
 192                     </context>
 193                 </action>
 194                 <action name="run.single">
 195                     <target>run-single</target>
 196                     <context>
 197                         <property>run.classname</property>
 198                         <folder>${root}/src/jdk.dev/share/classes</folder>
 199                         <pattern>\.java$</pattern>
 200                         <format>java-name</format>
 201                         <arity>
 202                             <one-file-only/>
 203                         </arity>
 204                     </context>
 205                 </action>
 206                 <action name="run.single">
 207                     <target>run-single</target>
 208                     <context>
 209                         <property>run.classname</property>
 210                         <folder>${root}/src/jdk.javadoc/share/classes</folder>
 211                         <pattern>\.java$</pattern>
 212                         <format>java-name</format>
 213                         <arity>
 214                             <one-file-only/>
 215                         </arity>
 216                     </context>
 217                 </action>
 218                 <!--
 219  Note: NetBeans does not appear to support context menu items
 220  on shell scripts :-(
 221 -->
 222                 <action name="run.single">
 223                     <target>jtreg</target>
 224                     <context>
 225                         <property>jtreg.tests</property>
 226                         <folder>${root}/test</folder>
 227                         <pattern>\.(java|sh)$</pattern>
 228                         <format>relative-path</format>
 229                         <arity>
 230                             <separated-files> </separated-files>
 231                         </arity>
 232                     </context>
 233                 </action>
 234                 <action name="test">
 235                     <target>jtreg</target>
 236                 </action>
 237                 <action name="debug">
 238                     <target>debug</target>
 239                 </action>
 240                 <action name="debug.single">
 241                     <target>debug-single</target>
 242                     <context>
 243                         <property>debug.classname</property>
 244                         <folder>${root}/src/java.compiler/share/classes</folder>
 245                         <pattern>\.java$</pattern>
 246                         <format>java-name</format>
 247                         <arity>
 248                             <one-file-only/>
 249                         </arity>
 250                     </context>
 251                 </action>
 252                 <action name="debug.single">
 253                     <target>debug-single</target>
 254                     <context>
 255                         <property>debug.classname</property>
 256                         <folder>${root}/src/jdk.compiler/share/classes</folder>
 257                         <pattern>\.java$</pattern>
 258                         <format>java-name</format>
 259                         <arity>
 260                             <one-file-only/>
 261                         </arity>
 262                     </context>
 263                 </action>
 264                 <action name="debug.single">
 265                     <target>debug-single</target>
 266                     <context>
 267                         <property>debug.classname</property>
 268                         <folder>${root}/src/jdk.dev/share/classes</folder>
 269                         <pattern>\.java$</pattern>
 270                         <format>java-name</format>
 271                         <arity>
 272                             <one-file-only/>
 273                         </arity>
 274                     </context>
 275                 </action>
 276                 <action name="debug.single">
 277                     <target>debug-single</target>
 278                     <context>
 279                         <property>debug.classname</property>
 280                         <folder>${root}/src/jdk.javadoc/share/classes</folder>
 281                         <pattern>\.java$</pattern>
 282                         <format>java-name</format>
 283                         <arity>
 284                             <one-file-only/>
 285                         </arity>
 286                     </context>
 287                 </action>
 288                 <!--
 289  Note: NetBeans does not appear to support context menu items
 290  on shell scripts :-(
 291 -->
 292                 <action name="debug.single">
 293                     <target>debug-jtreg</target>
 294                     <context>
 295                         <property>jtreg.tests</property>
 296                         <folder>${root}/test</folder>
 297                         <pattern>\.(java|sh)$</pattern>
 298                         <format>relative-path</format>
 299                         <arity>
 300                             <one-file-only/>
 301                         </arity>
 302                     </context>
 303                 </action>
 304                 <action name="debug.fix">
 305                     <target>debug-fix</target>
 306                     <property name="module.name">java.compiler</property>
 307                     <context>
 308                         <property>class</property>
 309                         <folder>${root}/src/java.compiler/share/classes</folder>
 310                         <pattern>\.java$</pattern>
 311                         <format>relative-path-noext</format>
 312                         <arity>
 313                             <one-file-only/>
 314                         </arity>
 315                     </context>
 316                 </action>
 317                 <action name="debug.fix">
 318                     <target>debug-fix</target>
 319                     <property name="module.name">jdk.compiler</property>
 320                     <context>
 321                         <property>class</property>
 322                         <folder>${root}/src/jdk.compiler/share/classes</folder>
 323                         <pattern>\.java$</pattern>
 324                         <format>relative-path-noext</format>
 325                         <arity>
 326                             <one-file-only/>
 327                         </arity>
 328                     </context>
 329                 </action>
 330                 <action name="debug.fix">
 331                     <target>debug-fix</target>
 332                     <property name="module.name">jdk.dev</property>
 333                     <context>
 334                         <property>class</property>
 335                         <folder>${root}/src/jdk.dev/share/classes</folder>
 336                         <pattern>\.java$</pattern>
 337                         <format>relative-path-noext</format>
 338                         <arity>
 339                             <one-file-only/>
 340                         </arity>
 341                     </context>
 342                 </action>
 343                 <action name="debug.fix">
 344                     <target>debug-fix</target>
 345                     <property name="module.name">jdk.javadoc</property>
 346                     <context>
 347                         <property>class</property>
 348                         <folder>${root}/src/jdk.javadoc/share/classes</folder>
 349                         <pattern>\.java$</pattern>
 350                         <format>relative-path-noext</format>
 351                         <arity>
 352                             <one-file-only/>
 353                         </arity>
 354                     </context>
 355                 </action>
 356                 <action name="javadoc">
 357                     <target>javadoc</target>
 358                 </action>
 359                 <action name="select-tool">
 360                     <target>select-tool</target>
 361                 </action>
 362                 <action name="test-select-tool-1">
 363                     <target>test-select-tool-1</target>
 364                 </action>
 365                 <action name="test-select-tool-2">
 366                     <target>test-select-tool-2</target>
 367                 </action>
 368             </ide-actions>
 369             <export>
 370                 <type>folder</type>
 371                 <location>${root}/build/classes</location>
 372                 <build-target>build</build-target>
 373             </export>
 374             <view>
 375                 <items>
 376                     <source-folder style="tree">
 377                         <label>Source files - java.compiler</label>
 378                         <location>${root}/src/java.compiler/share/classes</location>
 379                     </source-folder>
 380                     <source-folder style="tree">
 381                         <label>Source files - jdk.compiler</label>
 382                         <location>${root}/src/jdk.compiler/share/classes</location>
 383                     </source-folder>
 384                     <source-folder style="tree">
 385                         <label>Source files - jdk.dev</label>
 386                         <location>${root}/src/jdk.dev/share/classes</location>
 387                     </source-folder>
 388                     <source-folder style="tree">
 389                         <label>Source files - jdk.javadoc</label>
 390                         <location>${root}/src/jdk.javadoc/share/classes</location>
 391                     </source-folder>
 392                     <source-folder style="tree">
 393                         <label>Test files</label>
 394                         <location>${root}/test</location>
 395                     </source-folder>
 396                     <source-folder style="tree">
 397                         <label>Build files</label>
 398                         <location>${root}/make</location>
 399                     </source-folder>
 400                     <source-file>
 401                         <label>README</label>
 402                         <location>README</location>
 403                     </source-file>
 404                 </items>
 405                 <context-menu>
 406                     <!--
 407  This section defines the actions that will appear on the project's context
 408  menu, in the Projects viewer.
 409 
 410  For information on these actions, see
 411    - NetBeans: Setting Up Projects
 412      at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html
 413    - NetBeans: Advanced Freeform Project Configuration
 414      at http://www.netbeans.org/kb/41/freeform-config.html
 415 -->
 416                     <ide-action name="select-tool"/>
 417                     <separator/>
 418                     <ide-action name="build"/>
 419                     <ide-action name="rebuild"/>
 420                     <ide-action name="clean"/>
 421                     <ide-action name="javadoc"/>
 422                     <separator/>
 423                     <ide-action name="run"/>
 424                     <ide-action name="debug"/>
 425                     <separator/>
 426                     <ide-action name="test"/>
 427                 </context-menu>
 428             </view>
 429             <subprojects/>
 430         </general-data>
 431         <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/4">
 432             <compilation-unit>
 433                 <package-root>${root}/src/java.compiler/share/classes</package-root>
 434                 <package-root>${root}/build/bootstrap/java.compiler/gensrc</package-root>
 435                 <built-to>${root}/build/java.compiler/classes</built-to>
 436                 <source-level>1.8</source-level>
 437             </compilation-unit>
 438             <compilation-unit>
 439                 <package-root>${root}/src/jdk.compiler/share/classes</package-root>
 440                 <package-root>${root}/build/bootstrap/jdk.compiler/gensrc</package-root>
 441                 <classpath mode="compile">${root}/build/java.compiler/classes</classpath>
 442                 <built-to>${root}/build/jdk.compiler/classes</built-to>
 443                 <source-level>1.8</source-level>
 444             </compilation-unit>
 445             <compilation-unit>
 446                 <package-root>${root}/src/jdk.dev/share/classes</package-root>
 447                 <package-root>${root}/build/bootstrap/jdk.dev/gensrc</package-root>
 448                 <classpath mode="compile">${root}/build/java.compiler/classes:${root}/build/jdk.compiler/classes</classpath>
 449                 <built-to>${root}/build/jdk.dev/classes</built-to>
 450                 <source-level>1.8</source-level>
 451             </compilation-unit>
 452             <compilation-unit>
 453                 <package-root>${root}/src/jdk.javadoc/share/classes</package-root>
 454                 <package-root>${root}/build/bootstrap/jdk.javadoc/gensrc</package-root>
 455                 <classpath mode="compile">${root}/build/java.compiler/classes:${root}/build/jdk.compiler/classes</classpath>
 456                 <built-to>${root}/build/jdk.javadoc/classes</built-to>
 457                 <source-level>1.8</source-level>
 458             </compilation-unit>
 459         </java-data>
 460     </configuration>
 461 </project>