@theia/plugin 1.37.0-next.3 → 1.37.0-next.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/theia-proposed.d.ts +0 -29
- package/src/theia.d.ts +232 -2
- package/LICENSE +0 -642
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin",
|
|
3
|
-
"version": "1.37.0-next.
|
|
3
|
+
"version": "1.37.0-next.30+a84ea3548",
|
|
4
4
|
"description": "Theia - Plugin API",
|
|
5
5
|
"types": "./src/theia.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"nyc": {
|
|
33
33
|
"extends": "../../configs/nyc.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "a84ea3548719abecf47c8ed2234f20afbe998ba3"
|
|
36
36
|
}
|
package/src/theia-proposed.d.ts
CHANGED
|
@@ -168,35 +168,6 @@ export module '@theia/plugin' {
|
|
|
168
168
|
color?: ThemeColor;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
// #region LogLevel: https://github.com/microsoft/vscode/issues/85992
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* The severity level of a log message
|
|
175
|
-
*/
|
|
176
|
-
export enum LogLevel {
|
|
177
|
-
Trace = 1,
|
|
178
|
-
Debug = 2,
|
|
179
|
-
Info = 3,
|
|
180
|
-
Warning = 4,
|
|
181
|
-
Error = 5,
|
|
182
|
-
Critical = 6,
|
|
183
|
-
Off = 7
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export namespace env {
|
|
187
|
-
/**
|
|
188
|
-
* Current logging level.
|
|
189
|
-
*/
|
|
190
|
-
export const logLevel: LogLevel;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* An [event](#Event) that fires when the log level has changed.
|
|
194
|
-
*/
|
|
195
|
-
export const onDidChangeLogLevel: Event<LogLevel>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// #endregion
|
|
199
|
-
|
|
200
171
|
// #region search in workspace
|
|
201
172
|
/**
|
|
202
173
|
* The parameters of a query for text search.
|
package/src/theia.d.ts
CHANGED
|
@@ -2702,6 +2702,9 @@ export module '@theia/plugin' {
|
|
|
2702
2702
|
|
|
2703
2703
|
/**
|
|
2704
2704
|
* An output channel is a container for readonly textual information.
|
|
2705
|
+
*
|
|
2706
|
+
* To get an instance of an `OutputChannel` use
|
|
2707
|
+
* {@link window.createOutputChannel createOutputChannel}.
|
|
2705
2708
|
*/
|
|
2706
2709
|
export interface OutputChannel {
|
|
2707
2710
|
|
|
@@ -2765,6 +2768,106 @@ export module '@theia/plugin' {
|
|
|
2765
2768
|
dispose(): void;
|
|
2766
2769
|
}
|
|
2767
2770
|
|
|
2771
|
+
/**
|
|
2772
|
+
* Log levels
|
|
2773
|
+
*/
|
|
2774
|
+
export enum LogLevel {
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* No messages are logged with this level.
|
|
2778
|
+
*/
|
|
2779
|
+
Off = 0,
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* All messages are logged with this level.
|
|
2783
|
+
*/
|
|
2784
|
+
Trace = 1,
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* Messages with debug and higher log level are logged with this level.
|
|
2788
|
+
*/
|
|
2789
|
+
Debug = 2,
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* Messages with info and higher log level are logged with this level.
|
|
2793
|
+
*/
|
|
2794
|
+
Info = 3,
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Messages with warning and higher log level are logged with this level.
|
|
2798
|
+
*/
|
|
2799
|
+
Warning = 4,
|
|
2800
|
+
|
|
2801
|
+
/**
|
|
2802
|
+
* Only error messages are logged with this level.
|
|
2803
|
+
*/
|
|
2804
|
+
Error = 5
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
/**
|
|
2808
|
+
* A channel for containing log output.
|
|
2809
|
+
*
|
|
2810
|
+
* To get an instance of a `LogOutputChannel` use
|
|
2811
|
+
* {@link window.createOutputChannel createOutputChannel}.
|
|
2812
|
+
*/
|
|
2813
|
+
export interface LogOutputChannel extends OutputChannel {
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* The current log level of the channel. Defaults to {@link env.logLevel editor log level}.
|
|
2817
|
+
*/
|
|
2818
|
+
readonly logLevel: LogLevel;
|
|
2819
|
+
|
|
2820
|
+
/**
|
|
2821
|
+
* An {@link Event} which fires when the log level of the channel changes.
|
|
2822
|
+
*/
|
|
2823
|
+
readonly onDidChangeLogLevel: Event<LogLevel>;
|
|
2824
|
+
|
|
2825
|
+
/**
|
|
2826
|
+
* Outputs the given trace message to the channel. Use this method to log verbose information.
|
|
2827
|
+
*
|
|
2828
|
+
* The message is only loggeed if the channel is configured to display {@link LogLevel.Trace trace} log level.
|
|
2829
|
+
*
|
|
2830
|
+
* @param message trace message to log
|
|
2831
|
+
*/
|
|
2832
|
+
trace(message: string, ...args: any[]): void;
|
|
2833
|
+
|
|
2834
|
+
/**
|
|
2835
|
+
* Outputs the given debug message to the channel.
|
|
2836
|
+
*
|
|
2837
|
+
* The message is only loggeed if the channel is configured to display {@link LogLevel.Debug debug} log level or lower.
|
|
2838
|
+
*
|
|
2839
|
+
* @param message debug message to log
|
|
2840
|
+
*/
|
|
2841
|
+
debug(message: string, ...args: any[]): void;
|
|
2842
|
+
|
|
2843
|
+
/**
|
|
2844
|
+
* Outputs the given information message to the channel.
|
|
2845
|
+
*
|
|
2846
|
+
* The message is only loggeed if the channel is configured to display {@link LogLevel.Info info} log level or lower.
|
|
2847
|
+
*
|
|
2848
|
+
* @param message info message to log
|
|
2849
|
+
*/
|
|
2850
|
+
info(message: string, ...args: any[]): void;
|
|
2851
|
+
|
|
2852
|
+
/**
|
|
2853
|
+
* Outputs the given warning message to the channel.
|
|
2854
|
+
*
|
|
2855
|
+
* The message is only loggeed if the channel is configured to display {@link LogLevel.Warning warning} log level or lower.
|
|
2856
|
+
*
|
|
2857
|
+
* @param message warning message to log
|
|
2858
|
+
*/
|
|
2859
|
+
warn(message: string, ...args: any[]): void;
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* Outputs the given error or error message to the channel.
|
|
2863
|
+
*
|
|
2864
|
+
* The message is only loggeed if the channel is configured to display {@link LogLevel.Error error} log level or lower.
|
|
2865
|
+
*
|
|
2866
|
+
* @param error Error or error message to log
|
|
2867
|
+
*/
|
|
2868
|
+
error(error: string | Error, ...args: any[]): void;
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2768
2871
|
/**
|
|
2769
2872
|
* Options to configure the behaviour of a file open dialog.
|
|
2770
2873
|
*
|
|
@@ -5250,6 +5353,14 @@ export module '@theia/plugin' {
|
|
|
5250
5353
|
*/
|
|
5251
5354
|
export function createOutputChannel(name: string): OutputChannel;
|
|
5252
5355
|
|
|
5356
|
+
/**
|
|
5357
|
+
* Creates a new {@link LogOutputChannel log output channel} with the given name.
|
|
5358
|
+
*
|
|
5359
|
+
* @param name Human-readable string which will be used to represent the channel in the UI.
|
|
5360
|
+
* @param options Options for the log output channel.
|
|
5361
|
+
*/
|
|
5362
|
+
export function createOutputChannel(name: string, options: { log: true }): LogOutputChannel;
|
|
5363
|
+
|
|
5253
5364
|
/**
|
|
5254
5365
|
* Create new terminal.
|
|
5255
5366
|
* @param name - terminal name to display on the UI.
|
|
@@ -7527,6 +7638,15 @@ export module '@theia/plugin' {
|
|
|
7527
7638
|
*/
|
|
7528
7639
|
export function asExternalUri(target: Uri): Thenable<Uri>;
|
|
7529
7640
|
|
|
7641
|
+
/**
|
|
7642
|
+
* The current log level of the editor.
|
|
7643
|
+
*/
|
|
7644
|
+
export const logLevel: LogLevel;
|
|
7645
|
+
|
|
7646
|
+
/**
|
|
7647
|
+
* An {@link Event} which fires when the log level of the editor changes.
|
|
7648
|
+
*/
|
|
7649
|
+
export const onDidChangeLogLevel: Event<LogLevel>;
|
|
7530
7650
|
}
|
|
7531
7651
|
|
|
7532
7652
|
/**
|
|
@@ -12864,6 +12984,11 @@ export module '@theia/plugin' {
|
|
|
12864
12984
|
*/
|
|
12865
12985
|
label?: string;
|
|
12866
12986
|
|
|
12987
|
+
/**
|
|
12988
|
+
* The optional state of a comment thread, which may affect how the comment is displayed.
|
|
12989
|
+
*/
|
|
12990
|
+
state?: CommentThreadState;
|
|
12991
|
+
|
|
12867
12992
|
/**
|
|
12868
12993
|
* Dispose this comment thread.
|
|
12869
12994
|
*
|
|
@@ -12877,6 +13002,14 @@ export module '@theia/plugin' {
|
|
|
12877
13002
|
canReply: boolean;
|
|
12878
13003
|
}
|
|
12879
13004
|
|
|
13005
|
+
/**
|
|
13006
|
+
* The state of a comment thread.
|
|
13007
|
+
*/
|
|
13008
|
+
export enum CommentThreadState {
|
|
13009
|
+
Unresolved = 0,
|
|
13010
|
+
Resolved = 1
|
|
13011
|
+
}
|
|
13012
|
+
|
|
12880
13013
|
/**
|
|
12881
13014
|
* Author information of a {@link Comment comment}
|
|
12882
13015
|
*/
|
|
@@ -13712,6 +13845,82 @@ export module '@theia/plugin' {
|
|
|
13712
13845
|
export function registerAuthenticationProvider(id: string, label: string, provider: AuthenticationProvider, options?: AuthenticationProviderOptions): Disposable;
|
|
13713
13846
|
}
|
|
13714
13847
|
|
|
13848
|
+
/**
|
|
13849
|
+
* Namespace for localization-related functionality in the extension API. To use this properly,
|
|
13850
|
+
* you must have `l10n` defined in your extension manifest and have bundle.l10n.<language>.json files.
|
|
13851
|
+
* For more information on how to generate bundle.l10n.<language>.json files, check out the
|
|
13852
|
+
* [vscode-l10n repo](https://github.com/microsoft/vscode-l10n).
|
|
13853
|
+
*
|
|
13854
|
+
* Note: Built-in extensions (for example, Git, TypeScript Language Features, GitHub Authentication)
|
|
13855
|
+
* are excluded from the `l10n` property requirement. In other words, they do not need to specify
|
|
13856
|
+
* a `l10n` in the extension manifest because their translated strings come from Language Packs.
|
|
13857
|
+
*/
|
|
13858
|
+
export namespace l10n {
|
|
13859
|
+
/**
|
|
13860
|
+
* Marks a string for localization. If a localized bundle is available for the language specified by
|
|
13861
|
+
* {@link env.language} and the bundle has a localized value for this message, then that localized
|
|
13862
|
+
* value will be returned (with injected {@link args} values for any templated values).
|
|
13863
|
+
* @param message - The message to localize. Supports index templating where strings like `{0}` and `{1}` are
|
|
13864
|
+
* replaced by the item at that index in the {@link args} array.
|
|
13865
|
+
* @param args - The arguments to be used in the localized string. The index of the argument is used to
|
|
13866
|
+
* match the template placeholder in the localized string.
|
|
13867
|
+
* @returns localized string with injected arguments.
|
|
13868
|
+
* @example `l10n.t('Hello {0}!', 'World');`
|
|
13869
|
+
*/
|
|
13870
|
+
export function t(message: string, ...args: Array<string | number | boolean>): string;
|
|
13871
|
+
|
|
13872
|
+
/**
|
|
13873
|
+
* Marks a string for localization. If a localized bundle is available for the language specified by
|
|
13874
|
+
* {@link env.language} and the bundle has a localized value for this message, then that localized
|
|
13875
|
+
* value will be returned (with injected {@link args} values for any templated values).
|
|
13876
|
+
* @param message The message to localize. Supports named templating where strings like `{foo}` and `{bar}` are
|
|
13877
|
+
* replaced by the value in the Record for that key (foo, bar, etc).
|
|
13878
|
+
* @param args The arguments to be used in the localized string. The name of the key in the record is used to
|
|
13879
|
+
* match the template placeholder in the localized string.
|
|
13880
|
+
* @returns localized string with injected arguments.
|
|
13881
|
+
* @example `l10n.t('Hello {name}', { name: 'Erich' });`
|
|
13882
|
+
*/
|
|
13883
|
+
export function t(message: string, args: Record<string, any>): string;
|
|
13884
|
+
/**
|
|
13885
|
+
* Marks a string for localization. If a localized bundle is available for the language specified by
|
|
13886
|
+
* {@link env.language} and the bundle has a localized value for this message, then that localized
|
|
13887
|
+
* value will be returned (with injected args values for any templated values).
|
|
13888
|
+
* @param options The options to use when localizing the message.
|
|
13889
|
+
* @returns localized string with injected arguments.
|
|
13890
|
+
*/
|
|
13891
|
+
export function t(options: {
|
|
13892
|
+
/**
|
|
13893
|
+
* The message to localize. If {@link args} is an array, this message supports index templating where strings like
|
|
13894
|
+
* `{0}` and `{1}` are replaced by the item at that index in the {@link args} array. If `args` is a `Record<string, any>`,
|
|
13895
|
+
* this supports named templating where strings like `{foo}` and `{bar}` are replaced by the value in
|
|
13896
|
+
* the Record for that key (foo, bar, etc).
|
|
13897
|
+
*/
|
|
13898
|
+
message: string;
|
|
13899
|
+
/**
|
|
13900
|
+
* The arguments to be used in the localized string. As an array, the index of the argument is used to
|
|
13901
|
+
* match the template placeholder in the localized string. As a Record, the key is used to match the template
|
|
13902
|
+
* placeholder in the localized string.
|
|
13903
|
+
*/
|
|
13904
|
+
args?: Array<string | number | boolean> | Record<string, any>;
|
|
13905
|
+
/**
|
|
13906
|
+
* A comment to help translators understand the context of the message.
|
|
13907
|
+
*/
|
|
13908
|
+
comment: string | string[];
|
|
13909
|
+
}): string;
|
|
13910
|
+
/**
|
|
13911
|
+
* The bundle of localized strings that have been loaded for the extension.
|
|
13912
|
+
* It's undefined if no bundle has been loaded. The bundle is typically not loaded if
|
|
13913
|
+
* there was no bundle found or when we are running with the default language.
|
|
13914
|
+
*/
|
|
13915
|
+
export const bundle: { [key: string]: string } | undefined;
|
|
13916
|
+
/**
|
|
13917
|
+
* The URI of the localization bundle that has been loaded for the extension.
|
|
13918
|
+
* It's undefined if no bundle has been loaded. The bundle is typically not loaded if
|
|
13919
|
+
* there was no bundle found or when we are running with the default language.
|
|
13920
|
+
*/
|
|
13921
|
+
export const uri: Uri | undefined;
|
|
13922
|
+
}
|
|
13923
|
+
|
|
13715
13924
|
/**
|
|
13716
13925
|
* The tab represents a single text based resource.
|
|
13717
13926
|
*/
|
|
@@ -15363,6 +15572,14 @@ export interface TestRunProfile {
|
|
|
15363
15572
|
*/
|
|
15364
15573
|
isDefault: boolean;
|
|
15365
15574
|
|
|
15575
|
+
/**
|
|
15576
|
+
* Whether this profile supports continuous running of requests. If so,
|
|
15577
|
+
* then {@link TestRunRequest.continuous} may be set to `true`. Defaults
|
|
15578
|
+
* to false.
|
|
15579
|
+
* @stubbed
|
|
15580
|
+
*/
|
|
15581
|
+
supportsContinuousRun: boolean;
|
|
15582
|
+
|
|
15366
15583
|
/**
|
|
15367
15584
|
* Associated tag for the profile. If this is set, only {@link TestItem}
|
|
15368
15585
|
* instances with the same tag will be eligible to execute in this profile.
|
|
@@ -15385,6 +15602,11 @@ export interface TestRunProfile {
|
|
|
15385
15602
|
* associated with the request should be created before the function returns
|
|
15386
15603
|
* or the returned promise is resolved.
|
|
15387
15604
|
*
|
|
15605
|
+
* If {@link supportsContinuousRun} is set, then {@link TestRunRequest.continuous}
|
|
15606
|
+
* may be `true`. In this case, the profile should observe changes to
|
|
15607
|
+
* source code and create new test runs by calling {@link TestController.createTestRun},
|
|
15608
|
+
* until the cancellation is requested on the `token`.
|
|
15609
|
+
*
|
|
15388
15610
|
* @param request Request information for the test run.
|
|
15389
15611
|
* @param cancellationToken Token that signals the used asked to abort the
|
|
15390
15612
|
* test run. If cancellation is requested on this token, all {@link TestRun}
|
|
@@ -15444,11 +15666,12 @@ export interface TestController {
|
|
|
15444
15666
|
* @param runHandler Function called to start a test run.
|
|
15445
15667
|
* @param isDefault Whether this is the default action for its kind.
|
|
15446
15668
|
* @param tag Profile test tag.
|
|
15669
|
+
* @param supportsContinuousRun Whether the profile supports continuous running.
|
|
15447
15670
|
* @returns An instance of a {@link TestRunProfile}, which is automatically
|
|
15448
15671
|
* associated with this controller.
|
|
15449
15672
|
* @stubbed
|
|
15450
15673
|
*/
|
|
15451
|
-
createRunProfile(label: string, kind: TestRunProfileKind, runHandler: (request: TestRunRequest, token: CancellationToken) => Thenable<void> | void, isDefault?: boolean, tag?: TestTag): TestRunProfile;
|
|
15674
|
+
createRunProfile(label: string, kind: TestRunProfileKind, runHandler: (request: TestRunRequest, token: CancellationToken) => Thenable<void> | void, isDefault?: boolean, tag?: TestTag, supportsContinuousRun?: boolean): TestRunProfile;
|
|
15452
15675
|
|
|
15453
15676
|
/**
|
|
15454
15677
|
* A function provided by the extension that the editor may call to request
|
|
@@ -15568,12 +15791,19 @@ export class TestRunRequest {
|
|
|
15568
15791
|
*/
|
|
15569
15792
|
readonly profile: TestRunProfile | undefined;
|
|
15570
15793
|
|
|
15794
|
+
/**
|
|
15795
|
+
* Whether the profile should run continuously as source code changes. Only
|
|
15796
|
+
* relevant for profiles that set {@link TestRunProfile.supportsContinuousRun}.
|
|
15797
|
+
*/
|
|
15798
|
+
readonly continuous?: boolean;
|
|
15799
|
+
|
|
15571
15800
|
/**
|
|
15572
15801
|
* @param include Array of specific tests to run, or undefined to run all tests
|
|
15573
15802
|
* @param exclude An array of tests to exclude from the run.
|
|
15574
15803
|
* @param profile The run profile used for this request.
|
|
15804
|
+
* @param continuous Whether to run tests continuously as source changes.
|
|
15575
15805
|
*/
|
|
15576
|
-
constructor(include?: readonly TestItem[], exclude?: readonly TestItem[], profile?: TestRunProfile);
|
|
15806
|
+
constructor(include?: readonly TestItem[], exclude?: readonly TestItem[], profile?: TestRunProfile, continuous?: boolean);
|
|
15577
15807
|
}
|
|
15578
15808
|
|
|
15579
15809
|
/**
|
package/LICENSE
DELETED
|
@@ -1,642 +0,0 @@
|
|
|
1
|
-
This program and the accompanying materials are made available under the
|
|
2
|
-
terms of the Eclipse Public License v. 2.0 which is available at
|
|
3
|
-
https://www.eclipse.org/legal/epl-2.0, or GNU General Public License, version 2
|
|
4
|
-
with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.
|
|
5
|
-
|
|
6
|
-
# Eclipse Public License - v 2.0
|
|
7
|
-
|
|
8
|
-
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
|
|
9
|
-
PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
|
|
10
|
-
OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
|
11
|
-
|
|
12
|
-
1. DEFINITIONS
|
|
13
|
-
|
|
14
|
-
"Contribution" means:
|
|
15
|
-
|
|
16
|
-
a) in the case of the initial Contributor, the initial content
|
|
17
|
-
Distributed under this Agreement, and
|
|
18
|
-
|
|
19
|
-
b) in the case of each subsequent Contributor:
|
|
20
|
-
i) changes to the Program, and
|
|
21
|
-
ii) additions to the Program;
|
|
22
|
-
where such changes and/or additions to the Program originate from
|
|
23
|
-
and are Distributed by that particular Contributor. A Contribution
|
|
24
|
-
"originates" from a Contributor if it was added to the Program by
|
|
25
|
-
such Contributor itself or anyone acting on such Contributor's behalf.
|
|
26
|
-
Contributions do not include changes or additions to the Program that
|
|
27
|
-
are not Modified Works.
|
|
28
|
-
|
|
29
|
-
"Contributor" means any person or entity that Distributes the Program.
|
|
30
|
-
|
|
31
|
-
"Licensed Patents" mean patent claims licensable by a Contributor which
|
|
32
|
-
are necessarily infringed by the use or sale of its Contribution alone
|
|
33
|
-
or when combined with the Program.
|
|
34
|
-
|
|
35
|
-
"Program" means the Contributions Distributed in accordance with this
|
|
36
|
-
Agreement.
|
|
37
|
-
|
|
38
|
-
"Recipient" means anyone who receives the Program under this Agreement
|
|
39
|
-
or any Secondary License (as applicable), including Contributors.
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source Code or other
|
|
42
|
-
form, that is based on (or derived from) the Program and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship.
|
|
45
|
-
|
|
46
|
-
"Modified Works" shall mean any work in Source Code or other form that
|
|
47
|
-
results from an addition to, deletion from, or modification of the
|
|
48
|
-
contents of the Program, including, for purposes of clarity any new file
|
|
49
|
-
in Source Code form that contains any contents of the Program. Modified
|
|
50
|
-
Works shall not include works that contain only declarations,
|
|
51
|
-
interfaces, types, classes, structures, or files of the Program solely
|
|
52
|
-
in each case in order to link to, bind by name, or subclass the Program
|
|
53
|
-
or Modified Works thereof.
|
|
54
|
-
|
|
55
|
-
"Distribute" means the acts of a) distributing or b) making available
|
|
56
|
-
in any manner that enables the transfer of a copy.
|
|
57
|
-
|
|
58
|
-
"Source Code" means the form of a Program preferred for making
|
|
59
|
-
modifications, including but not limited to software source code,
|
|
60
|
-
documentation source, and configuration files.
|
|
61
|
-
|
|
62
|
-
"Secondary License" means either the GNU General Public License,
|
|
63
|
-
Version 2.0, or any later versions of that license, including any
|
|
64
|
-
exceptions or additional permissions as identified by the initial
|
|
65
|
-
Contributor.
|
|
66
|
-
|
|
67
|
-
2. GRANT OF RIGHTS
|
|
68
|
-
|
|
69
|
-
a) Subject to the terms of this Agreement, each Contributor hereby
|
|
70
|
-
grants Recipient a non-exclusive, worldwide, royalty-free copyright
|
|
71
|
-
license to reproduce, prepare Derivative Works of, publicly display,
|
|
72
|
-
publicly perform, Distribute and sublicense the Contribution of such
|
|
73
|
-
Contributor, if any, and such Derivative Works.
|
|
74
|
-
|
|
75
|
-
b) Subject to the terms of this Agreement, each Contributor hereby
|
|
76
|
-
grants Recipient a non-exclusive, worldwide, royalty-free patent
|
|
77
|
-
license under Licensed Patents to make, use, sell, offer to sell,
|
|
78
|
-
import and otherwise transfer the Contribution of such Contributor,
|
|
79
|
-
if any, in Source Code or other form. This patent license shall
|
|
80
|
-
apply to the combination of the Contribution and the Program if, at
|
|
81
|
-
the time the Contribution is added by the Contributor, such addition
|
|
82
|
-
of the Contribution causes such combination to be covered by the
|
|
83
|
-
Licensed Patents. The patent license shall not apply to any other
|
|
84
|
-
combinations which include the Contribution. No hardware per se is
|
|
85
|
-
licensed hereunder.
|
|
86
|
-
|
|
87
|
-
c) Recipient understands that although each Contributor grants the
|
|
88
|
-
licenses to its Contributions set forth herein, no assurances are
|
|
89
|
-
provided by any Contributor that the Program does not infringe the
|
|
90
|
-
patent or other intellectual property rights of any other entity.
|
|
91
|
-
Each Contributor disclaims any liability to Recipient for claims
|
|
92
|
-
brought by any other entity based on infringement of intellectual
|
|
93
|
-
property rights or otherwise. As a condition to exercising the
|
|
94
|
-
rights and licenses granted hereunder, each Recipient hereby
|
|
95
|
-
assumes sole responsibility to secure any other intellectual
|
|
96
|
-
property rights needed, if any. For example, if a third party
|
|
97
|
-
patent license is required to allow Recipient to Distribute the
|
|
98
|
-
Program, it is Recipient's responsibility to acquire that license
|
|
99
|
-
before distributing the Program.
|
|
100
|
-
|
|
101
|
-
d) Each Contributor represents that to its knowledge it has
|
|
102
|
-
sufficient copyright rights in its Contribution, if any, to grant
|
|
103
|
-
the copyright license set forth in this Agreement.
|
|
104
|
-
|
|
105
|
-
e) Notwithstanding the terms of any Secondary License, no
|
|
106
|
-
Contributor makes additional grants to any Recipient (other than
|
|
107
|
-
those set forth in this Agreement) as a result of such Recipient's
|
|
108
|
-
receipt of the Program under the terms of a Secondary License
|
|
109
|
-
(if permitted under the terms of Section 3).
|
|
110
|
-
|
|
111
|
-
3. REQUIREMENTS
|
|
112
|
-
|
|
113
|
-
3.1 If a Contributor Distributes the Program in any form, then:
|
|
114
|
-
|
|
115
|
-
a) the Program must also be made available as Source Code, in
|
|
116
|
-
accordance with section 3.2, and the Contributor must accompany
|
|
117
|
-
the Program with a statement that the Source Code for the Program
|
|
118
|
-
is available under this Agreement, and informs Recipients how to
|
|
119
|
-
obtain it in a reasonable manner on or through a medium customarily
|
|
120
|
-
used for software exchange; and
|
|
121
|
-
|
|
122
|
-
b) the Contributor may Distribute the Program under a license
|
|
123
|
-
different than this Agreement, provided that such license:
|
|
124
|
-
i) effectively disclaims on behalf of all other Contributors all
|
|
125
|
-
warranties and conditions, express and implied, including
|
|
126
|
-
warranties or conditions of title and non-infringement, and
|
|
127
|
-
implied warranties or conditions of merchantability and fitness
|
|
128
|
-
for a particular purpose;
|
|
129
|
-
|
|
130
|
-
ii) effectively excludes on behalf of all other Contributors all
|
|
131
|
-
liability for damages, including direct, indirect, special,
|
|
132
|
-
incidental and consequential damages, such as lost profits;
|
|
133
|
-
|
|
134
|
-
iii) does not attempt to limit or alter the recipients' rights
|
|
135
|
-
in the Source Code under section 3.2; and
|
|
136
|
-
|
|
137
|
-
iv) requires any subsequent distribution of the Program by any
|
|
138
|
-
party to be under a license that satisfies the requirements
|
|
139
|
-
of this section 3.
|
|
140
|
-
|
|
141
|
-
3.2 When the Program is Distributed as Source Code:
|
|
142
|
-
|
|
143
|
-
a) it must be made available under this Agreement, or if the
|
|
144
|
-
Program (i) is combined with other material in a separate file or
|
|
145
|
-
files made available under a Secondary License, and (ii) the initial
|
|
146
|
-
Contributor attached to the Source Code the notice described in
|
|
147
|
-
Exhibit A of this Agreement, then the Program may be made available
|
|
148
|
-
under the terms of such Secondary Licenses, and
|
|
149
|
-
|
|
150
|
-
b) a copy of this Agreement must be included with each copy of
|
|
151
|
-
the Program.
|
|
152
|
-
|
|
153
|
-
3.3 Contributors may not remove or alter any copyright, patent,
|
|
154
|
-
trademark, attribution notices, disclaimers of warranty, or limitations
|
|
155
|
-
of liability ("notices") contained within the Program from any copy of
|
|
156
|
-
the Program which they Distribute, provided that Contributors may add
|
|
157
|
-
their own appropriate notices.
|
|
158
|
-
|
|
159
|
-
4. COMMERCIAL DISTRIBUTION
|
|
160
|
-
|
|
161
|
-
Commercial distributors of software may accept certain responsibilities
|
|
162
|
-
with respect to end users, business partners and the like. While this
|
|
163
|
-
license is intended to facilitate the commercial use of the Program,
|
|
164
|
-
the Contributor who includes the Program in a commercial product
|
|
165
|
-
offering should do so in a manner which does not create potential
|
|
166
|
-
liability for other Contributors. Therefore, if a Contributor includes
|
|
167
|
-
the Program in a commercial product offering, such Contributor
|
|
168
|
-
("Commercial Contributor") hereby agrees to defend and indemnify every
|
|
169
|
-
other Contributor ("Indemnified Contributor") against any losses,
|
|
170
|
-
damages and costs (collectively "Losses") arising from claims, lawsuits
|
|
171
|
-
and other legal actions brought by a third party against the Indemnified
|
|
172
|
-
Contributor to the extent caused by the acts or omissions of such
|
|
173
|
-
Commercial Contributor in connection with its distribution of the Program
|
|
174
|
-
in a commercial product offering. The obligations in this section do not
|
|
175
|
-
apply to any claims or Losses relating to any actual or alleged
|
|
176
|
-
intellectual property infringement. In order to qualify, an Indemnified
|
|
177
|
-
Contributor must: a) promptly notify the Commercial Contributor in
|
|
178
|
-
writing of such claim, and b) allow the Commercial Contributor to control,
|
|
179
|
-
and cooperate with the Commercial Contributor in, the defense and any
|
|
180
|
-
related settlement negotiations. The Indemnified Contributor may
|
|
181
|
-
participate in any such claim at its own expense.
|
|
182
|
-
|
|
183
|
-
For example, a Contributor might include the Program in a commercial
|
|
184
|
-
product offering, Product X. That Contributor is then a Commercial
|
|
185
|
-
Contributor. If that Commercial Contributor then makes performance
|
|
186
|
-
claims, or offers warranties related to Product X, those performance
|
|
187
|
-
claims and warranties are such Commercial Contributor's responsibility
|
|
188
|
-
alone. Under this section, the Commercial Contributor would have to
|
|
189
|
-
defend claims against the other Contributors related to those performance
|
|
190
|
-
claims and warranties, and if a court requires any other Contributor to
|
|
191
|
-
pay any damages as a result, the Commercial Contributor must pay
|
|
192
|
-
those damages.
|
|
193
|
-
|
|
194
|
-
5. NO WARRANTY
|
|
195
|
-
|
|
196
|
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
|
197
|
-
PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS"
|
|
198
|
-
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
|
|
199
|
-
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
|
|
200
|
-
TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
|
|
201
|
-
PURPOSE. Each Recipient is solely responsible for determining the
|
|
202
|
-
appropriateness of using and distributing the Program and assumes all
|
|
203
|
-
risks associated with its exercise of rights under this Agreement,
|
|
204
|
-
including but not limited to the risks and costs of program errors,
|
|
205
|
-
compliance with applicable laws, damage to or loss of data, programs
|
|
206
|
-
or equipment, and unavailability or interruption of operations.
|
|
207
|
-
|
|
208
|
-
6. DISCLAIMER OF LIABILITY
|
|
209
|
-
|
|
210
|
-
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
|
211
|
-
PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
|
|
212
|
-
SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
213
|
-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
|
|
214
|
-
PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
215
|
-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
216
|
-
ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
|
|
217
|
-
EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
|
|
218
|
-
POSSIBILITY OF SUCH DAMAGES.
|
|
219
|
-
|
|
220
|
-
7. GENERAL
|
|
221
|
-
|
|
222
|
-
If any provision of this Agreement is invalid or unenforceable under
|
|
223
|
-
applicable law, it shall not affect the validity or enforceability of
|
|
224
|
-
the remainder of the terms of this Agreement, and without further
|
|
225
|
-
action by the parties hereto, such provision shall be reformed to the
|
|
226
|
-
minimum extent necessary to make such provision valid and enforceable.
|
|
227
|
-
|
|
228
|
-
If Recipient institutes patent litigation against any entity
|
|
229
|
-
(including a cross-claim or counterclaim in a lawsuit) alleging that the
|
|
230
|
-
Program itself (excluding combinations of the Program with other software
|
|
231
|
-
or hardware) infringes such Recipient's patent(s), then such Recipient's
|
|
232
|
-
rights granted under Section 2(b) shall terminate as of the date such
|
|
233
|
-
litigation is filed.
|
|
234
|
-
|
|
235
|
-
All Recipient's rights under this Agreement shall terminate if it
|
|
236
|
-
fails to comply with any of the material terms or conditions of this
|
|
237
|
-
Agreement and does not cure such failure in a reasonable period of
|
|
238
|
-
time after becoming aware of such noncompliance. If all Recipient's
|
|
239
|
-
rights under this Agreement terminate, Recipient agrees to cease use
|
|
240
|
-
and distribution of the Program as soon as reasonably practicable.
|
|
241
|
-
However, Recipient's obligations under this Agreement and any licenses
|
|
242
|
-
granted by Recipient relating to the Program shall continue and survive.
|
|
243
|
-
|
|
244
|
-
Everyone is permitted to copy and distribute copies of this Agreement,
|
|
245
|
-
but in order to avoid inconsistency the Agreement is copyrighted and
|
|
246
|
-
may only be modified in the following manner. The Agreement Steward
|
|
247
|
-
reserves the right to publish new versions (including revisions) of
|
|
248
|
-
this Agreement from time to time. No one other than the Agreement
|
|
249
|
-
Steward has the right to modify this Agreement. The Eclipse Foundation
|
|
250
|
-
is the initial Agreement Steward. The Eclipse Foundation may assign the
|
|
251
|
-
responsibility to serve as the Agreement Steward to a suitable separate
|
|
252
|
-
entity. Each new version of the Agreement will be given a distinguishing
|
|
253
|
-
version number. The Program (including Contributions) may always be
|
|
254
|
-
Distributed subject to the version of the Agreement under which it was
|
|
255
|
-
received. In addition, after a new version of the Agreement is published,
|
|
256
|
-
Contributor may elect to Distribute the Program (including its
|
|
257
|
-
Contributions) under the new version.
|
|
258
|
-
|
|
259
|
-
Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
|
|
260
|
-
receives no rights or licenses to the intellectual property of any
|
|
261
|
-
Contributor under this Agreement, whether expressly, by implication,
|
|
262
|
-
estoppel or otherwise. All rights in the Program not expressly granted
|
|
263
|
-
under this Agreement are reserved. Nothing in this Agreement is intended
|
|
264
|
-
to be enforceable by any entity that is not a Contributor or Recipient.
|
|
265
|
-
No third-party beneficiary rights are created under this Agreement.
|
|
266
|
-
|
|
267
|
-
Exhibit A - Form of Secondary Licenses Notice
|
|
268
|
-
|
|
269
|
-
"This Source Code may also be made available under the following
|
|
270
|
-
Secondary Licenses when the conditions for such availability set forth
|
|
271
|
-
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
|
|
272
|
-
version(s), and exceptions or additional permissions here}."
|
|
273
|
-
|
|
274
|
-
Simply including a copy of this Agreement, including this Exhibit A
|
|
275
|
-
is not sufficient to license the Source Code under Secondary Licenses.
|
|
276
|
-
|
|
277
|
-
If it is not possible or desirable to put the notice in a particular
|
|
278
|
-
file, then You may include the notice in a location (such as a LICENSE
|
|
279
|
-
file in a relevant directory) where a recipient would be likely to
|
|
280
|
-
look for such a notice.
|
|
281
|
-
|
|
282
|
-
You may add additional accurate notices of copyright ownership.
|
|
283
|
-
|
|
284
|
-
---
|
|
285
|
-
|
|
286
|
-
## The GNU General Public License (GPL) Version 2, June 1991
|
|
287
|
-
|
|
288
|
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
289
|
-
51 Franklin Street, Fifth Floor
|
|
290
|
-
Boston, MA 02110-1335
|
|
291
|
-
USA
|
|
292
|
-
|
|
293
|
-
Everyone is permitted to copy and distribute verbatim copies
|
|
294
|
-
of this license document, but changing it is not allowed.
|
|
295
|
-
|
|
296
|
-
Preamble
|
|
297
|
-
|
|
298
|
-
The licenses for most software are designed to take away your freedom to
|
|
299
|
-
share and change it. By contrast, the GNU General Public License is
|
|
300
|
-
intended to guarantee your freedom to share and change free software--to
|
|
301
|
-
make sure the software is free for all its users. This General Public
|
|
302
|
-
License applies to most of the Free Software Foundation's software and
|
|
303
|
-
to any other program whose authors commit to using it. (Some other Free
|
|
304
|
-
Software Foundation software is covered by the GNU Library General
|
|
305
|
-
Public License instead.) You can apply it to your programs, too.
|
|
306
|
-
|
|
307
|
-
When we speak of free software, we are referring to freedom, not price.
|
|
308
|
-
Our General Public Licenses are designed to make sure that you have the
|
|
309
|
-
freedom to distribute copies of free software (and charge for this
|
|
310
|
-
service if you wish), that you receive source code or can get it if you
|
|
311
|
-
want it, that you can change the software or use pieces of it in new
|
|
312
|
-
free programs; and that you know you can do these things.
|
|
313
|
-
|
|
314
|
-
To protect your rights, we need to make restrictions that forbid anyone
|
|
315
|
-
to deny you these rights or to ask you to surrender the rights. These
|
|
316
|
-
restrictions translate to certain responsibilities for you if you
|
|
317
|
-
distribute copies of the software, or if you modify it.
|
|
318
|
-
|
|
319
|
-
For example, if you distribute copies of such a program, whether gratis
|
|
320
|
-
or for a fee, you must give the recipients all the rights that you have.
|
|
321
|
-
You must make sure that they, too, receive or can get the source code.
|
|
322
|
-
And you must show them these terms so they know their rights.
|
|
323
|
-
|
|
324
|
-
We protect your rights with two steps: (1) copyright the software, and
|
|
325
|
-
(2) offer you this license which gives you legal permission to copy,
|
|
326
|
-
distribute and/or modify the software.
|
|
327
|
-
|
|
328
|
-
Also, for each author's protection and ours, we want to make certain
|
|
329
|
-
that everyone understands that there is no warranty for this free
|
|
330
|
-
software. If the software is modified by someone else and passed on, we
|
|
331
|
-
want its recipients to know that what they have is not the original, so
|
|
332
|
-
that any problems introduced by others will not reflect on the original
|
|
333
|
-
authors' reputations.
|
|
334
|
-
|
|
335
|
-
Finally, any free program is threatened constantly by software patents.
|
|
336
|
-
We wish to avoid the danger that redistributors of a free program will
|
|
337
|
-
individually obtain patent licenses, in effect making the program
|
|
338
|
-
proprietary. To prevent this, we have made it clear that any patent must
|
|
339
|
-
be licensed for everyone's free use or not licensed at all.
|
|
340
|
-
|
|
341
|
-
The precise terms and conditions for copying, distribution and
|
|
342
|
-
modification follow.
|
|
343
|
-
|
|
344
|
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
345
|
-
|
|
346
|
-
0. This License applies to any program or other work which contains a
|
|
347
|
-
notice placed by the copyright holder saying it may be distributed under
|
|
348
|
-
the terms of this General Public License. The "Program", below, refers
|
|
349
|
-
to any such program or work, and a "work based on the Program" means
|
|
350
|
-
either the Program or any derivative work under copyright law: that is
|
|
351
|
-
to say, a work containing the Program or a portion of it, either
|
|
352
|
-
verbatim or with modifications and/or translated into another language.
|
|
353
|
-
(Hereinafter, translation is included without limitation in the term
|
|
354
|
-
"modification".) Each licensee is addressed as "you".
|
|
355
|
-
|
|
356
|
-
Activities other than copying, distribution and modification are not
|
|
357
|
-
covered by this License; they are outside its scope. The act of running
|
|
358
|
-
the Program is not restricted, and the output from the Program is
|
|
359
|
-
covered only if its contents constitute a work based on the Program
|
|
360
|
-
(independent of having been made by running the Program). Whether that
|
|
361
|
-
is true depends on what the Program does.
|
|
362
|
-
|
|
363
|
-
1. You may copy and distribute verbatim copies of the Program's source
|
|
364
|
-
code as you receive it, in any medium, provided that you conspicuously
|
|
365
|
-
and appropriately publish on each copy an appropriate copyright notice
|
|
366
|
-
and disclaimer of warranty; keep intact all the notices that refer to
|
|
367
|
-
this License and to the absence of any warranty; and give any other
|
|
368
|
-
recipients of the Program a copy of this License along with the Program.
|
|
369
|
-
|
|
370
|
-
You may charge a fee for the physical act of transferring a copy, and
|
|
371
|
-
you may at your option offer warranty protection in exchange for a fee.
|
|
372
|
-
|
|
373
|
-
2. You may modify your copy or copies of the Program or any portion of
|
|
374
|
-
it, thus forming a work based on the Program, and copy and distribute
|
|
375
|
-
such modifications or work under the terms of Section 1 above, provided
|
|
376
|
-
that you also meet all of these conditions:
|
|
377
|
-
|
|
378
|
-
a) You must cause the modified files to carry prominent notices
|
|
379
|
-
stating that you changed the files and the date of any change.
|
|
380
|
-
|
|
381
|
-
b) You must cause any work that you distribute or publish, that in
|
|
382
|
-
whole or in part contains or is derived from the Program or any part
|
|
383
|
-
thereof, to be licensed as a whole at no charge to all third parties
|
|
384
|
-
under the terms of this License.
|
|
385
|
-
|
|
386
|
-
c) If the modified program normally reads commands interactively
|
|
387
|
-
when run, you must cause it, when started running for such
|
|
388
|
-
interactive use in the most ordinary way, to print or display an
|
|
389
|
-
announcement including an appropriate copyright notice and a notice
|
|
390
|
-
that there is no warranty (or else, saying that you provide a
|
|
391
|
-
warranty) and that users may redistribute the program under these
|
|
392
|
-
conditions, and telling the user how to view a copy of this License.
|
|
393
|
-
(Exception: if the Program itself is interactive but does not
|
|
394
|
-
normally print such an announcement, your work based on the Program
|
|
395
|
-
is not required to print an announcement.)
|
|
396
|
-
|
|
397
|
-
These requirements apply to the modified work as a whole. If
|
|
398
|
-
identifiable sections of that work are not derived from the Program, and
|
|
399
|
-
can be reasonably considered independent and separate works in
|
|
400
|
-
themselves, then this License, and its terms, do not apply to those
|
|
401
|
-
sections when you distribute them as separate works. But when you
|
|
402
|
-
distribute the same sections as part of a whole which is a work based on
|
|
403
|
-
the Program, the distribution of the whole must be on the terms of this
|
|
404
|
-
License, whose permissions for other licensees extend to the entire
|
|
405
|
-
whole, and thus to each and every part regardless of who wrote it.
|
|
406
|
-
|
|
407
|
-
Thus, it is not the intent of this section to claim rights or contest
|
|
408
|
-
your rights to work written entirely by you; rather, the intent is to
|
|
409
|
-
exercise the right to control the distribution of derivative or
|
|
410
|
-
collective works based on the Program.
|
|
411
|
-
|
|
412
|
-
In addition, mere aggregation of another work not based on the Program
|
|
413
|
-
with the Program (or with a work based on the Program) on a volume of a
|
|
414
|
-
storage or distribution medium does not bring the other work under the
|
|
415
|
-
scope of this License.
|
|
416
|
-
|
|
417
|
-
3. You may copy and distribute the Program (or a work based on it,
|
|
418
|
-
under Section 2) in object code or executable form under the terms of
|
|
419
|
-
Sections 1 and 2 above provided that you also do one of the following:
|
|
420
|
-
|
|
421
|
-
a) Accompany it with the complete corresponding machine-readable
|
|
422
|
-
source code, which must be distributed under the terms of Sections 1
|
|
423
|
-
and 2 above on a medium customarily used for software interchange; or,
|
|
424
|
-
|
|
425
|
-
b) Accompany it with a written offer, valid for at least three
|
|
426
|
-
years, to give any third party, for a charge no more than your cost
|
|
427
|
-
of physically performing source distribution, a complete
|
|
428
|
-
machine-readable copy of the corresponding source code, to be
|
|
429
|
-
distributed under the terms of Sections 1 and 2 above on a medium
|
|
430
|
-
customarily used for software interchange; or,
|
|
431
|
-
|
|
432
|
-
c) Accompany it with the information you received as to the offer to
|
|
433
|
-
distribute corresponding source code. (This alternative is allowed
|
|
434
|
-
only for noncommercial distribution and only if you received the
|
|
435
|
-
program in object code or executable form with such an offer, in
|
|
436
|
-
accord with Subsection b above.)
|
|
437
|
-
|
|
438
|
-
The source code for a work means the preferred form of the work for
|
|
439
|
-
making modifications to it. For an executable work, complete source code
|
|
440
|
-
means all the source code for all modules it contains, plus any
|
|
441
|
-
associated interface definition files, plus the scripts used to control
|
|
442
|
-
compilation and installation of the executable. However, as a special
|
|
443
|
-
exception, the source code distributed need not include anything that is
|
|
444
|
-
normally distributed (in either source or binary form) with the major
|
|
445
|
-
components (compiler, kernel, and so on) of the operating system on
|
|
446
|
-
which the executable runs, unless that component itself accompanies the
|
|
447
|
-
executable.
|
|
448
|
-
|
|
449
|
-
If distribution of executable or object code is made by offering access
|
|
450
|
-
to copy from a designated place, then offering equivalent access to copy
|
|
451
|
-
the source code from the same place counts as distribution of the source
|
|
452
|
-
code, even though third parties are not compelled to copy the source
|
|
453
|
-
along with the object code.
|
|
454
|
-
|
|
455
|
-
4. You may not copy, modify, sublicense, or distribute the Program
|
|
456
|
-
except as expressly provided under this License. Any attempt otherwise
|
|
457
|
-
to copy, modify, sublicense or distribute the Program is void, and will
|
|
458
|
-
automatically terminate your rights under this License. However, parties
|
|
459
|
-
who have received copies, or rights, from you under this License will
|
|
460
|
-
not have their licenses terminated so long as such parties remain in
|
|
461
|
-
full compliance.
|
|
462
|
-
|
|
463
|
-
5. You are not required to accept this License, since you have not
|
|
464
|
-
signed it. However, nothing else grants you permission to modify or
|
|
465
|
-
distribute the Program or its derivative works. These actions are
|
|
466
|
-
prohibited by law if you do not accept this License. Therefore, by
|
|
467
|
-
modifying or distributing the Program (or any work based on the
|
|
468
|
-
Program), you indicate your acceptance of this License to do so, and all
|
|
469
|
-
its terms and conditions for copying, distributing or modifying the
|
|
470
|
-
Program or works based on it.
|
|
471
|
-
|
|
472
|
-
6. Each time you redistribute the Program (or any work based on the
|
|
473
|
-
Program), the recipient automatically receives a license from the
|
|
474
|
-
original licensor to copy, distribute or modify the Program subject to
|
|
475
|
-
these terms and conditions. You may not impose any further restrictions
|
|
476
|
-
on the recipients' exercise of the rights granted herein. You are not
|
|
477
|
-
responsible for enforcing compliance by third parties to this License.
|
|
478
|
-
|
|
479
|
-
7. If, as a consequence of a court judgment or allegation of patent
|
|
480
|
-
infringement or for any other reason (not limited to patent issues),
|
|
481
|
-
conditions are imposed on you (whether by court order, agreement or
|
|
482
|
-
otherwise) that contradict the conditions of this License, they do not
|
|
483
|
-
excuse you from the conditions of this License. If you cannot distribute
|
|
484
|
-
so as to satisfy simultaneously your obligations under this License and
|
|
485
|
-
any other pertinent obligations, then as a consequence you may not
|
|
486
|
-
distribute the Program at all. For example, if a patent license would
|
|
487
|
-
not permit royalty-free redistribution of the Program by all those who
|
|
488
|
-
receive copies directly or indirectly through you, then the only way you
|
|
489
|
-
could satisfy both it and this License would be to refrain entirely from
|
|
490
|
-
distribution of the Program.
|
|
491
|
-
|
|
492
|
-
If any portion of this section is held invalid or unenforceable under
|
|
493
|
-
any particular circumstance, the balance of the section is intended to
|
|
494
|
-
apply and the section as a whole is intended to apply in other
|
|
495
|
-
circumstances.
|
|
496
|
-
|
|
497
|
-
It is not the purpose of this section to induce you to infringe any
|
|
498
|
-
patents or other property right claims or to contest validity of any
|
|
499
|
-
such claims; this section has the sole purpose of protecting the
|
|
500
|
-
integrity of the free software distribution system, which is implemented
|
|
501
|
-
by public license practices. Many people have made generous
|
|
502
|
-
contributions to the wide range of software distributed through that
|
|
503
|
-
system in reliance on consistent application of that system; it is up to
|
|
504
|
-
the author/donor to decide if he or she is willing to distribute
|
|
505
|
-
software through any other system and a licensee cannot impose that choice.
|
|
506
|
-
|
|
507
|
-
This section is intended to make thoroughly clear what is believed to be
|
|
508
|
-
a consequence of the rest of this License.
|
|
509
|
-
|
|
510
|
-
8. If the distribution and/or use of the Program is restricted in
|
|
511
|
-
certain countries either by patents or by copyrighted interfaces, the
|
|
512
|
-
original copyright holder who places the Program under this License may
|
|
513
|
-
add an explicit geographical distribution limitation excluding those
|
|
514
|
-
countries, so that distribution is permitted only in or among countries
|
|
515
|
-
not thus excluded. In such case, this License incorporates the
|
|
516
|
-
limitation as if written in the body of this License.
|
|
517
|
-
|
|
518
|
-
9. The Free Software Foundation may publish revised and/or new
|
|
519
|
-
versions of the General Public License from time to time. Such new
|
|
520
|
-
versions will be similar in spirit to the present version, but may
|
|
521
|
-
differ in detail to address new problems or concerns.
|
|
522
|
-
|
|
523
|
-
Each version is given a distinguishing version number. If the Program
|
|
524
|
-
specifies a version number of this License which applies to it and "any
|
|
525
|
-
later version", you have the option of following the terms and
|
|
526
|
-
conditions either of that version or of any later version published by
|
|
527
|
-
the Free Software Foundation. If the Program does not specify a version
|
|
528
|
-
number of this License, you may choose any version ever published by the
|
|
529
|
-
Free Software Foundation.
|
|
530
|
-
|
|
531
|
-
10. If you wish to incorporate parts of the Program into other free
|
|
532
|
-
programs whose distribution conditions are different, write to the
|
|
533
|
-
author to ask for permission. For software which is copyrighted by the
|
|
534
|
-
Free Software Foundation, write to the Free Software Foundation; we
|
|
535
|
-
sometimes make exceptions for this. Our decision will be guided by the
|
|
536
|
-
two goals of preserving the free status of all derivatives of our free
|
|
537
|
-
software and of promoting the sharing and reuse of software generally.
|
|
538
|
-
|
|
539
|
-
NO WARRANTY
|
|
540
|
-
|
|
541
|
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
|
|
542
|
-
WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
|
543
|
-
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
|
544
|
-
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
|
545
|
-
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
546
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
|
|
547
|
-
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
|
|
548
|
-
YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
|
|
549
|
-
NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
550
|
-
|
|
551
|
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
|
552
|
-
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
|
553
|
-
AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
|
|
554
|
-
DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
|
|
555
|
-
DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
|
|
556
|
-
(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
|
|
557
|
-
INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
|
|
558
|
-
THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
|
|
559
|
-
OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
560
|
-
|
|
561
|
-
END OF TERMS AND CONDITIONS
|
|
562
|
-
|
|
563
|
-
How to Apply These Terms to Your New Programs
|
|
564
|
-
|
|
565
|
-
If you develop a new program, and you want it to be of the greatest
|
|
566
|
-
possible use to the public, the best way to achieve this is to make it
|
|
567
|
-
free software which everyone can redistribute and change under these terms.
|
|
568
|
-
|
|
569
|
-
To do so, attach the following notices to the program. It is safest to
|
|
570
|
-
attach them to the start of each source file to most effectively convey
|
|
571
|
-
the exclusion of warranty; and each file should have at least the
|
|
572
|
-
"copyright" line and a pointer to where the full notice is found.
|
|
573
|
-
|
|
574
|
-
One line to give the program's name and a brief idea of what it does.
|
|
575
|
-
Copyright (C) <year> <name of author>
|
|
576
|
-
|
|
577
|
-
This program is free software; you can redistribute it and/or modify
|
|
578
|
-
it under the terms of the GNU General Public License as published by
|
|
579
|
-
the Free Software Foundation; either version 2 of the License, or
|
|
580
|
-
(at your option) any later version.
|
|
581
|
-
|
|
582
|
-
This program is distributed in the hope that it will be useful, but
|
|
583
|
-
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
584
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
585
|
-
General Public License for more details.
|
|
586
|
-
|
|
587
|
-
You should have received a copy of the GNU General Public License
|
|
588
|
-
along with this program; if not, write to the Free Software
|
|
589
|
-
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
|
|
590
|
-
|
|
591
|
-
Also add information on how to contact you by electronic and paper mail.
|
|
592
|
-
|
|
593
|
-
If the program is interactive, make it output a short notice like this
|
|
594
|
-
when it starts in an interactive mode:
|
|
595
|
-
|
|
596
|
-
Gnomovision version 69, Copyright (C) year name of author
|
|
597
|
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
|
|
598
|
-
`show w'. This is free software, and you are welcome to redistribute
|
|
599
|
-
it under certain conditions; type `show c' for details.
|
|
600
|
-
|
|
601
|
-
The hypothetical commands `show w' and `show c' should show the
|
|
602
|
-
appropriate parts of the General Public License. Of course, the commands
|
|
603
|
-
you use may be called something other than `show w' and `show c'; they
|
|
604
|
-
could even be mouse-clicks or menu items--whatever suits your program.
|
|
605
|
-
|
|
606
|
-
You should also get your employer (if you work as a programmer) or your
|
|
607
|
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
608
|
-
necessary. Here is a sample; alter the names:
|
|
609
|
-
|
|
610
|
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
|
611
|
-
program `Gnomovision' (which makes passes at compilers) written by
|
|
612
|
-
James Hacker.
|
|
613
|
-
|
|
614
|
-
signature of Ty Coon, 1 April 1989
|
|
615
|
-
Ty Coon, President of Vice
|
|
616
|
-
|
|
617
|
-
This General Public License does not permit incorporating your program
|
|
618
|
-
into proprietary programs. If your program is a subroutine library, you
|
|
619
|
-
may consider it more useful to permit linking proprietary applications
|
|
620
|
-
with the library. If this is what you want to do, use the GNU Library
|
|
621
|
-
General Public License instead of this License.
|
|
622
|
-
|
|
623
|
-
---
|
|
624
|
-
|
|
625
|
-
## CLASSPATH EXCEPTION
|
|
626
|
-
|
|
627
|
-
Linking this library statically or dynamically with other modules is
|
|
628
|
-
making a combined work based on this library. Thus, the terms and
|
|
629
|
-
conditions of the GNU General Public License version 2 cover the whole
|
|
630
|
-
combination.
|
|
631
|
-
|
|
632
|
-
As a special exception, the copyright holders of this library give you
|
|
633
|
-
permission to link this library with independent modules to produce an
|
|
634
|
-
executable, regardless of the license terms of these independent
|
|
635
|
-
modules, and to copy and distribute the resulting executable under
|
|
636
|
-
terms of your choice, provided that you also meet, for each linked
|
|
637
|
-
independent module, the terms and conditions of the license of that
|
|
638
|
-
module. An independent module is a module which is not derived from or
|
|
639
|
-
based on this library. If you modify this library, you may extend this
|
|
640
|
-
exception to your version of the library, but you are not obligated to
|
|
641
|
-
do so. If you do not wish to do so, delete this exception statement
|
|
642
|
-
from your version.
|