muck-solr 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. data/CHANGE_LOG +239 -0
  2. data/LICENSE +19 -0
  3. data/README.markdown +118 -0
  4. data/README.rdoc +107 -0
  5. data/Rakefile +99 -0
  6. data/TESTING_THE_PLUGIN +25 -0
  7. data/VERSION.yml +4 -0
  8. data/config/solr.yml +15 -0
  9. data/config/solr_environment.rb +32 -0
  10. data/lib/acts_as_solr.rb +65 -0
  11. data/lib/acts_as_solr/acts_methods.rb +352 -0
  12. data/lib/acts_as_solr/class_methods.rb +236 -0
  13. data/lib/acts_as_solr/common_methods.rb +89 -0
  14. data/lib/acts_as_solr/deprecation.rb +61 -0
  15. data/lib/acts_as_solr/instance_methods.rb +165 -0
  16. data/lib/acts_as_solr/lazy_document.rb +18 -0
  17. data/lib/acts_as_solr/parser_methods.rb +203 -0
  18. data/lib/acts_as_solr/search_results.rb +68 -0
  19. data/lib/acts_as_solr/solr_fixtures.rb +13 -0
  20. data/lib/acts_as_solr/tasks.rb +10 -0
  21. data/lib/acts_as_solr/tasks/database.rake +16 -0
  22. data/lib/acts_as_solr/tasks/solr.rake +135 -0
  23. data/lib/acts_as_solr/tasks/test.rake +5 -0
  24. data/lib/solr.rb +26 -0
  25. data/lib/solr/connection.rb +177 -0
  26. data/lib/solr/document.rb +75 -0
  27. data/lib/solr/exception.rb +13 -0
  28. data/lib/solr/field.rb +36 -0
  29. data/lib/solr/importer.rb +19 -0
  30. data/lib/solr/importer/array_mapper.rb +26 -0
  31. data/lib/solr/importer/delimited_file_source.rb +38 -0
  32. data/lib/solr/importer/hpricot_mapper.rb +27 -0
  33. data/lib/solr/importer/mapper.rb +51 -0
  34. data/lib/solr/importer/solr_source.rb +41 -0
  35. data/lib/solr/importer/xpath_mapper.rb +35 -0
  36. data/lib/solr/indexer.rb +52 -0
  37. data/lib/solr/request.rb +26 -0
  38. data/lib/solr/request/add_document.rb +58 -0
  39. data/lib/solr/request/base.rb +36 -0
  40. data/lib/solr/request/commit.rb +29 -0
  41. data/lib/solr/request/delete.rb +48 -0
  42. data/lib/solr/request/dismax.rb +46 -0
  43. data/lib/solr/request/index_info.rb +22 -0
  44. data/lib/solr/request/modify_document.rb +46 -0
  45. data/lib/solr/request/optimize.rb +19 -0
  46. data/lib/solr/request/ping.rb +36 -0
  47. data/lib/solr/request/select.rb +54 -0
  48. data/lib/solr/request/spellcheck.rb +30 -0
  49. data/lib/solr/request/standard.rb +402 -0
  50. data/lib/solr/request/update.rb +23 -0
  51. data/lib/solr/response.rb +27 -0
  52. data/lib/solr/response/add_document.rb +17 -0
  53. data/lib/solr/response/base.rb +42 -0
  54. data/lib/solr/response/commit.rb +15 -0
  55. data/lib/solr/response/delete.rb +13 -0
  56. data/lib/solr/response/dismax.rb +8 -0
  57. data/lib/solr/response/index_info.rb +26 -0
  58. data/lib/solr/response/modify_document.rb +17 -0
  59. data/lib/solr/response/optimize.rb +14 -0
  60. data/lib/solr/response/ping.rb +26 -0
  61. data/lib/solr/response/ruby.rb +42 -0
  62. data/lib/solr/response/select.rb +17 -0
  63. data/lib/solr/response/spellcheck.rb +20 -0
  64. data/lib/solr/response/standard.rb +60 -0
  65. data/lib/solr/response/xml.rb +39 -0
  66. data/lib/solr/solrtasks.rb +27 -0
  67. data/lib/solr/util.rb +32 -0
  68. data/lib/solr/xml.rb +44 -0
  69. data/solr/CHANGES.txt +1207 -0
  70. data/solr/LICENSE.txt +712 -0
  71. data/solr/NOTICE.txt +90 -0
  72. data/solr/etc/jetty.xml +205 -0
  73. data/solr/etc/webdefault.xml +379 -0
  74. data/solr/lib/easymock.jar +0 -0
  75. data/solr/lib/jetty-6.1.3.jar +0 -0
  76. data/solr/lib/jetty-util-6.1.3.jar +0 -0
  77. data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
  78. data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  79. data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
  80. data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
  81. data/solr/lib/servlet-api-2.4.jar +0 -0
  82. data/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
  83. data/solr/lib/xpp3-1.1.3.4.O.jar +0 -0
  84. data/solr/solr/README.txt +52 -0
  85. data/solr/solr/bin/abc +176 -0
  86. data/solr/solr/bin/abo +176 -0
  87. data/solr/solr/bin/backup +108 -0
  88. data/solr/solr/bin/backupcleaner +142 -0
  89. data/solr/solr/bin/commit +128 -0
  90. data/solr/solr/bin/optimize +129 -0
  91. data/solr/solr/bin/readercycle +129 -0
  92. data/solr/solr/bin/rsyncd-disable +77 -0
  93. data/solr/solr/bin/rsyncd-enable +76 -0
  94. data/solr/solr/bin/rsyncd-start +145 -0
  95. data/solr/solr/bin/rsyncd-stop +105 -0
  96. data/solr/solr/bin/scripts-util +83 -0
  97. data/solr/solr/bin/snapcleaner +148 -0
  98. data/solr/solr/bin/snapinstaller +168 -0
  99. data/solr/solr/bin/snappuller +248 -0
  100. data/solr/solr/bin/snappuller-disable +77 -0
  101. data/solr/solr/bin/snappuller-enable +77 -0
  102. data/solr/solr/bin/snapshooter +109 -0
  103. data/solr/solr/conf/admin-extra.html +31 -0
  104. data/solr/solr/conf/protwords.txt +21 -0
  105. data/solr/solr/conf/schema.xml +126 -0
  106. data/solr/solr/conf/scripts.conf +24 -0
  107. data/solr/solr/conf/solrconfig.xml +458 -0
  108. data/solr/solr/conf/stopwords.txt +57 -0
  109. data/solr/solr/conf/synonyms.txt +31 -0
  110. data/solr/solr/conf/xslt/example.xsl +132 -0
  111. data/solr/solr/conf/xslt/example_atom.xsl +63 -0
  112. data/solr/solr/conf/xslt/example_rss.xsl +62 -0
  113. data/solr/start.jar +0 -0
  114. data/solr/webapps/solr.war +0 -0
  115. data/test/config/solr.yml +2 -0
  116. data/test/db/connections/mysql/connection.rb +10 -0
  117. data/test/db/connections/sqlite/connection.rb +8 -0
  118. data/test/db/migrate/001_create_books.rb +15 -0
  119. data/test/db/migrate/002_create_movies.rb +12 -0
  120. data/test/db/migrate/003_create_categories.rb +11 -0
  121. data/test/db/migrate/004_create_electronics.rb +16 -0
  122. data/test/db/migrate/005_create_authors.rb +12 -0
  123. data/test/db/migrate/006_create_postings.rb +9 -0
  124. data/test/db/migrate/007_create_posts.rb +13 -0
  125. data/test/db/migrate/008_create_gadgets.rb +11 -0
  126. data/test/fixtures/authors.yml +9 -0
  127. data/test/fixtures/books.yml +13 -0
  128. data/test/fixtures/categories.yml +7 -0
  129. data/test/fixtures/db_definitions/mysql.sql +41 -0
  130. data/test/fixtures/electronics.yml +49 -0
  131. data/test/fixtures/movies.yml +9 -0
  132. data/test/fixtures/postings.yml +10 -0
  133. data/test/functional/acts_as_solr_test.rb +413 -0
  134. data/test/functional/association_indexing_test.rb +37 -0
  135. data/test/functional/faceted_search_test.rb +163 -0
  136. data/test/functional/multi_solr_search_test.rb +57 -0
  137. data/test/models/author.rb +10 -0
  138. data/test/models/book.rb +10 -0
  139. data/test/models/category.rb +8 -0
  140. data/test/models/electronic.rb +25 -0
  141. data/test/models/gadget.rb +9 -0
  142. data/test/models/movie.rb +17 -0
  143. data/test/models/novel.rb +2 -0
  144. data/test/models/post.rb +3 -0
  145. data/test/models/posting.rb +11 -0
  146. data/test/test_helper.rb +54 -0
  147. data/test/unit/acts_methods_shoulda.rb +68 -0
  148. data/test/unit/class_methods_shoulda.rb +85 -0
  149. data/test/unit/common_methods_shoulda.rb +111 -0
  150. data/test/unit/instance_methods_shoulda.rb +318 -0
  151. data/test/unit/lazy_document_shoulda.rb +34 -0
  152. data/test/unit/parser_instance.rb +19 -0
  153. data/test/unit/parser_methods_shoulda.rb +268 -0
  154. data/test/unit/solr_instance.rb +49 -0
  155. data/test/unit/test_helper.rb +24 -0
  156. metadata +241 -0
