Adding ability to run (custom) tests.
1 This module is part of NetBeans and is open-source.
3 LICENSE: The Common Development and Distribution License
4 (CDDL), Version 1.0 or the GNU General Public License
5 (GPL) with "CLASSPATH" EXCEPTION govern your use of:
6 NetBeans software. NetBeans software also makes use of
7 additional libraries made available for use and distribution
8 by other parties, including open-source projects.
10 ------------------------------------------------------------
14 COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
18 1.1. "Contributor" means each individual or entity that
19 creates or contributes to the creation of Modifications.
21 1.2. "Contributor Version" means the combination of the
22 Original Software, prior Modifications used by a
23 Contributor (if any), and the Modifications made by that
24 particular Contributor.
26 1.3. "Covered Software" means (a) the Original Software, or
27 (b) Modifications, or (c) the combination of files
28 containing Original Software with files containing
29 Modifications, in each case including portions thereof.
31 1.4. "Executable" means the Covered Software in any form
32 other than Source Code.
34 1.5. "Initial Developer" means the individual or entity
35 that first makes Original Software available under this
38 1.6. "Larger Work" means a work which combines Covered
39 Software or portions thereof with code not governed by the
40 terms of this License.
42 1.7. "License" means this document.
44 1.8. "Licensable" means having the right to grant, to the
45 maximum extent possible, whether at the time of the initial
46 grant or subsequently acquired, any and all of the rights
49 1.9. "Modifications" means the Source Code and Executable
50 form of any of the following:
52 A. Any file that results from an addition to,
53 deletion from or modification of the contents of a
54 file containing Original Software or previous
57 B. Any new file that contains any part of the
58 Original Software or previous Modification; or
60 C. Any new file that is contributed or otherwise made
61 available under the terms of this License.
63 1.10. "Original Software" means the Source Code and
64 Executable form of computer software code that is
65 originally released under this License.
67 1.11. "Patent Claims" means any patent claim(s), now owned
68 or hereafter acquired, including without limitation,
69 method, process, and apparatus claims, in any patent
70 Licensable by grantor.
72 1.12. "Source Code" means (a) the common form of computer
73 software code in which modifications are made and (b)
74 associated documentation included in or with such code.
76 1.13. "You" (or "Your") means an individual or a legal
77 entity exercising rights under, and complying with all of
78 the terms of, this License. For legal entities, "You"
79 includes any entity which controls, is controlled by, or is
80 under common control with You. For purposes of this
81 definition, "control" means (a) the power, direct or
82 indirect, to cause the direction or management of such
83 entity, whether by contract or otherwise, or (b) ownership
84 of more than fifty percent (50%) of the outstanding shares
85 or beneficial ownership of such entity.
89 2.1. The Initial Developer Grant.
91 Conditioned upon Your compliance with Section 3.1 below and
92 subject to third party intellectual property claims, the
93 Initial Developer hereby grants You a world-wide,
94 royalty-free, non-exclusive license:
96 (a) under intellectual property rights (other than
97 patent or trademark) Licensable by Initial Developer,
98 to use, reproduce, modify, display, perform,
99 sublicense and distribute the Original Software (or
100 portions thereof), with or without Modifications,
101 and/or as part of a Larger Work; and
103 (b) under Patent Claims infringed by the making,
104 using or selling of Original Software, to make, have
105 made, use, practice, sell, and offer for sale, and/or
106 otherwise dispose of the Original Software (or
109 (c) The licenses granted in Sections 2.1(a) and (b)
110 are effective on the date Initial Developer first
111 distributes or otherwise makes the Original Software
112 available to a third party under the terms of this
115 (d) Notwithstanding Section 2.1(b) above, no patent
116 license is granted: (1) for code that You delete from
117 the Original Software, or (2) for infringements
118 caused by: (i) the modification of the Original
119 Software, or (ii) the combination of the Original
120 Software with other software or devices.
122 2.2. Contributor Grant.
124 Conditioned upon Your compliance with Section 3.1 below and
125 subject to third party intellectual property claims, each
126 Contributor hereby grants You a world-wide, royalty-free,
127 non-exclusive license:
129 (a) under intellectual property rights (other than
130 patent or trademark) Licensable by Contributor to
131 use, reproduce, modify, display, perform, sublicense
132 and distribute the Modifications created by such
133 Contributor (or portions thereof), either on an
134 unmodified basis, with other Modifications, as
135 Covered Software and/or as part of a Larger Work; and
137 (b) under Patent Claims infringed by the making,
138 using, or selling of Modifications made by that
139 Contributor either alone and/or in combination with
140 its Contributor Version (or portions of such
141 combination), to make, use, sell, offer for sale,
142 have made, and/or otherwise dispose of: (1)
143 Modifications made by that Contributor (or portions
144 thereof); and (2) the combination of Modifications
145 made by that Contributor with its Contributor Version
146 (or portions of such combination).
148 (c) The licenses granted in Sections 2.2(a) and
149 2.2(b) are effective on the date Contributor first
150 distributes or otherwise makes the Modifications
151 available to a third party.
153 (d) Notwithstanding Section 2.2(b) above, no patent
154 license is granted: (1) for any code that Contributor
155 has deleted from the Contributor Version; (2) for
156 infringements caused by: (i) third party
157 modifications of Contributor Version, or (ii) the
158 combination of Modifications made by that Contributor
159 with other software (except as part of the
160 Contributor Version) or other devices; or (3) under
161 Patent Claims infringed by Covered Software in the
162 absence of Modifications made by that Contributor.
164 3. Distribution Obligations.
166 3.1. Availability of Source Code.
168 Any Covered Software that You distribute or otherwise make
169 available in Executable form must also be made available in
170 Source Code form and that Source Code form must be
171 distributed only under the terms of this License. You must
172 include a copy of this License with every copy of the
173 Source Code form of the Covered Software You distribute or
174 otherwise make available. You must inform recipients of any
175 such Covered Software in Executable form as to how they can
176 obtain such Covered Software in Source Code form in a
177 reasonable manner on or through a medium customarily used
178 for software exchange.
182 The Modifications that You create or to which You
183 contribute are governed by the terms of this License. You
184 represent that You believe Your Modifications are Your
185 original creation(s) and/or You have sufficient rights to
186 grant the rights conveyed by this License.
188 3.3. Required Notices.
190 You must include a notice in each of Your Modifications
191 that identifies You as the Contributor of the Modification.
192 You may not remove or alter any copyright, patent or
193 trademark notices contained within the Covered Software, or
194 any notices of licensing or any descriptive text giving
195 attribution to any Contributor or the Initial Developer.
197 3.4. Application of Additional Terms.
199 You may not offer or impose any terms on any Covered
200 Software in Source Code form that alters or restricts the
201 applicable version of this License or the recipients'
202 rights hereunder. You may choose to offer, and to charge a
203 fee for, warranty, support, indemnity or liability
204 obligations to one or more recipients of Covered Software.
205 However, you may do so only on Your own behalf, and not on
206 behalf of the Initial Developer or any Contributor. You
207 must make it absolutely clear that any such warranty,
208 support, indemnity or liability obligation is offered by
209 You alone, and You hereby agree to indemnify the Initial
210 Developer and every Contributor for any liability incurred
211 by the Initial Developer or such Contributor as a result of
212 warranty, support, indemnity or liability terms You offer.
214 3.5. Distribution of Executable Versions.
216 You may distribute the Executable form of the Covered
217 Software under the terms of this License or under the terms
218 of a license of Your choice, which may contain terms
219 different from this License, provided that You are in
220 compliance with the terms of this License and that the
221 license for the Executable form does not attempt to limit
222 or alter the recipient's rights in the Source Code form
223 from the rights set forth in this License. If You
224 distribute the Covered Software in Executable form under a
225 different license, You must make it absolutely clear that
226 any terms which differ from this License are offered by You
227 alone, not by the Initial Developer or Contributor. You
228 hereby agree to indemnify the Initial Developer and every
229 Contributor for any liability incurred by the Initial
230 Developer or such Contributor as a result of any such terms
235 You may create a Larger Work by combining Covered Software
236 with other code not governed by the terms of this License
237 and distribute the Larger Work as a single product. In such
238 a case, You must make sure the requirements of this License
239 are fulfilled for the Covered Software.
241 4. Versions of the License.
245 Sun Microsystems, Inc. is the initial license steward and
246 may publish revised and/or new versions of this License
247 from time to time. Each version will be given a
248 distinguishing version number. Except as provided in
249 Section 4.3, no one other than the license steward has the
250 right to modify this License.
252 4.2. Effect of New Versions.
254 You may always continue to use, distribute or otherwise
255 make the Covered Software available under the terms of the
256 version of the License under which You originally received
257 the Covered Software. If the Initial Developer includes a
258 notice in the Original Software prohibiting it from being
259 distributed or otherwise made available under any
260 subsequent version of the License, You must distribute and
261 make the Covered Software available under the terms of the
262 version of the License under which You originally received
263 the Covered Software. Otherwise, You may also choose to
264 use, distribute or otherwise make the Covered Software
265 available under the terms of any subsequent version of the
266 License published by the license steward.
268 4.3. Modified Versions.
270 When You are an Initial Developer and You want to create a
271 new license for Your Original Software, You may create and
272 use a modified version of this License if You: (a) rename
273 the license and remove any references to the name of the
274 license steward (except to note that the license differs
275 from this License); and (b) otherwise make it clear that
276 the license contains terms which differ from this License.
278 5. DISCLAIMER OF WARRANTY.
280 COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS"
281 BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
282 INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED
283 SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR
284 PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND
285 PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY
286 COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE
287 INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF
288 ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF
289 WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
290 ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS
295 6.1. This License and the rights granted hereunder will
296 terminate automatically if You fail to comply with terms
297 herein and fail to cure such breach within 30 days of
298 becoming aware of the breach. Provisions which, by their
299 nature, must remain in effect beyond the termination of
300 this License shall survive.
302 6.2. If You assert a patent infringement claim (excluding
303 declaratory judgment actions) against Initial Developer or
304 a Contributor (the Initial Developer or Contributor against
305 whom You assert such claim is referred to as "Participant")
306 alleging that the Participant Software (meaning the
307 Contributor Version where the Participant is a Contributor
308 or the Original Software where the Participant is the
309 Initial Developer) directly or indirectly infringes any
310 patent, then any and all rights granted directly or
311 indirectly to You by such Participant, the Initial
312 Developer (if the Initial Developer is not the Participant)
313 and all Contributors under Sections 2.1 and/or 2.2 of this
314 License shall, upon 60 days notice from Participant
315 terminate prospectively and automatically at the expiration
316 of such 60 day notice period, unless if within such 60 day
317 period You withdraw Your claim with respect to the
318 Participant Software against such Participant either
319 unilaterally or pursuant to a written agreement with
322 6.3. If You assert a patent infringement claim against
323 Participant alleging that the Participant Software directly
324 or indirectly infringes any patent where such claim is
325 resolved (such as by license or settlement) prior to the
326 initiation of patent infringement litigation, then the
327 reasonable value of the licenses granted by such Participant
328 under Sections 2.1 or 2.2 shall be taken into account in
329 determining the amount or value of any payment or license.
331 6.4. In the event of termination under Sections 6.1 or 6.2
332 above, all end user licenses that have been validly granted
333 by You or any distributor hereunder prior to termination
334 (excluding licenses granted to You by any distributor)
335 shall survive termination.
337 7. LIMITATION OF LIABILITY.
339 UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
340 (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
341 INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
342 COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE
343 LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
344 CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
345 LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK
346 STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
347 COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
348 INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
349 LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL
350 INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT
351 APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO
352 NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR
353 CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT
356 8. U.S. GOVERNMENT END USERS.
358 The Covered Software is a "commercial item," as that term is
359 defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial
360 computer software" (as that term is defined at 48 C.F.R.
361 ยง 252.227-7014(a)(1)) and "commercial computer software
362 documentation" as such terms are used in 48 C.F.R. 12.212 (Sept.
363 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1
364 through 227.7202-4 (June 1995), all U.S. Government End Users
365 acquire Covered Software with only those rights set forth herein.
366 This U.S. Government Rights clause is in lieu of, and supersedes,
367 any other FAR, DFAR, or other clause or provision that addresses
368 Government rights in computer software under this License.
372 This License represents the complete agreement concerning subject
373 matter hereof. If any provision of this License is held to be
374 unenforceable, such provision shall be reformed only to the
375 extent necessary to make it enforceable. This License shall be
376 governed by the law of the jurisdiction specified in a notice
377 contained within the Original Software (except to the extent
378 applicable law, if any, provides otherwise), excluding such
379 jurisdiction's conflict-of-law provisions. Any litigation
380 relating to this License shall be subject to the jurisdiction of
381 the courts located in the jurisdiction and venue specified in a
382 notice contained within the Original Software, with the losing
383 party responsible for costs, including, without limitation, court
384 costs and reasonable attorneys' fees and expenses. The
385 application of the United Nations Convention on Contracts for the
386 International Sale of Goods is expressly excluded. Any law or
387 regulation which provides that the language of a contract shall
388 be construed against the drafter shall not apply to this License.
389 You agree that You alone are responsible for compliance with the
390 United States export administration regulations (and the export
391 control laws and regulation of any other countries) when You use,
392 distribute or otherwise make available any Covered Software.
394 10. RESPONSIBILITY FOR CLAIMS.
396 As between Initial Developer and the Contributors, each party is
397 responsible for claims and damages arising, directly or
398 indirectly, out of its utilization of rights under this License
399 and You agree to work with Initial Developer and Contributors to
400 distribute such responsibility on an equitable basis. Nothing
401 herein is intended or shall be deemed to constitute any admission
404 NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND
405 DISTRIBUTION LICENSE (CDDL)
407 The code released under the CDDL shall be governed by the laws
408 of the State of California (excluding conflict-of-law provisions).
409 Any litigation relating to this License shall be subject to the
410 jurisdiction of the Federal Courts of the Northern District of
411 California and the state courts of the State of California, with
412 venue lying in Santa Clara County, California.
415 The GNU General Public License (GPL)
418 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
419 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
420 Everyone is permitted to copy and distribute verbatim
421 copies of this license document, but changing it is not
426 The licenses for most software are designed to take away
427 your freedom to share and change it. By contrast, the GNU
428 General Public License is intended to guarantee your freedom
429 to share and change free software--to make sure the software
430 is free for all its users. This General Public License
431 applies to most of the Free Software Foundation's software
432 and to any other program whose authors commit to using it.
433 (Some other Free Software Foundation software is covered by
434 the GNU Library General Public License instead.) You can
435 apply it to your programs, too.
437 When we speak of free software, we are referring to freedom,
438 not price. Our General Public Licenses are designed to make
439 sure that you have the freedom to distribute copies of free
440 software (and charge for this service if you wish), that you
441 receive source code or can get it if you want it, that you
442 can change the software or use pieces of it in new free
443 programs; and that you know you can do these things.
445 To protect your rights, we need to make restrictions that
446 forbid anyone to deny you these rights or to ask you to
447 surrender the rights. These restrictions translate to
448 certain responsibilities for you if you distribute copies of
449 the software, or if you modify it.
451 For example, if you distribute copies of such a program,
452 whether gratis or for a fee, you must give the recipients
453 all the rights that you have. You must make sure that they,
454 too, receive or can get the source code. And you must show
455 them these terms so they know their rights.
457 We protect your rights with two steps: (1) copyright the
458 software, and (2) offer you this license which gives you
459 legal permission to copy, distribute and/or modify the
462 Also, for each author's protection and ours, we want to make
463 certain that everyone understands that there is no warranty
464 for this free software. If the software is modified by
465 someone else and passed on, we want its recipients to know
466 that what they have is not the original, so that any
467 problems introduced by others will not reflect on the
468 original authors' reputations.
470 Finally, any free program is threatened constantly by
471 software patents. We wish to avoid the danger that
472 redistributors of a free program will individually obtain
473 patent licenses, in effect making the program proprietary.
474 To prevent this, we have made it clear that any patent must
475 be licensed for everyone's free use or not licensed at all.
477 The precise terms and conditions for copying, distribution
478 and modification follow.
480 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND
483 0. This License applies to any program or other work which
484 contains a notice placed by the copyright holder saying it
485 may be distributed under the terms of this General Public
486 License. The "Program", below, refers to any such program or
487 work, and a "work based on the Program" means either the
488 Program or any derivative work under copyright law: that is
489 to say, a work containing the Program or a portion of it,
490 either verbatim or with modifications and/or translated into
491 another language. (Hereinafter, translation is included
492 without limitation in the term "modification".) Each
493 licensee is addressed as "you".
495 Activities other than copying, distribution and modification
496 are not covered by this License; they are outside its scope.
497 The act of running the Program is not restricted, and the
498 output from the Program is covered only if its contents
499 constitute a work based on the Program (independent of
500 having been made by running the Program). Whether that is
501 true depends on what the Program does.
503 1. You may copy and distribute verbatim copies of the
504 Program's source code as you receive it, in any medium,
505 provided that you conspicuously and appropriately publish on
506 each copy an appropriate copyright notice and disclaimer of
507 warranty; keep intact all the notices that refer to this
508 License and to the absence of any warranty; and give any
509 other recipients of the Program a copy of this License along
512 You may charge a fee for the physical act of transferring a
513 copy, and you may at your option offer warranty protection
514 in exchange for a fee.
516 2. You may modify your copy or copies of the Program or any
517 portion of it, thus forming a work based on the Program, and
518 copy and distribute such modifications or work under the
519 terms of Section 1 above, provided that you also meet all of
522 a) You must cause the modified files to carry prominent
523 notices stating that you changed the files and the date
526 b) You must cause any work that you distribute or
527 publish, that in whole or in part contains or is derived
528 from the Program or any part thereof, to be licensed as
529 a whole at no charge to all third parties under the
530 terms of this License.
532 c) If the modified program normally reads commands
533 interactively when run, you must cause it, when started
534 running for such interactive use in the most ordinary
535 way, to print or display an announcement including an
536 appropriate copyright notice and a notice that there is
537 no warranty (or else, saying that you provide a
538 warranty) and that users may redistribute the program
539 under these conditions, and telling the user how to view
540 a copy of this License. (Exception: if the Program
541 itself is interactive but does not normally print such
542 an announcement, your work based on the Program is not
543 required to print an announcement.)
545 These requirements apply to the modified work as a whole. If
546 identifiable sections of that work are not derived from the
547 Program, and can be reasonably considered independent and
548 separate works in themselves, then this License, and its
549 terms, do not apply to those sections when you distribute
550 them as separate works. But when you distribute the same
551 sections as part of a whole which is a work based on the
552 Program, the distribution of the whole must be on the terms
553 of this License, whose permissions for other licensees
554 extend to the entire whole, and thus to each and every part
555 regardless of who wrote it.
557 Thus, it is not the intent of this section to claim rights
558 or contest your rights to work written entirely by you;
559 rather, the intent is to exercise the right to control the
560 distribution of derivative or collective works based on the
563 In addition, mere aggregation of another work not based on
564 the Program with the Program (or with a work based on the
565 Program) on a volume of a storage or distribution medium
566 does not bring the other work under the scope of this
569 3. You may copy and distribute the Program (or a work based
570 on it, under Section 2) in object code or executable form
571 under the terms of Sections 1 and 2 above provided that you
572 also do one of the following:
574 a) Accompany it with the complete corresponding
575 machine-readable source code, which must be distributed
576 under the terms of Sections 1 and 2 above on a medium
577 customarily used for software interchange; or,
579 b) Accompany it with a written offer, valid for at least
580 three years, to give any third party, for a charge no
581 more than your cost of physically performing source
582 distribution, a complete machine-readable copy of the
583 corresponding source code, to be distributed under the
584 terms of Sections 1 and 2 above on a medium customarily
585 used for software interchange; or,
587 c) Accompany it with the information you received as to
588 the offer to distribute corresponding source code. (This
589 alternative is allowed only for noncommercial
590 distribution and only if you received the program in
591 object code or executable form with such an offer, in
592 accord with Subsection b above.)
594 The source code for a work means the preferred form of the
595 work for making modifications to it. For an executable work,
596 complete source code means all the source code for all
597 modules it contains, plus any associated interface
598 definition files, plus the scripts used to control
599 compilation and installation of the executable. However, as
600 a special exception, the source code distributed need not
601 include anything that is normally distributed (in either
602 source or binary form) with the major components (compiler,
603 kernel, and so on) of the operating system on which the
604 executable runs, unless that component itself accompanies
607 If distribution of executable or object code is made by
608 offering access to copy from a designated place, then
609 offering equivalent access to copy the source code from the
610 same place counts as distribution of the source code, even
611 though third parties are not compelled to copy the source
612 along with the object code.
614 4. You may not copy, modify, sublicense, or distribute the
615 Program except as expressly provided under this License. Any
616 attempt otherwise to copy, modify, sublicense or distribute
617 the Program is void, and will automatically terminate your
618 rights under this License. However, parties who have
619 received copies, or rights, from you under this License will
620 not have their licenses terminated so long as such parties
621 remain in full compliance.
623 5. You are not required to accept this License, since you
624 have not signed it. However, nothing else grants you
625 permission to modify or distribute the Program or its
626 derivative works. These actions are prohibited by law if you
627 do not accept this License. Therefore, by modifying or
628 distributing the Program (or any work based on the Program),
629 you indicate your acceptance of this License to do so, and
630 all its terms and conditions for copying, distributing or
631 modifying the Program or works based on it.
633 6. Each time you redistribute the Program (or any work based
634 on the Program), the recipient automatically receives a
635 license from the original licensor to copy, distribute or
636 modify the Program subject to these terms and conditions.
637 You may not impose any further restrictions on the
638 recipients' exercise of the rights granted herein. You are
639 not responsible for enforcing compliance by third parties to
642 7. If, as a consequence of a court judgment or allegation of
643 patent infringement or for any other reason (not limited to
644 patent issues), conditions are imposed on you (whether by
645 court order, agreement or otherwise) that contradict the
646 conditions of this License, they do not excuse you from the
647 conditions of this License. If you cannot distribute so as
648 to satisfy simultaneously your obligations under this
649 License and any other pertinent obligations, then as a
650 consequence you may not distribute the Program at all. For
651 example, if a patent license would not permit royalty-free
652 redistribution of the Program by all those who receive
653 copies directly or indirectly through you, then the only way
654 you could satisfy both it and this License would be to
655 refrain entirely from distribution of the Program.
657 If any portion of this section is held invalid or
658 unenforceable under any particular circumstance, the balance
659 of the section is intended to apply and the section as a
660 whole is intended to apply in other circumstances.
662 It is not the purpose of this section to induce you to
663 infringe any patents or other property right claims or to
664 contest validity of any such claims; this section has the
665 sole purpose of protecting the integrity of the free
666 software distribution system, which is implemented by public
667 license practices. Many people have made generous
668 contributions to the wide range of software distributed
669 through that system in reliance on consistent application of
670 that system; it is up to the author/donor to decide if he or
671 she is willing to distribute software through any other
672 system and a licensee cannot impose that choice.
674 This section is intended to make thoroughly clear what is
675 believed to be a consequence of the rest of this License.
677 8. If the distribution and/or use of the Program is
678 restricted in certain countries either by patents or by
679 copyrighted interfaces, the original copyright holder who
680 places the Program under this License may add an explicit
681 geographical distribution limitation excluding those
682 countries, so that distribution is permitted only in or
683 among countries not thus excluded. In such case, this
684 License incorporates the limitation as if written in the
685 body of this License.
687 9. The Free Software Foundation may publish revised and/or
688 new versions of the General Public License from time to
689 time. Such new versions will be similar in spirit to the
690 present version, but may differ in detail to address new
691 problems or concerns.
693 Each version is given a distinguishing version number. If
694 the Program specifies a version number of this License which
695 applies to it and "any later version", you have the option
696 of following the terms and conditions either of that version
697 or of any later version published by the Free Software
698 Foundation. If the Program does not specify a version number
699 of this License, you may choose any version ever published
700 by the Free Software Foundation.
702 10. If you wish to incorporate parts of the Program into
703 other free programs whose distribution conditions are
704 different, write to the author to ask for permission. For
705 software which is copyrighted by the Free Software
706 Foundation, write to the Free Software Foundation; we
707 sometimes make exceptions for this. Our decision will be
708 guided by the two goals of preserving the free status of all
709 derivatives of our free software and of promoting the
710 sharing and reuse of software generally.
714 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS
715 NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
716 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
717 COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM
718 "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
719 IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
720 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
721 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
722 OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
723 DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
724 REPAIR OR CORRECTION.
726 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
727 TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY
728 WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED
729 ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
730 SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF
731 THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT
732 LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
733 LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
734 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
735 HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
738 END OF TERMS AND CONDITIONS
740 How to Apply These Terms to Your New Programs
742 If you develop a new program, and you want it to be of the
743 greatest possible use to the public, the best way to achieve
744 this is to make it free software which everyone can
745 redistribute and change under these terms.
747 To do so, attach the following notices to the program. It is
748 safest to attach them to the start of each source file to
749 most effectively convey the exclusion of warranty; and each
750 file should have at least the "copyright" line and a pointer
751 to where the full notice is found.
753 One line to give the program's name and a brief idea of
754 what it does. Copyright (C) <year> <name of author>
756 This program is free software; you can redistribute it
757 and/or modify it under the terms of the GNU General
758 Public License as published by the Free Software
759 Foundation; either version 2 of the License, or (at your
760 option) any later version.
762 This program is distributed in the hope that it will be
763 useful, but WITHOUT ANY WARRANTY; without even the
764 implied warranty of MERCHANTABILITY or FITNESS FOR A
765 PARTICULAR PURPOSE. See the GNU General Public License
768 You should have received a copy of the GNU General
769 Public License along with this program; if not, write to
770 the Free Software Foundation, Inc., 59 Temple Place,
771 Suite 330, Boston, MA 02111-1307 USA
773 Also add information on how to contact you by electronic and
776 If the program is interactive, make it output a short notice
777 like this when it starts in an interactive mode:
779 Gnomovision version 69, Copyright (C) year name of
780 author Gnomovision comes with ABSOLUTELY NO WARRANTY;
781 for details type `show w'. This is free software, and
782 you are welcome to redistribute it under certain
783 conditions; type `show c' for details.
785 The hypothetical commands `show w' and `show c' should show
786 the appropriate parts of the General Public License. Of
787 course, the commands you use may be called something other
788 than `show w' and `show c'; they could even be mouse-clicks
789 or menu items--whatever suits your program.
791 You should also get your employer (if you work as a
792 programmer) or your school, if any, to sign a "copyright
793 disclaimer" for the program, if necessary. Here is a sample;
796 Yoyodyne, Inc., hereby disclaims all copyright interest in
797 the program `Gnomovision' (which makes passes at
798 compilers) written by James Hacker.
800 signature of Ty Coon, 1 April 1989
801 Ty Coon, President of Vice
803 This General Public License does not permit incorporating
804 your program into proprietary programs. If your program is a
805 subroutine library, you may consider it more useful to
806 permit linking proprietary applications with the library. If
807 this is what you want to do, use the GNU Library General
808 Public License instead of this License.
811 "CLASSPATH" EXCEPTION TO THE GPL VERSION 2
814 Certain source files distributed by Sun Microsystems, Inc.
815 are subject to the following clarification and special
816 exception to the GPL Version 2, but only where Sun has expressly
817 included in the particular source file's header the words
818 "Sun designates this particular file as subject to the
819 "Classpath" exception as provided by Sun in the License file
820 that accompanied this code."
822 Linking this library statically or dynamically with other
823 modules is making a combined work based on this library.
824 Thus, the terms and conditions of the GNU General Public
825 License Version 2 cover the whole combination.
827 As a special exception, the copyright holders of this
828 library give you permission to link this library with
829 independent modules to produce an executable, regardless of
830 the license terms of these independent modules, and to copy
831 and distribute the resulting executable under terms of your
832 choice, provided that you also meet, for each linked
833 independent module, the terms and conditions of the license
834 of that module. An independent module is a module which is
835 not derived from or based on this library. If you modify
836 this library, you may extend this exception to your version
837 of the library, but you are not obligated to do so. If you
838 do not wish to do so, delete this exception statement from