Fix #8019 - tidy up resource usage
[roobuilder] / src / Resources.vala
index a2d4ad4..6dceca7 100644 (file)
@@ -90,11 +90,11 @@ public class Resources : Object
        public void initFiles()
        {       
                string[] avail_files = { 
-                       "roodata.json",
-                       "flutter_tree.json",
-                       "*",
-                       "Editors/*.js",
-                       "vapi/*"
+                       "roodata.json", /// << this is the only one we get now..
+//                     "flutter_tree.json",
+//                     "*",
+       //              "Editors/*.js",
+//                     "vapi/*"
                        
                };
                this.fetch_files = new Gee.ArrayList<ResourcesItem>();
@@ -108,7 +108,7 @@ public class Resources : Object
                        if (target == "flutter_tree.json") {
                                src = "https://raw.githubusercontent.com/roojs/flutter-docs-json/master/tree.json";
                        }
-                       
+                       /*
                        if (target.contains("*")) {
                                var split = target.split("*");
                                
@@ -119,7 +119,7 @@ public class Resources : Object
                                }
                                
                        }
-                       
+                       */
                        this.fetch_files.add(new ResourcesItem(src,target, ""));
                }
        
@@ -164,18 +164,18 @@ public class Resources : Object
                
                // this has to check the required files, not the list...
                string[] required =  {
-                       "bootstrap.builder.html",
+                       /*"bootstrap.builder.html",
                        "bootstrap4.builder.html",
                         
                        "mailer.builder.html",
                        "roo.builder.html",
                        "roo.builder.js",
-                       
+                       */
                        
                        "roodata.json",
                        
                        //"RooUsage.txt" ?? not needed it's doen from roodata.
-                       "Gir.overides" //?? needed anymnore?
+               //      "Gir.overides" //?? needed anymnore?
                        
                };
 
@@ -304,6 +304,7 @@ public class Resources : Object
                                        GLib.error("Problem writing data %s", e.message);
                                }
             switch (item.target) {
+            /*
                                case "Gir.overides":
                                        // clear all the project caches....
                                        foreach(var p in Project.Project.allProjectsByName()) { 
@@ -313,7 +314,7 @@ public class Resources : Object
                                        }
 
                                        break;
-                                
+                               */ 
                                        
                                case "roodata.json":
                                        Palete.Roo.classes_cache = null; // clear the cache.