[Releng] Update branding for RCP

Change-Id: Ib9ba1e80a5fe26452e004741f7e5b0154b0705b5
Signed-off-by: Pauline DEVILLE <pauline.deville@cea.fr>
diff --git a/pom.xml b/pom.xml
index 0951699..8b7414e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,12 @@
 		<jboss.utils.version>1.7.0</jboss.utils.version>
 		<java.source.version>11</java.source.version>
 		<java.target.version>11</java.target.version>
+		
+		<!-- Timestamp used in various places, e.g. the about dialog (see about.mappings) -->
+		<eclipse.simultaneous.release.build>${maven.build.timestamp}</eclipse.simultaneous.release.build>
+		<!-- Human readable name of the release, e.g. used in the about dialog 
+			(see about.mappings)  -->
+		<eclipse.simultaneous.release.name>2021-09 (4.21)</eclipse.simultaneous.release.name> 
 	</properties>
 
 	<ciManagement>
diff --git a/releng/org.eclipse.papyrus.sysml16.product/papyrusSysml.product b/releng/org.eclipse.papyrus.sysml16.product/papyrusSysml.product
index 68e67be..0743ff7 100644
--- a/releng/org.eclipse.papyrus.sysml16.product/papyrusSysml.product
+++ b/releng/org.eclipse.papyrus.sysml16.product/papyrusSysml.product
@@ -8,11 +8,14 @@
       <text>
          Papyrus SysML 1.6 
 
-(c) Copyright Eclipse contributors and others 2000, 2019.  All rights reserved.
-Visit http://www.eclipse.org/platform
+Version: {1}
+Build id: {0}
 
-This product includes software developed by the
-Apache Software Foundation http://www.apache.org/
+Copyright CEA LIST and others 2000-2021. http://www.eclipse.org/papyrus
+
+(c) Copyright Eclipse contributors and others 2000-2021.  All rights reserved. Eclipse and the Eclipse logo are trademarks of the Eclipse Foundation, Inc., https://www.eclipse.org/. The Eclipse logo cannot be altered without Eclipse&apos;s permission. Eclipse logos are provided for use under the Eclipse logo and trademark guidelines, https://www.eclipse.org/logotm/. Oracle and Java are trademarks or registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
+
+This product includes software developed by other open source projects including the Apache Software Foundation, https://www.apache.org/.
       </text>
    </aboutInfo>
 
@@ -122,10 +125,10 @@
       <plugin id="org.eclipse.equinox.p2.reconciler.dropins" autoStart="true" startLevel="4" />
       <plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
       <plugin id="org.eclipse.update.configurator" autoStart="true" startLevel="3" />
+      <property name="osgi.bundles.defaultStartLevel" value="4" />
       <property name="osgi.instance.area.default" value="@user.home/workspace-papyrus-sysml" />
       <property name="org.eclipse.update.reconcile" value="false" />
       <property name="osgi.requiredJavaVersion" value="11" />
-      <property name="osgi.bundles.defaultStartLevel" value="4" />
    </configurations>
 
    <repositories>
diff --git a/releng/org.eclipse.papyrus.sysml16.rcp/about.mappings b/releng/org.eclipse.papyrus.sysml16.rcp/about.mappings
new file mode 100644
index 0000000..6e95f7d
--- /dev/null
+++ b/releng/org.eclipse.papyrus.sysml16.rcp/about.mappings
@@ -0,0 +1,7 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+0=${eclipse.simultaneous.release.build}
+1=${eclipse.simultaneous.release.name}
diff --git a/releng/org.eclipse.papyrus.sysml16.rcp/build.properties b/releng/org.eclipse.papyrus.sysml16.rcp/build.properties
index 74d64ad..d17702d 100644
--- a/releng/org.eclipse.papyrus.sysml16.rcp/build.properties
+++ b/releng/org.eclipse.papyrus.sysml16.rcp/build.properties
@@ -4,4 +4,6 @@
                splash.bmp,\
                icons/,\
                plugin_customization.ini,\
-               plugin.properties  
\ No newline at end of file
+               plugin.properties,\
+               about.mappings
+
diff --git a/releng/org.eclipse.papyrus.sysml16.rcp/plugin.xml b/releng/org.eclipse.papyrus.sysml16.rcp/plugin.xml
index 818a889..dadaaa9 100644
--- a/releng/org.eclipse.papyrus.sysml16.rcp/plugin.xml
+++ b/releng/org.eclipse.papyrus.sysml16.rcp/plugin.xml
@@ -22,8 +22,8 @@
          point="org.eclipse.core.runtime.products">
       <product
             application="org.eclipse.ui.ide.workbench"