@@ -0,0 +1,712 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+
204
+ ==========================================================================
205
+ Portions of Jetty 6 are bundled in the Solr example server.
206
+ Jetty 6 includes a binary javax.servlet package licensed under the
207
+ Common Development and Distribution License.
208
+ --------------------------------------------------------------------------
209
+ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
210
+
211
+ 1. Definitions.
212
+
213
+ 1.1. Contributor means each individual or entity that creates or contributes to
214
+ the creation of Modifications.
215
+
216
+ 1.2. Contributor Version means the combination of the Original Software, prior
217
+ Modifications used by a Contributor (if any), and the Modifications made by
218
+ that particular Contributor.
219
+
220
+ 1.3. Covered Software means (a) the Original Software, or (b) Modifications, or
221
+ (c) the combination of files containing Original Software with files containing
222
+ Modifications, in each case including portions thereof.
223
+
224
+ 1.4. Executable means the Covered Software in any form other than Source Code.
225
+
226
+ 1.5. Initial Developer means the individual or entity that first makes Original
227
+ Software available under this License.
228
+
229
+ 1.6. Larger Work means a work which combines Covered Software or portions
230
+ thereof with code not governed by the terms of this License.
231
+
232
+ 1.7. License means this document.
233
+
234
+ 1.8. Licensable means having the right to grant, to the maximum extent
235
+ possible, whether at the time of the initial grant or subsequently acquired,
236
+ any and all of the rights conveyed herein.
237
+
238
+ 1.9. Modifications means the Source Code and Executable form of any of the
239
+ following:
240
+
241
+ A. Any file that results from an addition to, deletion from or modification of
242
+ the contents of a file containing Original Software or previous Modifications;
243
+
244
+ B. Any new file that contains any part of the Original Software or previous
245
+ Modification; or
246
+
247
+ C. Any new file that is contributed or otherwise made available under the terms
248
+ of this License.
249
+
250
+ 1.10. Original Software means the Source Code and Executable form of computer
251
+ software code that is originally released under this License.
252
+
253
+ 1.11. Patent Claims means any patent claim(s), now owned or hereafter acquired,
254
+ including without limitation, method, process, and apparatus claims, in any
255
+ patent Licensable by grantor.
256
+
257
+ 1.12. Source Code means (a) the common form of computer software code in which
258
+ modifications are made and (b) associated documentation included in or with
259
+ such code.
260
+
261
+ 1.13. You (or Your) means an individual or a legal entity exercising rights
262
+ under, and complying with all of the terms of, this License. For legal
263
+ entities, You includes any entity which controls, is controlled by, or is under
264
+ common control with You. For purposes of this definition, control means (a)�the
265
+ power, direct or indirect, to cause the direction or management of such entity,
266
+ whether by contract or otherwise, or (b)�ownership of more than fifty percent
267
+ (50%) of the outstanding shares or beneficial ownership of such entity.
268
+
269
+ 2. License Grants.
270
+
271
+ 2.1. The Initial Developer Grant. Conditioned upon Your compliance with
272
+ Section 3.1 below and subject to third party intellectual property claims, the
273
+ Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive
274
+ license: (a) under intellectual property rights (other than patent or
275
+ trademark) Licensable by Initial Developer, to use, reproduce, modify, display,
276
+ perform, sublicense and distribute the Original Software (or portions thereof),
277
+ with or without Modifications, and/or as part of a Larger Work; and (b) under
278
+ Patent Claims infringed by the making, using or selling of Original Software,
279
+ to make, have made, use, practice, sell, and offer for sale, and/or otherwise
280
+ dispose of the Original Software (or portions thereof). (c) The licenses
281
+ granted in Sections�2.1(a) and (b) are effective on the date Initial Developer
282
+ first distributes or otherwise makes the Original Software available to a third
283
+ party under the terms of this License. (d) Notwithstanding Section�2.1(b)
284
+ above, no patent license is granted: (1)�for code that You delete from the
285
+ Original Software, or (2)�for infringements caused by: (i)�the modification of
286
+ the Original Software, or (ii)�the combination of the Original Software with
287
+ other software or devices.
288
+
289
+ 2.2. Contributor Grant. Conditioned upon Your compliance with Section 3.1
290
+ below and subject to third party intellectual property claims, each Contributor
291
+ hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under
292
+ intellectual property rights (other than patent or trademark) Licensable by
293
+ Contributor to use, reproduce, modify, display, perform, sublicense and
294
+ distribute the Modifications created by such Contributor (or portions thereof),
295
+ either on an unmodified basis, with other Modifications, as Covered Software
296
+ and/or as part of a Larger Work; and (b) under Patent Claims infringed by the
297
+ making, using, or selling of Modifications made by that Contributor either
298
+ alone and/or in combination with its Contributor Version (or portions of such
299
+ combination), to make, use, sell, offer for sale, have made, and/or otherwise
300
+ dispose of: (1)�Modifications made by that Contributor (or portions thereof);
301
+ and (2)�the combination of Modifications made by that Contributor with its
302
+ Contributor Version (or portions of such combination). (c) The licenses
303
+ granted in Sections�2.2(a) and 2.2(b) are effective on the date Contributor
304
+ first distributes or otherwise makes the Modifications available to a third
305
+ party. (d) Notwithstanding Section�2.2(b) above, no patent license is granted:
306
+ (1)�for any code that Contributor has deleted from the Contributor Version;
307
+ (2)�for infringements caused by: (i)�third party modifications of Contributor
308
+ Version, or (ii)�the combination of Modifications made by that Contributor with
309
+ other software (except as part of the Contributor Version) or other devices; or
310
+ (3)�under Patent Claims infringed by Covered Software in the absence of
311
+ Modifications made by that Contributor.
312
+
313
+ 3. Distribution Obligations.
314
+
315
+ 3.1. Availability of Source Code.
316
+
317
+ Any Covered Software that You distribute or otherwise make available in
318
+ Executable form must also be made available in Source Code form and that Source
319
+ Code form must be distributed only under the terms of this License. You must
320
+ include a copy of this License with every copy of the Source Code form of the
321
+ Covered Software You distribute or otherwise make available. You must inform
322
+ recipients of any such Covered Software in Executable form as to how they can
323
+ obtain such Covered Software in Source Code form in a reasonable manner on or
324
+ through a medium customarily used for software exchange.
325
+
326
+ 3.2. Modifications.
327
+
328
+ The Modifications that You create or to which You contribute are governed by
329
+ the terms of this License. You represent that You believe Your Modifications
330
+ are Your original creation(s) and/or You have sufficient rights to grant the
331
+ rights conveyed by this License.
332
+
333
+ 3.3. Required Notices. You must include a notice in each of Your Modifications
334
+ that identifies You as the Contributor of the Modification. You may not remove
335
+ or alter any copyright, patent or trademark notices contained within the
336
+ Covered Software, or any notices of licensing or any descriptive text giving
337
+ attribution to any Contributor or the Initial Developer.
338
+
339
+ 3.4. Application of Additional Terms. You may not offer or impose any terms on
340
+ any Covered Software in Source Code form that alters or restricts the
341
+ applicable version of this License or the recipients rights hereunder. You may
342
+ choose to offer, and to charge a fee for, warranty, support, indemnity or
343
+ liability obligations to one or more recipients of Covered Software. However,
344
+ you may do so only on Your own behalf, and not on behalf of the Initial
345
+ Developer or any Contributor. You must make it absolutely clear that any such
346
+ warranty, support, indemnity or liability obligation is offered by You alone,
347
+ and You hereby agree to indemnify the Initial Developer and every Contributor
348
+ for any liability incurred by the Initial Developer or such Contributor as a
349
+ result of warranty, support, indemnity or liability terms You offer.
350
+
351
+ 3.5. Distribution of Executable Versions. You may distribute the Executable
352
+ form of the Covered Software under the terms of this License or under the terms
353
+ of a license of Your choice, which may contain terms different from this
354
+ License, provided that You are in compliance with the terms of this License and
355
+ that the license for the Executable form does not attempt to limit or alter the
356
+ recipients rights in the Source Code form from the rights set forth in this
357
+ License. If You distribute the Covered Software in Executable form under a
358
+ different license, You must make it absolutely clear that any terms which
359
+ differ from this License are offered by You alone, not by the Initial Developer
360
+ or Contributor. You hereby agree to indemnify the Initial Developer and every
361
+ Contributor for any liability incurred by the Initial Developer or such
362
+ Contributor as a result of any such terms You offer.
363
+
364
+ 3.6. Larger Works. You may create a Larger Work by combining Covered Software
365
+ with other code not governed by the terms of this License and distribute the
366
+ Larger Work as a single product. In such a case, You must make sure the
367
+ requirements of this License are fulfilled for the Covered Software.
368
+
369
+ 4. Versions of the License.
370
+
371
+ 4.1. New Versions. Sun Microsystems, Inc. is the initial license steward and
372
+ may publish revised and/or new versions of this License from time to time. Each
373
+ version will be given a distinguishing version number. Except as provided in
374
+ Section 4.3, no one other than the license steward has the right to modify this
375
+ License.
376
+
377
+ 4.2. Effect of New Versions.
378
+
379
+ You may always continue to use, distribute or otherwise make the Covered
380
+ Software available under the terms of the version of the License under which
381
+ You originally received the Covered Software. If the Initial Developer includes
382
+ a notice in the Original Software prohibiting it from being distributed or
383
+ otherwise made available under any subsequent version of the License, You must
384
+ distribute and make the Covered Software available under the terms of the
385
+ version of the License under which You originally received the Covered
386
+ Software. Otherwise, You may also choose to use, distribute or otherwise make
387
+ the Covered Software available under the terms of any subsequent version of the
388
+ License published by the license steward. 4.3. Modified Versions.
389
+
390
+ When You are an Initial Developer and You want to create a new license for Your
391
+ Original Software, You may create and use a modified version of this License if
392
+ You: (a)�rename the license and remove any references to the name of the
393
+ license steward (except to note that the license differs from this License);
394
+ and (b)�otherwise make it clear that the license contains terms which differ
395
+ from this License.
396
+
397
+ 5. DISCLAIMER OF WARRANTY.
398
+
399
+ COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN AS IS BASIS, WITHOUT
400
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT
401
+ LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS,
402
+ MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK
403
+ AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD
404
+ ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL
405
+ DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
406
+ REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART
407
+ OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT
408
+ UNDER THIS DISCLAIMER.
409
+
410
+ 6. TERMINATION.
411
+
412
+ 6.1. This License and the rights granted hereunder will terminate automatically
413
+ if You fail to comply with terms herein and fail to cure such breach within 30
414
+ days of becoming aware of the breach. Provisions which, by their nature, must
415
+ remain in effect beyond the termination of this License shall survive.
416
+
417
+ 6.2. If You assert a patent infringement claim (excluding declaratory judgment
418
+ actions) against Initial Developer or a Contributor (the Initial Developer or
419
+ Contributor against whom You assert such claim is referred to as Participant)
420
+ alleging that the Participant Software (meaning the Contributor Version where
421
+ the Participant is a Contributor or the Original Software where the Participant
422
+ is the Initial Developer) directly or indirectly infringes any patent, then any
423
+ and all rights granted directly or indirectly to You by such Participant, the
424
+ Initial Developer (if the Initial Developer is not the Participant) and all
425
+ Contributors under Sections�2.1 and/or 2.2 of this License shall, upon 60 days
426
+ notice from Participant terminate prospectively and automatically at the
427
+ expiration of such 60 day notice period, unless if within such 60 day period
428
+ You withdraw Your claim with respect to the Participant Software against such
429
+ Participant either unilaterally or pursuant to a written agreement with
430
+ Participant.
431
+
432
+ 6.3. In the event of termination under Sections�6.1 or 6.2 above, all end user
433
+ licenses that have been validly granted by You or any distributor hereunder
434
+ prior to termination (excluding licenses granted to You by any distributor)
435
+ shall survive termination.
436
+
437
+ 7. LIMITATION OF LIABILITY.
438
+
439
+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING
440
+ NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY
441
+ OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF
442
+ ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL,
443
+ INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
444
+ LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER
445
+ FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN
446
+ IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS
447
+ LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL
448
+ INJURY RESULTING FROM SUCH PARTYS NEGLIGENCE TO THE EXTENT APPLICABLE LAW
449
+ PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
450
+ LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND
451
+ LIMITATION MAY NOT APPLY TO YOU.
452
+
453
+ 8. U.S. GOVERNMENT END USERS.
454
+
455
+ The Covered Software is a commercial item, as that term is defined in
456
+ 48�C.F.R.�2.101 (Oct. 1995), consisting of commercial computer software (as
457
+ that term is defined at 48 C.F.R. �252.227-7014(a)(1)) and commercial computer
458
+ software documentation as such terms are used in 48�C.F.R.�12.212 (Sept. 1995).
459
+ Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4
460
+ (June 1995), all U.S. Government End Users acquire Covered Software with only
461
+ those rights set forth herein. This U.S. Government Rights clause is in lieu
462
+ of, and supersedes, any other FAR, DFAR, or other clause or provision that
463
+ addresses Government rights in computer software under this License.
464
+
465
+ 9. MISCELLANEOUS.
466
+
467
+ This License represents the complete agreement concerning subject matter
468
+ hereof. If any provision of this License is held to be unenforceable, such
469
+ provision shall be reformed only to the extent necessary to make it
470
+ enforceable. This License shall be governed by the law of the jurisdiction
471
+ specified in a notice contained within the Original Software (except to the
472
+ extent applicable law, if any, provides otherwise), excluding such
473
+ jurisdictions conflict-of-law provisions. Any litigation relating to this
474
+ License shall be subject to the jurisdiction of the courts located in the
475
+ jurisdiction and venue specified in a notice contained within the Original
476
+ Software, with the losing party responsible for costs, including, without
477
+ limitation, court costs and reasonable attorneys fees and expenses. The
478
+ application of the United Nations Convention on Contracts for the International
479
+ Sale of Goods is expressly excluded. Any law or regulation which provides that
480
+ the language of a contract shall be construed against the drafter shall not
481
+ apply to this License. You agree that You alone are responsible for compliance
482
+ with the United States export administration regulations (and the export
483
+ control laws and regulation of any other countries) when You use, distribute or
484
+ otherwise make available any Covered Software.
485
+
486
+ 10. RESPONSIBILITY FOR CLAIMS.
487
+
488
+ As between Initial Developer and the Contributors, each party is responsible
489
+ for claims and damages arising, directly or indirectly, out of its utilization
490
+ of rights under this License and You agree to work with Initial Developer and
491
+ Contributors to distribute such responsibility on an equitable basis. Nothing
492
+ herein is intended or shall be deemed to constitute any admission of liability.
493
+
494
+ NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
495
+ (CDDL) The GlassFish code released under the CDDL shall be governed by the laws
496
+ of the State of California (excluding conflict-of-law provisions). Any
497
+ litigation relating to this License shall be subject to the jurisdiction of the
498
+ Federal Courts of the Northern District of California and the state courts of
499
+ the State of California, with venue lying in Santa Clara County, California.
500
+
501
+
502
+ ==========================================================================
503
+ The following license applies to parts of the lucene-snowball jar
504
+ that are generated from the snowball sources at http://snowball.tartarus.org/
505
+ --------------------------------------------------------------------------
506
+ The BSD License
507
+
508
+ Copyright (c) 2001, Dr Martin Porter, Copyright (c) 2002, Richard Boulton
509
+ All rights reserved.
510
+
511
+ Redistribution and use in source and binary forms, with or without
512
+ modification, are permitted provided that the following conditions are met:
513
+
514
+ * Redistributions of source code must retain the above copyright notice,
515
+ this list of conditions and the following disclaimer.
516
+
517
+ * Redistributions in binary form must reproduce the above copyright notice,
518
+ this list of conditions and the following disclaimer in the documentation
519
+ and/or other materials provided with the distribution.
520
+
521
+ * Neither the name of the <ORGANIZATION> nor the names of its contributors
522
+ may be used to endorse or promote products derived from this software
523
+ without specific prior written permission.
524
+
525
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
526
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
527
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
528
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
529
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
530
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
531
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
532
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
533
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
534
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
535
+
536
+ ==========================================================================
537
+ The following license applies to easymock.jar
538
+ --------------------------------------------------------------------------
539
+ EasyMock 2 License (MIT License)
540
+ Copyright (c) 2001-2007 OFFIS, Tammo Freese.
541
+
542
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
543
+ this software and associated documentation files (the "Software"), to deal in
544
+ the Software without restriction, including without limitation the rights to
545
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
546
+ of the Software, and to permit persons to whom the Software is furnished to do
547
+ so, subject to the following conditions:
548
+
549
+ The above copyright notice and this permission notice shall be included in all
550
+ copies or substantial portions of the Software.
551
+
552
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
553
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
554
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
555
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
556
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
557
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
558
+ SOFTWARE.
559
+
560
+ ==========================================================================
561
+ The following license applies to the JQuery JavaScript library
562
+ --------------------------------------------------------------------------
563
+ Copyright (c) 2008 John Resig, http://jquery.com/
564
+
565
+ Permission is hereby granted, free of charge, to any person obtaining
566
+ a copy of this software and associated documentation files (the
567
+ "Software"), to deal in the Software without restriction, including
568
+ without limitation the rights to use, copy, modify, merge, publish,
569
+ distribute, sublicense, and/or sell copies of the Software, and to
570
+ permit persons to whom the Software is furnished to do so, subject to
571
+ the following conditions:
572
+
573
+ The above copyright notice and this permission notice shall be
574
+ included in all copies or substantial portions of the Software.
575
+
576
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
577
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
578
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
579
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
580
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
581
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
582
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
583
+
584
+ ==========================================================================
585
+ The following license applies to stax-utils.jar
586
+ --------------------------------------------------------------------------
587
+ Copyright (c) 2004, Christian Niles, unit12.net
588
+ Copyright (c) 2004, Sun Microsystems, Inc.
589
+ Copyright (c) 2006, John Kristian
590
+ All rights reserved.
591
+
592
+ Redistribution and use in source and binary forms, with or without
593
+ modification, are permitted provided that the following conditions are
594
+ met:
595
+
596
+ * Redistributions of source code must retain the above copyright
597
+ notice, this list of conditions and the following disclaimer.
598
+
599
+ * Redistributions in binary form must reproduce the above
600
+ copyright notice, this list of conditions and the following
601
+ disclaimer in the documentation and/or other materials provided
602
+ with the distribution.
603
+
604
+ * Neither the name of the listed copyright holders nor the names
605
+ of its contributors may be used to endorse or promote products
606
+ derived from this software without specific prior written
607
+ permission.
608
+
609
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
610
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
611
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
612
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
613
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
614
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
615
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
616
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
617
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
618
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
619
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
620
+
621
+ ==========================================================================
622
+ The following license applies to JUnit
623
+ --------------------------------------------------------------------------
624
+ Common Public License - v 1.0
625
+
626
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
627
+
628
+ 1. DEFINITIONS
629
+
630
+ "Contribution" means:
631
+
632
+ a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
633
+ b) in the case of each subsequent Contributor:
634
+
635
+ i) changes to the Program, and
636
+
637
+ ii) additions to the Program;
638
+
639
+ where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
640
+
641
+ "Contributor" means any person or entity that distributes the Program.
642
+
643
+ "Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
644
+
645
+ "Program" means the Contributions distributed in accordance with this Agreement.
646
+
647
+ "Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
648
+
649
+ 2. GRANT OF RIGHTS
650
+
651
+ a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
652
+
653
+ b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
654
+
655
+ c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
656
+
657
+ d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
658
+
659
+ 3. REQUIREMENTS
660
+
661
+ A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
662
+
663
+ a) it complies with the terms and conditions of this Agreement; and
664
+
665
+ b) its license agreement:
666
+
667
+ i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
668
+
669
+ ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
670
+
671
+ iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
672
+
673
+ iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
674
+
675
+ When the Program is made available in source code form:
676
+
677
+ a) it must be made available under this Agreement; and
678
+
679
+ b) a copy of this Agreement must be included with each copy of the Program.
680
+
681
+ Contributors may not remove or alter any copyright notices contained within the Program.
682
+
683
+ Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
684
+
685
+ 4. COMMERCIAL DISTRIBUTION
686
+
687
+ Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
688
+
689
+ For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
690
+
691
+ 5. NO WARRANTY
692
+
693
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
694
+
695
+ 6. DISCLAIMER OF LIABILITY
696
+
697
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
698
+
699
+ 7. GENERAL
700
+
701
+ If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
702
+
703
+ If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
704
+
705
+ All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
706
+
707
+ Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
708
+
709
+ This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
710
+
711
+
712
+