1*4882a593SmuzhiyunEclipse Public License - v 2.0 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE 4*4882a593Smuzhiyun PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION 5*4882a593Smuzhiyun OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun1. DEFINITIONS 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun"Contribution" means: 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun a) in the case of the initial Contributor, the initial content 12*4882a593Smuzhiyun Distributed under this Agreement, and 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun b) in the case of each subsequent Contributor: 15*4882a593Smuzhiyun i) changes to the Program, and 16*4882a593Smuzhiyun ii) additions to the Program; 17*4882a593Smuzhiyun where such changes and/or additions to the Program originate from 18*4882a593Smuzhiyun and are Distributed by that particular Contributor. A Contribution 19*4882a593Smuzhiyun "originates" from a Contributor if it was added to the Program by 20*4882a593Smuzhiyun such Contributor itself or anyone acting on such Contributor's behalf. 21*4882a593Smuzhiyun Contributions do not include changes or additions to the Program that 22*4882a593Smuzhiyun are not Modified Works. 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun"Contributor" means any person or entity that Distributes the Program. 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun"Licensed Patents" mean patent claims licensable by a Contributor which 27*4882a593Smuzhiyunare necessarily infringed by the use or sale of its Contribution alone 28*4882a593Smuzhiyunor when combined with the Program. 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun"Program" means the Contributions Distributed in accordance with this 31*4882a593SmuzhiyunAgreement. 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun"Recipient" means anyone who receives the Program under this Agreement 34*4882a593Smuzhiyunor any Secondary License (as applicable), including Contributors. 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun"Derivative Works" shall mean any work, whether in Source Code or other 37*4882a593Smuzhiyunform, that is based on (or derived from) the Program and for which the 38*4882a593Smuzhiyuneditorial revisions, annotations, elaborations, or other modifications 39*4882a593Smuzhiyunrepresent, as a whole, an original work of authorship. 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun"Modified Works" shall mean any work in Source Code or other form that 42*4882a593Smuzhiyunresults from an addition to, deletion from, or modification of the 43*4882a593Smuzhiyuncontents of the Program, including, for purposes of clarity any new file 44*4882a593Smuzhiyunin Source Code form that contains any contents of the Program. Modified 45*4882a593SmuzhiyunWorks shall not include works that contain only declarations, 46*4882a593Smuzhiyuninterfaces, types, classes, structures, or files of the Program solely 47*4882a593Smuzhiyunin each case in order to link to, bind by name, or subclass the Program 48*4882a593Smuzhiyunor Modified Works thereof. 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun"Distribute" means the acts of a) distributing or b) making available 51*4882a593Smuzhiyunin any manner that enables the transfer of a copy. 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun"Source Code" means the form of a Program preferred for making 54*4882a593Smuzhiyunmodifications, including but not limited to software source code, 55*4882a593Smuzhiyundocumentation source, and configuration files. 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun"Secondary License" means either the GNU General Public License, 58*4882a593SmuzhiyunVersion 2.0, or any later versions of that license, including any 59*4882a593Smuzhiyunexceptions or additional permissions as identified by the initial 60*4882a593SmuzhiyunContributor. 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun2. GRANT OF RIGHTS 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun a) Subject to the terms of this Agreement, each Contributor hereby 65*4882a593Smuzhiyun grants Recipient a non-exclusive, worldwide, royalty-free copyright 66*4882a593Smuzhiyun license to reproduce, prepare Derivative Works of, publicly display, 67*4882a593Smuzhiyun publicly perform, Distribute and sublicense the Contribution of such 68*4882a593Smuzhiyun Contributor, if any, and such Derivative Works. 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun b) Subject to the terms of this Agreement, each Contributor hereby 71*4882a593Smuzhiyun grants Recipient a non-exclusive, worldwide, royalty-free patent 72*4882a593Smuzhiyun license under Licensed Patents to make, use, sell, offer to sell, 73*4882a593Smuzhiyun import and otherwise transfer the Contribution of such Contributor, 74*4882a593Smuzhiyun if any, in Source Code or other form. This patent license shall 75*4882a593Smuzhiyun apply to the combination of the Contribution and the Program if, at 76*4882a593Smuzhiyun the time the Contribution is added by the Contributor, such addition 77*4882a593Smuzhiyun of the Contribution causes such combination to be covered by the 78*4882a593Smuzhiyun Licensed Patents. The patent license shall not apply to any other 79*4882a593Smuzhiyun combinations which include the Contribution. No hardware per se is 80*4882a593Smuzhiyun licensed hereunder. 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun c) Recipient understands that although each Contributor grants the 83*4882a593Smuzhiyun licenses to its Contributions set forth herein, no assurances are 84*4882a593Smuzhiyun provided by any Contributor that the Program does not infringe the 85*4882a593Smuzhiyun patent or other intellectual property rights of any other entity. 86*4882a593Smuzhiyun Each Contributor disclaims any liability to Recipient for claims 87*4882a593Smuzhiyun brought by any other entity based on infringement of intellectual 88*4882a593Smuzhiyun property rights or otherwise. As a condition to exercising the 89*4882a593Smuzhiyun rights and licenses granted hereunder, each Recipient hereby 90*4882a593Smuzhiyun assumes sole responsibility to secure any other intellectual 91*4882a593Smuzhiyun property rights needed, if any. For example, if a third party 92*4882a593Smuzhiyun patent license is required to allow Recipient to Distribute the 93*4882a593Smuzhiyun Program, it is Recipient's responsibility to acquire that license 94*4882a593Smuzhiyun before distributing the Program. 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun d) Each Contributor represents that to its knowledge it has 97*4882a593Smuzhiyun sufficient copyright rights in its Contribution, if any, to grant 98*4882a593Smuzhiyun the copyright license set forth in this Agreement. 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun e) Notwithstanding the terms of any Secondary License, no 101*4882a593Smuzhiyun Contributor makes additional grants to any Recipient (other than 102*4882a593Smuzhiyun those set forth in this Agreement) as a result of such Recipient's 103*4882a593Smuzhiyun receipt of the Program under the terms of a Secondary License 104*4882a593Smuzhiyun (if permitted under the terms of Section 3). 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun3. REQUIREMENTS 107*4882a593Smuzhiyun 108*4882a593Smuzhiyun3.1 If a Contributor Distributes the Program in any form, then: 109*4882a593Smuzhiyun 110*4882a593Smuzhiyun a) the Program must also be made available as Source Code, in 111*4882a593Smuzhiyun accordance with section 3.2, and the Contributor must accompany 112*4882a593Smuzhiyun the Program with a statement that the Source Code for the Program 113*4882a593Smuzhiyun is available under this Agreement, and informs Recipients how to 114*4882a593Smuzhiyun obtain it in a reasonable manner on or through a medium customarily 115*4882a593Smuzhiyun used for software exchange; and 116*4882a593Smuzhiyun 117*4882a593Smuzhiyun b) the Contributor may Distribute the Program under a license 118*4882a593Smuzhiyun different than this Agreement, provided that such license: 119*4882a593Smuzhiyun i) effectively disclaims on behalf of all other Contributors all 120*4882a593Smuzhiyun warranties and conditions, express and implied, including 121*4882a593Smuzhiyun warranties or conditions of title and non-infringement, and 122*4882a593Smuzhiyun implied warranties or conditions of merchantability and fitness 123*4882a593Smuzhiyun for a particular purpose; 124*4882a593Smuzhiyun 125*4882a593Smuzhiyun ii) effectively excludes on behalf of all other Contributors all 126*4882a593Smuzhiyun liability for damages, including direct, indirect, special, 127*4882a593Smuzhiyun incidental and consequential damages, such as lost profits; 128*4882a593Smuzhiyun 129*4882a593Smuzhiyun iii) does not attempt to limit or alter the recipients' rights 130*4882a593Smuzhiyun in the Source Code under section 3.2; and 131*4882a593Smuzhiyun 132*4882a593Smuzhiyun iv) requires any subsequent distribution of the Program by any 133*4882a593Smuzhiyun party to be under a license that satisfies the requirements 134*4882a593Smuzhiyun of this section 3. 135*4882a593Smuzhiyun 136*4882a593Smuzhiyun3.2 When the Program is Distributed as Source Code: 137*4882a593Smuzhiyun 138*4882a593Smuzhiyun a) it must be made available under this Agreement, or if the 139*4882a593Smuzhiyun Program (i) is combined with other material in a separate file or 140*4882a593Smuzhiyun files made available under a Secondary License, and (ii) the initial 141*4882a593Smuzhiyun Contributor attached to the Source Code the notice described in 142*4882a593Smuzhiyun Exhibit A of this Agreement, then the Program may be made available 143*4882a593Smuzhiyun under the terms of such Secondary Licenses, and 144*4882a593Smuzhiyun 145*4882a593Smuzhiyun b) a copy of this Agreement must be included with each copy of 146*4882a593Smuzhiyun the Program. 147*4882a593Smuzhiyun 148*4882a593Smuzhiyun3.3 Contributors may not remove or alter any copyright, patent, 149*4882a593Smuzhiyuntrademark, attribution notices, disclaimers of warranty, or limitations 150*4882a593Smuzhiyunof liability ("notices") contained within the Program from any copy of 151*4882a593Smuzhiyunthe Program which they Distribute, provided that Contributors may add 152*4882a593Smuzhiyuntheir own appropriate notices. 153*4882a593Smuzhiyun 154*4882a593Smuzhiyun4. COMMERCIAL DISTRIBUTION 155*4882a593Smuzhiyun 156*4882a593SmuzhiyunCommercial distributors of software may accept certain responsibilities 157*4882a593Smuzhiyunwith respect to end users, business partners and the like. While this 158*4882a593Smuzhiyunlicense is intended to facilitate the commercial use of the Program, 159*4882a593Smuzhiyunthe Contributor who includes the Program in a commercial product 160*4882a593Smuzhiyunoffering should do so in a manner which does not create potential 161*4882a593Smuzhiyunliability for other Contributors. Therefore, if a Contributor includes 162*4882a593Smuzhiyunthe Program in a commercial product offering, such Contributor 163*4882a593Smuzhiyun("Commercial Contributor") hereby agrees to defend and indemnify every 164*4882a593Smuzhiyunother Contributor ("Indemnified Contributor") against any losses, 165*4882a593Smuzhiyundamages and costs (collectively "Losses") arising from claims, lawsuits 166*4882a593Smuzhiyunand other legal actions brought by a third party against the Indemnified 167*4882a593SmuzhiyunContributor to the extent caused by the acts or omissions of such 168*4882a593SmuzhiyunCommercial Contributor in connection with its distribution of the Program 169*4882a593Smuzhiyunin a commercial product offering. The obligations in this section do not 170*4882a593Smuzhiyunapply to any claims or Losses relating to any actual or alleged 171*4882a593Smuzhiyunintellectual property infringement. In order to qualify, an Indemnified 172*4882a593SmuzhiyunContributor must: a) promptly notify the Commercial Contributor in 173*4882a593Smuzhiyunwriting of such claim, and b) allow the Commercial Contributor to control, 174*4882a593Smuzhiyunand cooperate with the Commercial Contributor in, the defense and any 175*4882a593Smuzhiyunrelated settlement negotiations. The Indemnified Contributor may 176*4882a593Smuzhiyunparticipate in any such claim at its own expense. 177*4882a593Smuzhiyun 178*4882a593SmuzhiyunFor example, a Contributor might include the Program in a commercial 179*4882a593Smuzhiyunproduct offering, Product X. That Contributor is then a Commercial 180*4882a593SmuzhiyunContributor. If that Commercial Contributor then makes performance 181*4882a593Smuzhiyunclaims, or offers warranties related to Product X, those performance 182*4882a593Smuzhiyunclaims and warranties are such Commercial Contributor's responsibility 183*4882a593Smuzhiyunalone. Under this section, the Commercial Contributor would have to 184*4882a593Smuzhiyundefend claims against the other Contributors related to those performance 185*4882a593Smuzhiyunclaims and warranties, and if a court requires any other Contributor to 186*4882a593Smuzhiyunpay any damages as a result, the Commercial Contributor must pay 187*4882a593Smuzhiyunthose damages. 188*4882a593Smuzhiyun 189*4882a593Smuzhiyun5. NO WARRANTY 190*4882a593Smuzhiyun 191*4882a593SmuzhiyunEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT 192*4882a593SmuzhiyunPERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS" 193*4882a593SmuzhiyunBASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR 194*4882a593SmuzhiyunIMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF 195*4882a593SmuzhiyunTITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR 196*4882a593SmuzhiyunPURPOSE. Each Recipient is solely responsible for determining the 197*4882a593Smuzhiyunappropriateness of using and distributing the Program and assumes all 198*4882a593Smuzhiyunrisks associated with its exercise of rights under this Agreement, 199*4882a593Smuzhiyunincluding but not limited to the risks and costs of program errors, 200*4882a593Smuzhiyuncompliance with applicable laws, damage to or loss of data, programs 201*4882a593Smuzhiyunor equipment, and unavailability or interruption of operations. 202*4882a593Smuzhiyun 203*4882a593Smuzhiyun6. DISCLAIMER OF LIABILITY 204*4882a593Smuzhiyun 205*4882a593SmuzhiyunEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT 206*4882a593SmuzhiyunPERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS 207*4882a593SmuzhiyunSHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 208*4882a593SmuzhiyunEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST 209*4882a593SmuzhiyunPROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 210*4882a593SmuzhiyunCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 211*4882a593SmuzhiyunARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE 212*4882a593SmuzhiyunEXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE 213*4882a593SmuzhiyunPOSSIBILITY OF SUCH DAMAGES. 214*4882a593Smuzhiyun 215*4882a593Smuzhiyun7. GENERAL 216*4882a593Smuzhiyun 217*4882a593SmuzhiyunIf any provision of this Agreement is invalid or unenforceable under 218*4882a593Smuzhiyunapplicable law, it shall not affect the validity or enforceability of 219*4882a593Smuzhiyunthe remainder of the terms of this Agreement, and without further 220*4882a593Smuzhiyunaction by the parties hereto, such provision shall be reformed to the 221*4882a593Smuzhiyunminimum extent necessary to make such provision valid and enforceable. 222*4882a593Smuzhiyun 223*4882a593SmuzhiyunIf Recipient institutes patent litigation against any entity 224*4882a593Smuzhiyun(including a cross-claim or counterclaim in a lawsuit) alleging that the 225*4882a593SmuzhiyunProgram itself (excluding combinations of the Program with other software 226*4882a593Smuzhiyunor hardware) infringes such Recipient's patent(s), then such Recipient's 227*4882a593Smuzhiyunrights granted under Section 2(b) shall terminate as of the date such 228*4882a593Smuzhiyunlitigation is filed. 229*4882a593Smuzhiyun 230*4882a593SmuzhiyunAll Recipient's rights under this Agreement shall terminate if it 231*4882a593Smuzhiyunfails to comply with any of the material terms or conditions of this 232*4882a593SmuzhiyunAgreement and does not cure such failure in a reasonable period of 233*4882a593Smuzhiyuntime after becoming aware of such noncompliance. If all Recipient's 234*4882a593Smuzhiyunrights under this Agreement terminate, Recipient agrees to cease use 235*4882a593Smuzhiyunand distribution of the Program as soon as reasonably practicable. 236*4882a593SmuzhiyunHowever, Recipient's obligations under this Agreement and any licenses 237*4882a593Smuzhiyungranted by Recipient relating to the Program shall continue and survive. 238*4882a593Smuzhiyun 239*4882a593SmuzhiyunEveryone is permitted to copy and distribute copies of this Agreement, 240*4882a593Smuzhiyunbut in order to avoid inconsistency the Agreement is copyrighted and 241*4882a593Smuzhiyunmay only be modified in the following manner. The Agreement Steward 242*4882a593Smuzhiyunreserves the right to publish new versions (including revisions) of 243*4882a593Smuzhiyunthis Agreement from time to time. No one other than the Agreement 244*4882a593SmuzhiyunSteward has the right to modify this Agreement. The Eclipse Foundation 245*4882a593Smuzhiyunis the initial Agreement Steward. The Eclipse Foundation may assign the 246*4882a593Smuzhiyunresponsibility to serve as the Agreement Steward to a suitable separate 247*4882a593Smuzhiyunentity. Each new version of the Agreement will be given a distinguishing 248*4882a593Smuzhiyunversion number. The Program (including Contributions) may always be 249*4882a593SmuzhiyunDistributed subject to the version of the Agreement under which it was 250*4882a593Smuzhiyunreceived. In addition, after a new version of the Agreement is published, 251*4882a593SmuzhiyunContributor may elect to Distribute the Program (including its 252*4882a593SmuzhiyunContributions) under the new version. 253*4882a593Smuzhiyun 254*4882a593SmuzhiyunExcept as expressly stated in Sections 2(a) and 2(b) above, Recipient 255*4882a593Smuzhiyunreceives no rights or licenses to the intellectual property of any 256*4882a593SmuzhiyunContributor under this Agreement, whether expressly, by implication, 257*4882a593Smuzhiyunestoppel or otherwise. All rights in the Program not expressly granted 258*4882a593Smuzhiyununder this Agreement are reserved. Nothing in this Agreement is intended 259*4882a593Smuzhiyunto be enforceable by any entity that is not a Contributor or Recipient. 260*4882a593SmuzhiyunNo third-party beneficiary rights are created under this Agreement. 261*4882a593Smuzhiyun 262*4882a593SmuzhiyunExhibit A - Form of Secondary Licenses Notice 263*4882a593Smuzhiyun 264*4882a593Smuzhiyun"This Source Code may also be made available under the following 265*4882a593SmuzhiyunSecondary Licenses when the conditions for such availability set forth 266*4882a593Smuzhiyunin the Eclipse Public License, v. 2.0 are satisfied: {name license(s), 267*4882a593Smuzhiyunversion(s), and exceptions or additional permissions here}." 268*4882a593Smuzhiyun 269*4882a593Smuzhiyun Simply including a copy of this Agreement, including this Exhibit A 270*4882a593Smuzhiyun is not sufficient to license the Source Code under Secondary Licenses. 271*4882a593Smuzhiyun 272*4882a593Smuzhiyun If it is not possible or desirable to put the notice in a particular 273*4882a593Smuzhiyun file, then You may include the notice in a location (such as a LICENSE 274*4882a593Smuzhiyun file in a relevant directory) where a recipient would be likely to 275*4882a593Smuzhiyun look for such a notice. 276*4882a593Smuzhiyun 277*4882a593Smuzhiyun You may add additional accurate notices of copyright ownership. 278