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