-            description="Papyrus&#x0D;&#x0A;&#x0D;&#x0A;Version: 1.0.0&#x0D;&#x0A;&#x0D;&#x0A;(c) Copyright Eclipse contributors and others 2000, 2019.  All rights reserved.&#x0D;&#x0A;Visit http://www.eclipse.org/platform&#x0D;&#x0A;&#x0D;&#x0A;This product includes software developed by the&#x0D;&#x0A;Apache Software Foundation http://www.apache.org/"
-            name="Papyrus">
+            description="Papyrus-SysML16&#x0D;&#x0A;&#x0D;&#x0A;Version: {1}&#x0D;&#x0A;&#x0D;&#x0A;(c) Copyright Eclipse contributors and others 2000-2021.  All rights reserved.&#x0D;&#x0A;Visit http://www.eclipse.org/platform&#x0D;&#x0A;&#x0D;&#x0A;This product includes software developed by the&#x0D;&#x0A;Apache Software Foundation http://www.apache.org/"
+            name="Papyrus-SysML16">
          <property name="windowImages" value="icons/papyrus16.png,icons/papyrus32.png,icons/papyrus48.png,icons/papyrus64.png,icons/papyrus128.png"/> 
          <property name="aboutImage" value="icons/papyrus_lg.png"/>
          <property
@@ -31,9 +31,6 @@
                value="Papyrus">
          </property>
          <property
-              name="introBrandingImage"
-              value="product:icons/intro-papyrus.png"/>
-         <property
                name="introTitle"
                value="Welcome to Papyrus">
          </property>
@@ -65,9 +62,9 @@
 				name="applicationCSSResources"
           value="platform:/plugin/org.eclipse.platform/images/">
 		  </property>
-    <property
+     <property
           name="aboutText"
-          value="Papyrus&#x0A;&#x0A;Version: 1.0.0&#x0A;&#x0A;(c) Copyright Eclipse contributors and others 2000, 2019.  All rights reserved.&#x0A;Visit http://www.eclipse.org/platform&#x0A;&#x0A;This product includes software developed by the&#x0A;Apache Software Foundation http://www.apache.org/">
+          value="Papyrus-SysML16&#x0A;&#x0A;Version: {1}&#x0A;Build id: {0}&#x0A;&#x0A;Copyright CEA LIST and others 2021. http://www.eclipse.org/papyrus&#x0A;&#x0A;(c) Copyright Eclipse contributors and others 2000-2021.  All rights reserved. Eclipse and the Eclipse logo are trademarks of the Eclipse Foundation, Inc., https://www.eclipse.org/. The Eclipse logo cannot be altered without Eclipse's permission. Eclipse logos are provided for use under the Eclipse logo and trademark guidelines, https://www.eclipse.org/logotm/. Oracle and Java are trademarks or registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.&#x0A;&#x0A;This product includes software developed by other open source projects including the Apache Software Foundation, https://www.apache.org/.&#x0A;">
     </property>
       </product>
    </extension>
diff --git a/releng/org.eclipse.papyrus.sysml16.rcp/pom.xml b/releng/org.eclipse.papyrus.sysml16.rcp/pom.xml
index 0598acf..5f20243 100644
--- a/releng/org.eclipse.papyrus.sysml16.rcp/pom.xml
+++ b/releng/org.eclipse.papyrus.sysml16.rcp/pom.xml
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 	<modelVersion>4.0.0</modelVersion>
 	<parent>
@@ -11,4 +12,61 @@
 	<packaging>eclipse-plugin</packaging>
 	<name>org.eclipse.papyrus.sysml16.rcp</name>
 	<description>This plugins defines the Rich Client Platform for SysML 1.6 application.</description>
+
+
+	<profiles>
+		<profile>
+			<id>update-branding-plugins-about.mappings</id>
+			<activation>
+				<file>
+					<exists>${basedir}/about.mappings</exists>
+				</file>
+			</activation>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-resources-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>process-about.mappings</id>
+								<phase>prepare-package</phase>
+								<configuration>
+									<outputDirectory>${project.build.directory}</outputDirectory>
+									<overwrite>true</overwrite>
+									<resources>
+										<resource>
+											<directory>${basedir}</directory>
+											<includes>
+												<include>about.mappings</include>
+											</includes>
+											<filtering>true</filtering>
+										</resource>
+									</resources>
+								</configuration>
+								<goals>
+									<goal>copy-resources</goal>
+								</goals>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
+						<groupId>org.eclipse.tycho</groupId>
+						<artifactId>tycho-packaging-plugin</artifactId>
+						<version>${tycho.version}</version>
+						<configuration>
+							<additionalFileSets>
+								<fileSet>
+									<directory>${project.build.directory}</directory>
+									<includes>
+										<include>about.mappings</include>
+									</includes>
+								</fileSet>
+							</additionalFileSets>
+						</configuration>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
 </project>
\ No newline at end of file