@@ -8,51 +8,50 @@ 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:
13
+
14
+ - ` git submodule init `
15
+ - ` git submodule update `
13
16
14
17
More about Git Submodules can be found [ here] ( https://git-scm.com/book/en/v2/Git-Tools-Submodules ) .
15
18
16
19
** Remark** : The URLs to the submodules are configured in the file ` .gitmodules ` , but these are using the SSH URLs. There
17
20
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.
21
+ with an HTTPS URL of the GIT Repository.
22
+
23
+ Because of the subdirectory where the submodules are in, this doesn't work exactly that way. Use the following commands
24
+ to update the URLs locally to HTTPS.
20
25
21
26
```
22
- git config submodule.riseclipse/riseclipse-developer.url https://github.com/riseclipse/riseclipse-developer.git
23
- git config submodule.riseclipse/riseclipse-main.url https://github.com/riseclipse/riseclipse-main.git
24
- git config submodule.riseclipse/riseclipse-metamodel-scl2003.url https://github.com/riseclipse/riseclipse-metamodel-scl2003.git
25
27
git config submodule.riseclipse/riseclipse-ocl-constraints-scl2003.url https://github.com/riseclipse/riseclipse-ocl-constraints-scl2003.git
26
28
27
29
git submodule init
28
30
git submodule update
29
31
```
30
32
31
- ## IntelliJ
33
+ ### Git update Submodules
32
34
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 .
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.
35
37
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.
38
+ ```
39
+ git submodule update --remote
40
+ ```
39
41
40
- Next a way to make everything work in IntelliJ is importing the project in the following way.
42
+ Next commit and push the changes to the Git Repository of CoMPAS. The build now uses the latest commit of the main
43
+ branch.
41
44
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;
45
+ ## Eclipse
50
46
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".
47
+ ### Eclipse Dependencies
54
48
55
- ## Eclipse
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.
53
+
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