Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Papyrus/Code Standards"
< Papyrus
(→Features) |
|||
Line 47: | Line 47: | ||
[[Image:Papyrus.Build.properties-selectedOptions.png|1000px|thumb|left]] | [[Image:Papyrus.Build.properties-selectedOptions.png|1000px|thumb|left]] | ||
+ | |||
+ | ==Additional information for the build process== | ||
+ | The build process also needs to know where is the license. In the main pom.xml file (often in the pom.xml of ''releng/folder''), you must write: | ||
+ | |||
+ | <repositories> | ||
+ | <repository> | ||
+ | <id>license-feature</id> | ||
+ | <url>http://download.eclipse.org/cbi/updates/license/</url> | ||
+ | <layout>p2</layout> | ||
+ | </repository> | ||
+ | </repositories> | ||
+ | |||
+ | Your target platform definition file (tpd) must also contains: | ||
+ | location "http://download.eclipse.org/cbi/updates/license/" eclipse-license { | ||
+ | org.eclipse.license.feature.group lazy | ||
+ | } | ||
[[Category:Papyrus]] | [[Category:Papyrus]] |
Revision as of 11:13, 12 November 2020
Coding rules for Papyrus plug-ins and features
These rules apply to all plug-ins and features developed for the Papyrus Eclipse project, and distributed under the EPL licence.
Features
- ID:
- Main Papyrus components: org.eclipse.papyrus.<feature.name>.feature
- e.g. org.eclipse.papyrus.infra.core.feature
- Main Papyrus components: org.eclipse.papyrus.<feature.name>.feature
- Name: Papyrus <Feature Name>
- e.g. Papyrus Core
- e.g. Papyrus Model2Doc (Incubation)
- Incubation plugin and feature have a version lower than 1.0.0
- Here you will find a definition of incubation: Development_Resources/Process_Guidelines/What_is_Incubation
- Each feature.xml file must contains:
- in Information Tab -> Copyright Notice,
- Optional URL : https://www.eclipse.org/legal/epl-2.0/
- Copyright :
- in Information Tab -> Copyright Notice,
Copyright (c) 20XX CEA LIST
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
- in Information Tab -> License Agreement
- Check the field Shared License,
- License Feature ID: org.eclipse.license,
- License Feature Version: 2.0.2.
- in Information Tab -> License Agreement
- The build.properties file must contain the following files in the "Binary build" section:
- feature.properties (When available)
- feature.xml
Additional information for the build process
The build process also needs to know where is the license. In the main pom.xml file (often in the pom.xml of releng/folder), you must write:
<repositories> <repository> <id>license-feature</id> <url>http://download.eclipse.org/cbi/updates/license/</url> <layout>p2</layout> </repository> </repositories>
Your target platform definition file (tpd) must also contains:
location "http://download.eclipse.org/cbi/updates/license/" eclipse-license { org.eclipse.license.feature.group lazy }