project.xml revision 2571:10fc81ac75b4
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.base</label>
61                    <type>java</type>
62                    <location>${root}/src/java.base/share/classes</location>
63                </source-folder>
64                <source-folder>
65                    <label>Source files - java.compiler</label>
66                    <type>java</type>
67                    <location>${root}/src/java.compiler/share/classes</location>
68                </source-folder>
69                <source-folder>
70                    <label>Source files - jdk.compiler</label>
71                    <type>java</type>
72                    <location>${root}/src/jdk.compiler/share/classes</location>
73                </source-folder>
74                <source-folder>
75                    <label>Source files - jdk.dev</label>
76                    <type>java</type>
77                    <location>${root}/src/jdk.dev/share/classes</location>
78                </source-folder>
79                <source-folder>
80                    <label>Source files - jdk.javadoc</label>
81                    <type>java</type>
82                    <location>${root}/src/jdk.javadoc/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="srcdir">src/java.base/share/classes</property>
111                    <context>
112                        <property>includes</property>
113                        <folder>${root}/src/java.base/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="srcdir">src/java.compiler/share/classes</property>
124                    <context>
125                        <property>includes</property>
126                        <folder>${root}/src/java.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="srcdir">src/jdk.compiler/share/classes</property>
137                    <context>
138                        <property>includes</property>
139                        <folder>${root}/src/jdk.compiler/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="srcdir">src/jdk.dev/share/classes</property>
150                    <context>
151                        <property>includes</property>
152                        <folder>${root}/src/jdk.dev/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="srcdir">src/jdk.javadoc/share/classes</property>
163                    <context>
164                        <property>includes</property>
165                        <folder>${root}/src/jdk.javadoc/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.dev/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                <!--
237 Note: NetBeans does not appear to support context menu items
238 on shell scripts :-(
239-->
240                <action name="run.single">
241                    <target>jtreg</target>
242                    <context>
243                        <property>jtreg.tests</property>
244                        <folder>${root}/test</folder>
245                        <pattern>\.(java|sh)$</pattern>
246                        <format>relative-path</format>
247                        <arity>
248                            <separated-files> </separated-files>
249                        </arity>
250                    </context>
251                </action>
252                <action name="test">
253                    <target>jtreg</target>
254                </action>
255                <action name="debug">
256                    <target>debug</target>
257                </action>
258                <action name="debug.single">
259                    <target>debug-single</target>
260                    <context>
261                        <property>debug.classname</property>
262                        <folder>${root}/src/java.base/share/classes</folder>
263                        <pattern>\.java$</pattern>
264                        <format>java-name</format>
265                        <arity>
266                            <one-file-only/>
267                        </arity>
268                    </context>
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.dev/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                <!--
319 Note: NetBeans does not appear to support context menu items
320 on shell scripts :-(
321-->
322                <action name="debug.single">
323                    <target>debug-jtreg</target>
324                    <context>
325                        <property>jtreg.tests</property>
326                        <folder>${root}/test</folder>
327                        <pattern>\.(java|sh)$</pattern>
328                        <format>relative-path</format>
329                        <arity>
330                            <one-file-only/>
331                        </arity>
332                    </context>
333                </action>
334                <action name="debug.fix">
335                    <target>debug-fix</target>
336                    <property name="srcdir">src/java.base/share/classes</property>
337                    <context>
338                        <property>class</property>
339                        <folder>${root}/src/java.base/share/classes</folder>
340                        <pattern>\.java$</pattern>
341                        <format>relative-path-noext</format>
342                        <arity>
343                            <one-file-only/>
344                        </arity>
345                    </context>
346                </action>
347                <action name="debug.fix">
348                    <target>debug-fix</target>
349                    <property name="srcdir">src/java.compiler/share/classes</property>
350                    <context>
351                        <property>class</property>
352                        <folder>${root}/src/java.compiler/share/classes</folder>
353                        <pattern>\.java$</pattern>
354                        <format>relative-path-noext</format>
355                        <arity>
356                            <one-file-only/>
357                        </arity>
358                    </context>
359                </action>
360                <action name="debug.fix">
361                    <target>debug-fix</target>
362                    <property name="srcdir">src/jdk.compiler/share/classes</property>
363                    <context>
364                        <property>class</property>
365                        <folder>${root}/src/jdk.compiler/share/classes</folder>
366                        <pattern>\.java$</pattern>
367                        <format>relative-path-noext</format>
368                        <arity>
369                            <one-file-only/>
370                        </arity>
371                    </context>
372                </action>
373                <action name="debug.fix">
374                    <target>debug-fix</target>
375                    <property name="srcdir">src/jdk.dev/share/classes</property>
376                    <context>
377                        <property>class</property>
378                        <folder>${root}/src/jdk.dev/share/classes</folder>
379                        <pattern>\.java$</pattern>
380                        <format>relative-path-noext</format>
381                        <arity>
382                            <one-file-only/>
383                        </arity>
384                    </context>
385                </action>
386                <action name="debug.fix">
387                    <target>debug-fix</target>
388                    <property name="srcdir">src/jdk.dev/share/classes</property>
389                    <context>
390                        <property>class</property>
391                        <folder>${root}/src/jdk.javadoc/share/classes</folder>
392                        <pattern>\.java$</pattern>
393                        <format>relative-path-noext</format>
394                        <arity>
395                            <one-file-only/>
396                        </arity>
397                    </context>
398                </action>
399                <action name="javadoc">
400                    <target>javadoc</target>
401                </action>
402                <action name="select-tool">
403                    <target>select-tool</target>
404                </action>
405                <action name="test-select-tool-1">
406                    <target>test-select-tool-1</target>
407                </action>
408                <action name="test-select-tool-2">
409                    <target>test-select-tool-2</target>
410                </action>
411            </ide-actions>
412            <export>
413                <type>folder</type>
414                <location>${root}/build/classes</location>
415                <build-target>build</build-target>
416            </export>
417            <view>
418                <items>
419                    <source-folder style="tree">
420                        <label>Source files - java.base</label>
421                        <location>${root}/src/java.base/share/classes</location>
422                    </source-folder>
423                    <source-folder style="tree">
424                        <label>Source files - java.compiler</label>
425                        <location>${root}/src/java.compiler/share/classes</location>
426                    </source-folder>
427                    <source-folder style="tree">
428                        <label>Source files - jdk.compiler</label>
429                        <location>${root}/src/jdk.compiler/share/classes</location>
430                    </source-folder>
431                    <source-folder style="tree">
432                        <label>Source files - jdk.dev</label>
433                        <location>${root}/src/jdk.dev/share/classes</location>
434                    </source-folder>
435                    <source-folder style="tree">
436                        <label>Source files - jdk.javadoc</label>
437                        <location>${root}/src/jdk.javadoc/share/classes</location>
438                    </source-folder>
439                    <source-folder style="tree">
440                        <label>Test files</label>
441                        <location>${root}/test</location>
442                    </source-folder>
443                    <source-folder style="tree">
444                        <label>Build files</label>
445                        <location>${root}/make</location>
446                    </source-folder>
447                    <source-file>
448                        <label>README</label>
449                        <location>README</location>
450                    </source-file>
451                </items>
452                <context-menu>
453                    <!--
454 This section defines the actions that will appear on the project's context
455 menu, in the Projects viewer.
456
457 For information on these actions, see
458   - NetBeans: Setting Up Projects
459     at http://www.netbeans.org/kb/55/using-netbeans/project_setup.html
460   - NetBeans: Advanced Freeform Project Configuration
461     at http://www.netbeans.org/kb/41/freeform-config.html
462-->
463                    <ide-action name="select-tool"/>
464                    <separator/>
465                    <ide-action name="build"/>
466                    <ide-action name="rebuild"/>
467                    <ide-action name="clean"/>
468                    <ide-action name="javadoc"/>
469                    <separator/>
470                    <ide-action name="run"/>
471                    <ide-action name="debug"/>
472                    <separator/>
473                    <ide-action name="test"/>
474                </context-menu>
475            </view>
476            <subprojects/>
477        </general-data>
478        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/4">
479            <compilation-unit>
480                <package-root>${root}/src/java.base/share/classes</package-root>
481                <package-root>${root}/src/java.compiler/share/classes</package-root>
482                <package-root>${root}/src/jdk.compiler/share/classes</package-root>
483                <package-root>${root}/src/jdk.dev/share/classes</package-root>
484                <package-root>${root}/src/jdk.javadoc/share/classes</package-root>
485                <built-to>${root}/build/classes</built-to>
486                <source-level>1.8</source-level>
487            </compilation-unit>
488        </java-data>
489    </configuration>
490</project>
491