]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java
Simupedia tuning step 2
[simantics/platform.git] / bundles / org.simantics.project / src / org / simantics / project / management / PlatformUtil.java
index af59dbfc164bdd60a859011597bd334a7b406e49..a783acbad6e421fbc0f7e272f2a35e1ccafe7590 100644 (file)
@@ -478,8 +478,19 @@ public class PlatformUtil {
        }
 
        private static boolean isImmutable(Bundle bundle) {
-               String immutable = (String) bundle.getHeaders().get("Immutable");
-               return immutable != null ? "true".equals(immutable) : true;
+        String immutable = (String) bundle.getHeaders().get("Immutable");
+        if(immutable == null)
+            return true;
+        if("false".equals(immutable))
+            return false;
+        if("trueWhenDeployed".equals(immutable)) {
+            String installHint = System.getProperty("installOntologiesAsDeployed");
+            if("true".equals(installHint))
+                return true;
+            else
+                return false;
+        }
+        return true;
        }
 
        public static class TGInfo {