Skip to content

Commit

Permalink
Merge pull request #177 from Open-MBEE/release/4.1.5
Browse files Browse the repository at this point in the history
Release/4.1.5
  • Loading branch information
DavidWillard authored Mar 11, 2020
2 parents d7c3d10 + ed8b0ff commit 7eccf92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ dependencies {
// Other dependencies we're unable to resolve via standard repositories

if (buildAccess == 'internal') {
preCompile group: 'gov.nasa.jpl.cae.nomagic', name: 'cae-cameo-systems-modeler-core', version: '4.1.4', classifier: 'linux', ext: 'zip'
preCompile group: 'gov.nasa.jpl.cae.nomagic', name: 'cae-cameo-systems-modeler-core', version: '4.1.5', classifier: 'linux', ext: 'zip'
}
else {
preCompile group: 'com.nomagic', name: 'demomagicdraw', version: '190sp2', classifier: 'MagicDraw_Demo_190_sp2_no_install', ext: 'zip'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=4.1.4
version=4.1.5
group=org.openmbee.magicdraw.mdk
descriptorFile=MDR_Plugin_Model_Development_Kit_91110_descriptor.xml
magicdDrawGroupName=gov.nasa.jpl.cae.magicdraw.mdk
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/gov/nasa/jpl/mbee/mdk/emf/EMFExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,16 @@ private enum Processor {
objectNode.put(MDKConstants.TYPE_KEY, "Mount");
objectNode.put(MDKConstants.MOUNTED_ELEMENT_ID_KEY, Converters.getIProjectToIdConverter().apply(attachedProject) + MDKConstants.PRIMARY_MODEL_ID_SUFFIX);
objectNode.put(MDKConstants.MOUNTED_ELEMENT_PROJECT_ID_KEY, Converters.getIProjectToIdConverter().apply(attachedProject));
String branchName;
EsiUtils.EsiBranchInfo esiBranchInfo = null;
if (isRemote && (esiBranchInfo = EsiUtils.getCurrentBranch(attachedProject)) == null) {
EsiUtils.EsiBranchInfo branchInfo = EsiUtils.getCurrentBranch(attachedProject);
if (isRemote && branchInfo == null) {
return null;
}
if (!isRemote || (branchName = esiBranchInfo.getName()) == null || branchName.equals("trunk")) {
String branchName;
if (!isRemote || (branchName = branchInfo.getName()) == null || "trunk".equals(branchName)) {
branchName = "master";
}
objectNode.put(MDKConstants.MOUNTED_REF_ID_KEY, branchName);
String branchId = "master".equals(branchName) ? "master" : branchInfo.getID().toString();
objectNode.put(MDKConstants.MOUNTED_REF_ID_KEY, branchId);
objectNode.put(MDKConstants.TWC_VERSION_KEY, isRemote ? ProjectUtilities.versionToInt(ProjectUtilities.getVersion(attachedProject).getName()) : -1);
return objectNode;
},
Expand Down

0 comments on commit 7eccf92

Please sign in to comment.