eclipse / vorto

Vorto Project
www.eclipse.org/vorto
Eclipse Public License 2.0
227 stars 105 forks source link

Add a property to specify a license for function blocks, information models, data types #140

Open ankraft opened 8 years ago

ankraft commented 8 years ago

Support the attachment of license text to function blocks etc. This property should be available like any other property and be supported by generators, the UI etc. A generator, for exampe, could add the license to the header of each generated source file.

The license property must keep the formatting of the license text, ie. not remove line breaks etc.

aedelmann commented 8 years ago

Hi Andreas,

I do not quite understand why a function block should expose license information because the generated output could be under different licenses depending for which platform it would generate, or not?

ankraft commented 8 years ago

Hi Alex,

Every entity may be provided and uploaded under an individual license or with a copyright notice attached. This license/copyright is inherited (and does not change) when someone generates code or transforms the entity into a different format. This generated code might be distributed under a different license, though, but this does not change the original license of individual entities. This is why it is important to keep code and license linked together.

ankraft commented 8 years ago

Hi, I like to add another example to clarify this issue. The license for oneM2M data models states that the license must be kept together with the model in any copy:

... The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices contained in the original materials on any copies of the materials and that you comply strictly with these terms. ...

My understanding is that this also applies when converting a data model into another format, such as the Vorto DSL.