本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

409 lines
23KB

  1. SUN PUBLIC LICENSE Version 1.0
  2. 1. Definitions.
  3. 1.0.1. "Commercial Use" means distribution or otherwise making the Covered
  4. Code available to a third party.
  5. 1.1. "Contributor" means each entity that creates or contributes to the creation
  6. of Modifications.
  7. 1.2. "Contributor Version" means the combination of the Original Code, prior
  8. Modifications used by a Contributor, and the Modifications made by that particular
  9. Contributor.
  10. 1.3. "Covered Code" means the Original Code or Modifications or the combination
  11. of the Original Code and Modifications, in each case including portions thereof
  12. and corresponding documentation released with the source code.
  13. 1.4. "Electronic Distribution Mechanism" means a mechanism generally accepted
  14. in the software development community for the electronic transfer of data.
  15. 1.5. "Executable" means Covered Code in any form other than Source Code.
  16. 1.6. "Initial Developer" means the individual or entity identified as the
  17. Initial Developer in the Source Code notice required by Exhibit A.
  18. 1.7. "Larger Work" means a work which combines Covered Code or portions thereof
  19. with code not governed by the terms of this License.
  20. 1.8. "License" means this document.
  21. 1.8.1. "Licensable" means having the right to grant, to the maximum extent
  22. possible, whether at the time of the initial grant or subsequently acquired,
  23. any and all of the rights conveyed herein.
  24. 1.9. "Modifications" means any addition to or deletion from the substance
  25. or structure of either the Original Code or any previous Modifications. When
  26. Covered Code is released as a series of files, a Modification is:
  27. A. Any addition to or deletion from the contents of a file containing Original
  28. Code or previous Modifications.
  29. B. Any new file that contains any part of the Original Code or previous Modifications.
  30. 1.10. "Original Code"../ means Source Code of computer software code which
  31. is described in the Source Code notice required by Exhibit A as Original Code,
  32. and which, at the time of its release under this License is not already Covered
  33. Code governed by this License.
  34. 1.10.1. "Patent Claims" means any patent claim(s), now owned or hereafter
  35. acquired, including without limitation, method, process, and apparatus claims,
  36. in any patent Licensable by grantor.
  37. 1.11. "Source Code"../ means the preferred form of the Covered Code for making
  38. modifications to it, including all modules it contains, plus any associated
  39. documentation, interface definition files, scripts used to control compilation
  40. and installation of an Executable, or source code differential comparisons
  41. against either the Original Code or another well known, available Covered
  42. Code of the Contributor's choice. The Source Code can be in a compressed or
  43. archival form, provided the appropriate decompression or de-archiving software
  44. is widely available for no charge.
  45. 1.12. "You" (or "Your") means an individual or a legal entity exercising rights
  46. under, and complying with all of the terms of, this License or a future version
  47. of this License issued under Section 6.1. For legal entities, "You" includes
  48. any entity which controls, is controlled by, or is under common control with
  49. You. For purposes of this definition, "control"../ means (a) the power, direct
  50. or indirect, to cause the direction or management of such entity, whether
  51. by contract or otherwise, or (b) ownership of more than fifty percent (50%)
  52. of the outstanding shares or beneficial ownership of such entity.
  53. 2. Source Code License.
  54. 2.1 The Initial Developer Grant. The Initial Developer hereby grants You a
  55. world-wide, royalty-free, non-exclusive license, subject to third party intellectual
  56. property claims:
  57. (a) under intellectual property rights (other than patent or trademark) Licensable
  58. by Initial Developer to use, reproduce, modify, display, perform, sublicense
  59. and distribute the Original Code (or portions thereof) with or without Modifications,
  60. and/or as part of a Larger Work; and
  61. (b) under Patent Claims infringed by the making, using or selling of Original
  62. Code, to make, have made, use, practice, sell, and offer for sale, and/or
  63. otherwise dispose of the Original Code (or portions thereof).
  64. (c) the licenses granted in this Section 2.1(a) and (b) are effective on the
  65. date Initial Developer first distributes Original Code under the terms of
  66. this License.
  67. (d) Notwithstanding Section 2.1(b) above, no patent license is granted: 1)
  68. for code that You delete from the Original Code; 2) separate from the Original
  69. Code; or 3) for infringements caused by:
  70. i) the modification of the Original Code or
  71. ii) the combination of the Original Code with other software or devices.
  72. 2.2. Contributor Grant. Subject to third party intellectual property claims,
  73. each Contributor hereby grants You a world-wide, royalty-free, non-exclusive
  74. license
  75. (a) under intellectual property rights (other than patent or trademark) Licensable
  76. by Contributor, to use, reproduce, modify, display, perform, sublicense and
  77. distribute the Modifications created by such Contributor (or portions thereof)
  78. either on an unmodified basis, with other Modifications, as Covered Code and/or
  79. as part of a Larger Work; and
  80. b) under Patent Claims infringed by the making, using, or selling of Modifications
  81. made by that Contributor either alone and/or in combination with its Contributor
  82. Version (or portions of such combination), to make, use, sell, offer for sale,
  83. have made, and/or otherwise dispose of: 1) Modifications made by that Contributor
  84. (or portions thereof); and 2) the combination of Modifications made by that
  85. Contributor with its Contributor Version (or portions of such combination).
  86. (c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the
  87. date Contributor first makes Commercial Use of the Covered Code.
  88. (d) notwithstanding Section 2.2(b) above, no patent license is granted: 1)
  89. for any code that Contributor has deleted from the Contributor Version; 2)
  90. separate from the Contributor Version; 3) for infringements caused by: i)
  91. third party modifications of Contributor Version or ii) the combination of
  92. Modifications made by that Contributor with other software (except as part
  93. of the Contributor Version) or other devices; or 4) under Patent Claims infringed
  94. by Covered Code in the absence of Modifications made by that Contributor.
  95. 3. Distribution Obligations.
  96. 3.1. Application of License. The Modifications which You create or to which
  97. You contribute are governed by the terms of this License, including without
  98. limitation Section 2.2. The Source Code version of Covered Code may be distributed
  99. only under the terms of this License or a future version of this License released
  100. under Section 6.1, and You must include a copy of this License with every
  101. copy of the Source Code You distribute. You may not offer or impose any terms
  102. on any Source Code version that alters or restricts the applicable version
  103. of this License or the recipients' rights hereunder. However, You may include
  104. an additional document offering the additional rights described in Section
  105. 3.5.
  106. 3.2. Availability of Source Code. Any Modification which You create or to
  107. which You contribute must be made available in Source Code form under the
  108. terms of this License either on the same media as an Executable version or
  109. via an accepted Electronic Distribution Mechanism to anyone to whom you made
  110. an Executable version available; and if made available via Electronic Distribution
  111. Mechanism, must remain available for at least twelve (12) months after the
  112. date it initially became available, or at least six (6) months after a subsequent
  113. version of that particular Modification has been made available to such recipients.
  114. You are responsible for ensuring that the Source Code version remains available
  115. even if the Electronic Distribution Mechanism is maintained by a third party.
  116. 3.3. Description of Modifications. You must cause all Covered Code to which
  117. You contribute to contain a file documenting the changes You made to create
  118. that Covered Code and the date of any change. You must include a prominent
  119. statement that the Modification is derived, directly or indirectly, from Original
  120. Code provided by the Initial Developer and including the name of the Initial
  121. Developer in (a) the Source Code, and (b) in any notice in an Executable version
  122. or related documentation in which You describe the origin or ownership of
  123. the Covered Code.
  124. 3.4. Intellectual Property Matters.
  125. (a) Third Party Claims. If Contributor has knowledge that a license under
  126. a third party's intellectual property rights is required to exercise the rights
  127. granted by such Contributor under Sections 2.1 or 2.2, Contributor must include
  128. a text file with the Source Code distribution titled "../LEGAL'' which describes
  129. the claim and the party making the claim in sufficient detail that a recipient
  130. will know whom to contact. If Contributor obtains such knowledge after the
  131. Modification is made available as described in Section 3.2, Contributor shall
  132. promptly modify the LEGAL file in all copies Contributor makes available thereafter
  133. and shall take other steps (such as notifying appropriate mailing lists or
  134. newsgroups) reasonably calculated to inform those who received the Covered
  135. Code that new knowledge has been obtained.
  136. (b) Contributor APIs. If Contributor's Modifications include an application
  137. programming interface ("API"../) and Contributor has knowledge of patent licenses
  138. which are reasonably necessary to implement that API, Contributor must also
  139. include this information in the LEGAL file.
  140. (c) Representations. Contributor represents that, except as disclosed pursuant
  141. to Section 3.4(a) above, Contributor believes that Contributor's Modifications
  142. are Contributor's original creation(s) and/or Contributor has sufficient rights
  143. to grant the rights conveyed by this License.
  144. 3.5. Required Notices. You must duplicate the notice in Exhibit A in each
  145. file of the Source Code. If it is not possible to put such notice in a particular
  146. Source Code file due to its structure, then You must include such notice in
  147. a location (such as a relevant directory) where a user would be likely to
  148. look for such a notice. If You created one or more Modification(s) You may
  149. add your name as a Contributor to the notice described in Exhibit A. You must
  150. also duplicate this License in any documentation for the Source Code where
  151. You describe recipients' rights or ownership rights relating to Covered Code.
  152. You may choose to offer, and to charge a fee for, warranty, support, indemnity
  153. or liability obligations to one or more recipients of Covered Code. However,
  154. You may do so only on Your own behalf, and not on behalf of the Initial Developer
  155. or any Contributor. You must make it absolutely clear than any such warranty,
  156. support, indemnity or liability obligation is offered by You alone, and You
  157. hereby agree to indemnify the Initial Developer and every Contributor for
  158. any liability incurred by the Initial Developer or such Contributor as a result
  159. of warranty, support, indemnity or liability terms You offer.
  160. 3.6. Distribution of Executable Versions. You may distribute Covered Code
  161. in Executable form only if the requirements of Section 3.1-3.5 have been met
  162. for that Covered Code, and if You include a notice stating that the Source
  163. Code version of the Covered Code is available under the terms of this License,
  164. including a description of how and where You have fulfilled the obligations
  165. of Section 3.2. The notice must be conspicuously included in any notice in
  166. an Executable version, related documentation or collateral in which You describe
  167. recipients' rights relating to the Covered Code. You may distribute the Executable
  168. version of Covered Code or ownership rights under a license of Your choice,
  169. which may contain terms different from this License, provided that You are
  170. in compliance with the terms of this License and that the license for the
  171. Executable version does not attempt to limit or alter the recipient's rights
  172. in the Source Code version from the rights set forth in this License. If You
  173. distribute the Executable version under a different license You must make
  174. it absolutely clear that any terms which differ from this License are offered
  175. by You alone, not by the Initial Developer or any Contributor. You hereby
  176. agree to indemnify the Initial Developer and every Contributor for any liability
  177. incurred by the Initial Developer or such Contributor as a result of any such
  178. terms You offer.
  179. 3.7. Larger Works. You may create a Larger Work by combining Covered Code
  180. with other code not governed by the terms of this License and distribute the
  181. Larger Work as a single product. In such a case, You must make sure the requirements
  182. of this License are fulfilled for the Covered Code.
  183. 4. Inability to Comply Due to Statute or Regulation.
  184. If it is impossible for You to comply with any of the terms of this License
  185. with respect to some or all of the Covered Code due to statute, judicial order,
  186. or regulation then You must: (a) comply with the terms of this License to
  187. the maximum extent possible; and (b) describe the limitations and the code
  188. they affect. Such description must be included in the LEGAL file described
  189. in Section 3.4 and must be included with all distributions of the Source Code.
  190. Except to the extent prohibited by statute or regulation, such description
  191. must be sufficiently detailed for a recipient of ordinary skill to be able
  192. to understand it.
  193. 5. Application of this License.
  194. This License applies to code to which the Initial Developer has attached the
  195. notice in Exhibit A and to related Covered Code.
  196. 6. Versions of the License.
  197. 6.1. New Versions. Sun Microsystems, Inc. ("Sun") may publish revised and/or
  198. new versions of the License from time to time. Each version will be given
  199. a distinguishing version number.
  200. 6.2. Effect of New Versions. Once Covered Code has been published under a
  201. particular version of the License, You may always continue to use it under
  202. the terms of that version. You may also choose to use such Covered Code under
  203. the terms of any subsequent version of the License published by Sun. No one
  204. other than Sun has the right to modify the terms applicable to Covered Code
  205. created under this License.
  206. 6.3. Derivative Works. If You create or use a modified version of this License
  207. (which you may only do in order to apply it to code which is not already Covered
  208. Code governed by this License), You must: (a) rename Your license so that
  209. the phrases "Sun," "Sun Public License," or "SPL"../ or any confusingly similar
  210. phrase do not appear in your license (except to note that your license differs
  211. from this License) and (b) otherwise make it clear that Your version of the
  212. license contains terms which differ from the Sun Public License. (Filling
  213. in the name of the Initial Developer, Original Code or Contributor in the
  214. notice described in Exhibit A shall not of themselves be deemed to be modifications
  215. of this License.)
  216. 7. DISCLAIMER OF WARRANTY.
  217. COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "../AS IS'' BASIS, WITHOUT
  218. WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
  219. WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR
  220. A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY
  221. AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE
  222. DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR)
  223. ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
  224. OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED
  225. CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
  226. 8. TERMINATION.
  227. 8.1. This License and the rights granted hereunder will terminate automatically
  228. if You fail to comply with terms herein and fail to cure such breach within
  229. 30 days of becoming aware of the breach. All sublicenses to the Covered Code
  230. which are properly granted shall survive any termination of this License.
  231. Provisions which, by their nature, must remain in effect beyond the termination
  232. of this License shall survive.
  233. 8.2. If You initiate litigation by asserting a patent infringement claim (excluding
  234. declaratory judgment actions) against Initial Developer or a Contributor (the
  235. Initial Developer or Contributor against whom You file such action is referred
  236. to as "Participant") alleging that:
  237. (a) such Participant's Contributor Version directly or indirectly infringes
  238. any patent, then any and all rights granted by such Participant to You under
  239. Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant
  240. terminate prospectively, unless if within 60 days after receipt of notice
  241. You either: (i) agree in writing to pay Participant a mutually agreeable reasonable
  242. royalty for Your past and future use of Modifications made by such Participant,
  243. or (ii) withdraw Your litigation claim with respect to the Contributor Version
  244. against such Participant. If within 60 days of notice, a reasonable royalty
  245. and payment arrangement are not mutually agreed upon in writing by the parties
  246. or the litigation claim is not withdrawn, the rights granted by Participant
  247. to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration
  248. of the 60 day notice period specified above.
  249. (b) any software, hardware, or device, other than such Participant's Contributor
  250. Version, directly or indirectly infringes any patent, then any rights granted
  251. to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective
  252. as of the date You first made, used, sold, distributed, or had made, Modifications
  253. made by that Participant.
  254. 8.3. If You assert a patent infringement claim against Participant alleging
  255. that such Participant's Contributor Version directly or indirectly infringes
  256. any patent where such claim is resolved (such as by license or settlement)
  257. prior to the initiation of patent infringement litigation, then the reasonable
  258. value of the licenses granted by such Participant under Sections 2.1 or 2.2
  259. shall be taken into account in determining the amount or value of any payment
  260. or license.
  261. 8.4. In the event of termination under Sections 8.1 or 8.2 above, all end
  262. user license agreements (excluding distributors and resellers) which have
  263. been validly granted by You or any distributor hereunder prior to termination
  264. shall survive termination.
  265. 9. LIMITATION OF LIABILITY.
  266. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING
  267. NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY
  268. OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF
  269. ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL,
  270. OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES
  271. FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY
  272. AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE
  273. BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY
  274. SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH
  275. PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION.
  276. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL
  277. OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO
  278. YOU.
  279. 10. U.S. GOVERNMENT END USERS.
  280. The Covered Code is a "commercial item," as that term is defined in 48 C.F.R.
  281. 2.101 (Oct. 1995), consisting of "commercial computer software" and "commercial
  282. computer software documentation,"../ as such terms are used in 48 C.F.R. 12.212
  283. (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through
  284. 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code
  285. with only those rights set forth herein.
  286. 11. MISCELLANEOUS.
  287. This License represents the complete agreement concerning subject matter hereof.
  288. If any provision of this License is held to be unenforceable, such provision
  289. shall be reformed only to the extent necessary to make it enforceable. This
  290. License shall be governed by California law provisions (except to the extent
  291. applicable law, if any, provides otherwise), excluding its conflict-of-law
  292. provisions. With respect to disputes in which at least one party is a citizen
  293. of, or an entity chartered or registered to do business in the United States
  294. of America, any litigation relating to this License shall be subject to the
  295. jurisdiction of the Federal Courts of the Northern District of California,
  296. with venue lying in Santa Clara County, California, with the losing party
  297. responsible for costs, including without limitation, court costs and reasonable
  298. attorneys' fees and expenses. The application of the United Nations Convention
  299. on Contracts for the International Sale of Goods is expressly excluded. Any
  300. law or regulation which provides that the language of a contract shall be
  301. construed against the drafter shall not apply to this License.
  302. 12. RESPONSIBILITY FOR CLAIMS.
  303. As between Initial Developer and the Contributors, each party is responsible
  304. for claims and damages arising, directly or indirectly, out of its utilization
  305. of rights under this License and You agree to work with Initial Developer
  306. and Contributors to distribute such responsibility on an equitable basis.
  307. Nothing herein is intended or shall be deemed to constitute any admission
  308. of liability.
  309. 13. MULTIPLE-LICENSED CODE.
  310. Initial Developer may designate portions of the Covered Code as ?Multiple-Licensed?.
  311. ?Multiple-Licensed? means that the Initial Developer permits you to utilize
  312. portions of the Covered Code under Your choice of the alternative licenses,
  313. if any, specified by the Initial Developer in the file described in Exhibit
  314. A. Exhibit A -Sun Public License Notice.
  315. The contents of this file are subject to the Sun Public License Version 1.0
  316. (the License); you may not use this file except in compliance with the License.
  317. A copy of the License is available at http://www.sun.com/
  318. The Original Code is _________________ . The Initial Developer of the Original
  319. Code is ___________ . Portions created by ______ are Copyright (C) _________
  320. . All Rights Reserved.
  321. Contributor(s): ______________________________________ .
  322. Alternatively, the contents of this file may be used under the terms of the
  323. _____ license (the ?[___] License? ), in which case the provisions of [______]
  324. License are applicable instead of those above. If you wish to allow use of
  325. your version of this file only under the terms of the [____] License and not
  326. to allow others to use your version of this file under the SPL, indicate your
  327. decision by deleting the provisions above and replace them with the notice
  328. and other provisions required by the [___] License. If you do not delete the
  329. provisions above, a recipient may use your version of this file under either
  330. the SPL or the [___] License.
  331. [NOTE: The text of this Exhibit A may differ slightly from the text of the
  332. notices in the Source Code files of the Original Code. You should use the
  333. text of this Exhibit A rather than the text found in the Original Code Source
  334. Code for Your Modifications.]
上海开阖软件有限公司 沪ICP备12045867号-1