Skip to content

Commit 5a222b3

Browse files
author
Dennis Labordus
committed
Changed part for cleaning up Error Message.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 6ab8c0b commit 5a222b3

File tree

3 files changed

+5
-48
lines changed

3 files changed

+5
-48
lines changed

riseclipse/riseclipse-p2-to-m2/README.md

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,8 @@ SPDX-FileCopyrightText: 2022 Alliander N.V.
44
SPDX-License-Identifier: Apache-2.0
55
-->
66

7-
This file is part of the RiseClipse tool.
8-
9-
### Contributors:
10-
* Computer Science Department, CentraleSupélec
11-
* EDF R&D
12-
### Contacts:
13-
14-
15-
### Web site:
16-
* <https://riseclipse.github.io>
7+
This project is used to create maven artifacts from Eclipse plugins. This is needed for building the executable jar to
8+
run in a Docker Container.
179

18-
****
19-
20-
This project is used to create maven artifacts from Eclipse plugins. This is needed
21-
for building fat jars which run outside Eclipse.
22-
23-
24-
This project is based on work by German Vega [(see this message)](https://www.eclipse.org/forums/index.php?t=msg&th=1097672&goto=1826425&#msg_1826425).
25-
26-
The following is an extract of the `pom.xml` file present in the archive :
27-
>This file is part of VASCO Model Transformation - Platform Eclipse Modeling Framework 4.15 Maven repository
28-
29-
>Please visit http://vasco.imag.fr for further information
30-
31-
>Authors : German Vega , Yves ledru , Akram Idani
32-
33-
>> Laboratoire d'Informatique de Grenoble, Team VASCO
34-
35-
> Copyright (C) 2016 - 2020 University of Grenoble Alpes
36-
37-
> This program is free software:
38-
39-
> you can redistribute it and/or modify it under the terms of the GNU Lesser
40-
General Public License as published by the Free Software Foundation, either
41-
version 3 of the License, or (at your option) any later version. This program
42-
is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
43-
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
44-
PURPOSE. See the GNU General Lesser Public License for more details. You
45-
should have received a copy of the GNU General Lesser Public License along
46-
with this program. If not, see <http://www.gnu.org/licenses/lgpl-3.0.html>.
47-
48-
****
49-
50-
The `src/main/resources/riseclipse.aggr` file should be edited with the
10+
The `src/main/resources/riseclipse.aggr` file should be edited with the
5111
[CBI/aggregator](https://wiki.eclipse.org/CBI/aggregator) tool.
52-
53-
Changes in this file should usually also be done in the target platform
54-
(project `fr.centralesupelec.edf.riseclipse.developer.eclipse`).

riseclipse/validator-riseclipse/src/main/java/org/lfenergy/compas/scl/validator/util/MessageUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class MessageUtil {
1111
public static String cleanupMessage(String message) {
1212
String cleanedMessage = message;
1313
if (cleanedMessage != null
14-
&& cleanedMessage.toUpperCase().startsWith("ERROR:")) {
14+
&& cleanedMessage.toUpperCase().startsWith("ERROR;")) {
1515
cleanedMessage = cleanedMessage.substring(6);
1616
}
1717
return cleanedMessage;

riseclipse/validator-riseclipse/src/test/java/org/lfenergy/compas/scl/validator/util/MessageUtilTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void cleanupMessage_WhenCalledWithAlreadyCleanMessage_ThenSameMessageIsReturned(
3434
void cleanupMessage_WhenCalledWithMessageThatStartWithError_ThenCleanedMessageIsReturned() {
3535
var expectedMessage = "Some validation message";
3636

37-
var result = cleanupMessage("ERROR:" + expectedMessage);
37+
var result = cleanupMessage("ERROR;" + expectedMessage);
3838

3939
assertEquals(expectedMessage, result);
4040
}

0 commit comments

Comments
 (0)