You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+28-11
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Cameo MDK is a plugin for [Cameo Systems Modeler](https://www.nomagic.com/produc
9
9
## Prerequisites
10
10
11
11
*[Cameo Systems Modeler (CSM)](https://www.nomagic.com/products/cameo-systems-modeler) or another No Magic environment bundle that includes the [SysML plugin](https://www.nomagic.com/product-addons/magicdraw-addons/sysml-plugin)
12
-
* The latest Cameo MDK is tested with and supports **19.0 SP4**. Compatibility for previous versions of Cameo MDK can be found in the [compatibility matrices](https://github.com/Open-MBEE/open-mbee.github.io/wiki/Compatibilities).
12
+
* The latest Cameo MDK is tested with and supports **19.0 SP3** and **19.0 SP4** (you must use a custom profile for SP4). Compatibility for previous versions of Cameo MDK can be found in the [compatibility matrices](https://github.com/Open-MBEE/open-mbee.github.io/wiki/Compatibilities).
13
13
#### Versions prior to 5.x:
14
14
*[Model Management System (MMS) 3](https://github.com/Open-MBEE/mms-alfresco)
15
15
#### Version 5.0+
@@ -19,8 +19,8 @@ Cameo MDK is a plugin for [Cameo Systems Modeler](https://www.nomagic.com/produc
19
19
20
20
1.[Download](https://github.com/Open-MBEE/mdk/releases/latest) the Cameo MDK plugin, e.g. `mdk-*-plugin.zip`.
21
21
22
-
*Note:Make sure you are downloading the correct version for your installation of MMS (for mms-alfresco (mms3/donbot) use
23
-
version 4.5.x, for mms (mms4/execubots) use versions 5.0+)*
22
+
>**Note:***Make sure you are downloading the correct version for your installation of MMS (for mms-alfresco (mms3/donbot) use
23
+
>version 4.5.x, for mms (mms4/execubots) use versions 5.0+)*
24
24
25
25
2. Run CSM. From the main menu, select "Help" > "Resource/Plugin Manager".
@@ -48,15 +48,32 @@ To learn how you can get involved in a variety of ways, please see [Contibuting
48
48
49
49
Cameo MDK is a Java project that uses the [Gradle](https://gradle.org/) build tool. It can be imported as a Gradle project in IDEs like [IntelliJ](https://www.jetbrains.com/idea/) and [Eclipse](https://www.eclipse.org/ide/).
50
50
51
-
## Common Tasks
52
-
*Note starting in version 5.0 you will need to define a build profile (in `./buildProfiles`) which will house the classpath
53
-
for your particular version of cameo. In order to retrieve this classpath, copy paste the CLASSPATH entry from your
54
-
`${md.install.dir}/bin/(magicraw/csm/cea).properties` file. Copy the entire line into a new file and find replace the `\:`
55
-
with `,` for more information refer to the existing `buildProfiles/opensource.properties`. Also, note that that profile should
56
-
work for most 19.0sp3 installations.*
57
51
58
-
In order to use your custom profile run any of the below commands with `-PbuildAccess=<yourProfileName>` otherwise it will
59
-
default to using `opensource`.
52
+
## Custom Build Profiles
53
+
Starting with version 5.0+ you will be able to define custom build profiles (in `./buildProfiles`) which will house
54
+
the classpath and other variables previously managed by setting `-buildAccess=internal`. These profiles will allow
55
+
customization based on your build process and for your particular version of Cameo.
56
+
57
+
**NOTE:** By default build profiles are excluded from being committed to git by a `buildProfiles/.gitignore`
58
+
59
+
### Create a new profile
60
+
Create a new java properties file in `buildProfiles/<yourProfileName>.properties`.
61
+
In order to use a custom profile to run any of the below commands. Use the command with `-PbuildProfile=<yourProfileName>`
62
+
> For more examples of what properties are available in profiles see the example file in `buildProfiles/example.properties`
63
+
64
+
### For users of non-standard cameo bundles
65
+
To retrieve the classpath:
66
+
1. Copy the CLASSPATH entry from your `${md.install.dir}/bin/(magicraw/csm/cea).properties` file.
67
+
2. Paste the entire line into a new file and find replace the `\:` with `,` and set it equal to `classpath`
68
+
3. Save this file to `buildProfiles/<yourProfileName>.properties`
69
+
> This is only necessary for custom build repositories or non-SP3 builds, most users will not need to modify the classpath
70
+
> and modification of the classpath is not necessary to use profiles!
71
+
72
+
73
+
74
+
## Build
75
+
>In order to use a custom profile to run any of the below commands. Use the command with `-PbuildProfile=<yourProfileName>` otherwise it will
76
+
>default to using `opensource`.
60
77
61
78
*`./gradlew dependencies` will download all necessary dependencies.
62
79
*`./gradlew assemble` will compile Cameo MDK from source.
0 commit comments