From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master

module.py: do not resolve java-base for non-java apps

This reduces a little bit of noise by making build not resolve
java-base and related modules for non-java apps.

Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>

---
diff --git a/scripts/module.py b/scripts/module.py
--- a/scripts/module.py
+++ b/scripts/module.py
@@ -132,16 +132,15 @@ def flatten_list(elememnts):
 
 def get_basic_apps(apps):
     basic_apps = []
-    java = resolve.require('java-base')
-    if hasattr(java,'non_isolated_jvm') and java.non_isolated_jvm:
-        _jvm = non_isolated_jvm()
-    else:
-        _jvm = isolated_jvm()
+    _jvm = isolated_jvm()
 
     for app in flatten_list(apps):
         if isinstance(app, api.basic_app):
             basic_apps.append(app)
         elif isinstance(app, api.java_app):
+            java = resolve.require('java-base')
+            if hasattr(java,'non_isolated_jvm') and java.non_isolated_jvm:
+                _jvm = non_isolated_jvm()
             _jvm.add(app)
         else:
             raise Exception("Unknown app type: " + str(app))

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/000000000000d81bf705a2f66b68%40google.com.

Reply via email to