@@ -8,15 +8,17 @@ SPDX-License-Identifier: Apache-2.0
8
8
9
9
## Git
10
10
11
- If the project is already cloned and a submodule is added use the following commands, first ` git submodule init ` and
12
- next ` git submodule update ` .
11
+ If the project is already cloned and a submodule is added use the following commands to retrieve the files from the
12
+ RiseClipse Repository, first ` git submodule init ` and next ` git submodule update ` .
13
13
14
14
More about Git Submodules can be found [ here] ( https://git-scm.com/book/en/v2/Git-Tools-Submodules ) .
15
15
16
16
** Remark** : The URLs to the submodules are configured in the file ` .gitmodules ` , but these are using the SSH URLs. There
17
17
is a way described [ here] ( https://git-scm.com/book/en/v2/Git-Tools-Submodules ) that the URL can be overwritten locally
18
- with an HTTPS URL of the GIT Repository. Because of the subdirectory where the submodules are in, this doesn't work
19
- exactly that way. Use the following commands to update the URLs locally to HTTPS.
18
+ with an HTTPS URL of the GIT Repository.
19
+
20
+ Because of the subdirectory where the submodules are in, this doesn't work exactly that way. Use the following commands
21
+ to update the URLs locally to HTTPS.
20
22
21
23
```
22
24
git config submodule.riseclipse/riseclipse-developer.url https://github.com/riseclipse/riseclipse-developer.git
@@ -28,31 +30,28 @@ git submodule init
28
30
git submodule update
29
31
```
30
32
31
- ## IntelliJ
33
+ ### Git update Submodules
34
+
35
+ A submodule in Git is fixed to a specific commit of the remote repository. To update the reference to the latest commit
36
+ in the remote repository execute the following command from the root directory of the project.
32
37
33
- Importing the project is a bit harder for the SCL Validator then normal. It's caused because of the submodules that are
34
- needed from RiseClipse. These projects are Eclipse projects using Eclipse Tycho to build and Eclipse project structure.
38
+ ```
39
+ git submodule update --remote
40
+ ```
35
41
36
- The first step to make it work in IntelliJ is that an Eclipse version needs to be available on your local machine. The
37
- version we know that's working can be found [ here] ( https://www.eclipse.org/downloads/packages/release/2019-06/r )
38
- Download (and install/unzip) Eclipse.
42
+ Next add the changes and commit/push these to the Git Repository of CoMPAS. The build now uses the latest commit of the
43
+ main branch.
39
44
40
- Next a way to make everything work in IntelliJ is importing the project in the following way.
45
+ ## Eclipse
41
46
42
- - First step is to just import everything like it are Maven projects;
43
- - Next we need to add a Global Library in IntelliJ. Open the Module Settings and select "Global Libraries". And a new
44
- libraries and name it "ECLIPSE". Point it to the directory "<ECLIPSE_INSTALL_DIR>/plugins";
45
- - Next step is to re-import the RiseClipse Submodule as Eclipse;
46
- - In IntelliJ select "File" -> "New" -> "Module from Existing Sources...";
47
- - Select one of the RiseClipse Submodules, for instance "riseclipse-metamodel-scl2003";
48
- - Next select "Eclipse" by "Import module from External Model";
49
- - Follow the rest of the wizard, only to remember to select all subprojects that are available in the directory;
47
+ ### Eclipse Dependencies
50
48
51
- Now the module should be correctly imported in IntelliJ to be used. Check the Module Settings of one of the subprojects
52
- to check if the directory "src" is a Java Source Directory, for instance the module
53
- "riseclipse/riseclipse-metamodel-scl2003/fr.centralesupelec.edf.riseclipse.iec61850.scl.utilities".
49
+ To make everything build and run Eclipse Dependencies are needed, but unlike the RiseClipse Dependencies these can't be
50
+ found in the Maven Central Repository, but in an Eclipse P2 Repository. In RiseClipse there is a p2-to-m2 project that
51
+ creates a local Maven Repository from the needed dependencies from the Eclipse P2 Repository. A CoMPAS Version of this
52
+ maven module is created here, see [ README.md] ( riseclipse/riseclipse-p2-to-m2/README.md ) for more info.
54
53
55
- ## Eclipse
54
+ ### Eclipse OCL
56
55
57
56
Example about how to use Eclipse OCL was found
58
57
[ here] ( https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.ocl.doc%2Fhelp%2FPivotStandalone.html ) .
0 commit comments