Example #1
0
 /** Default RudraX Plug
  *
  * @RequestMapping(url="buildfile/json/{version}")
  *
  */
 function bundleJson($version)
 {
     include_once RUDRA . "/core/model/Header.php";
     Header::init(true);
     \RudraX\Utils\ResourceUtil::build_read(Header::get_build_file_path());
 }
Example #2
0
                                    $filemodules['bundles'][$mod] = array("files" => array());
                                    foreach ($files as $key => $file) {
                                        if ($key == '@') {
                                            $filemodules['bundles'][$mod][$key] = explode(',', $file);
                                        } else {
                                            if ($key != '@' && !is_remote_file($file)) {
                                                // Browser::log("****",resolve_path($dir."/".$file),"***");
                                                $file_path = resolve_path(replace_first(PROJECT_ROOT_DIR, "", $dir . '/' . $file));
                                                $filemodules['bundles'][$mod]["files"][] = $file_path;
                                                // echo $file_path."scanning</br>";
                                                // $filemodules['bundles'][$mod]["files"][] = self::resolve_path("/resou/".$dir.'/'.$file);
                                            } else {
                                                $filemodules['bundles'][$mod]["files"][] = $file;
                                            }
                                        }
                                    }
                                }
                            }
                        } catch (Exception $e) {
                            echo 'Caught exception: ', $e->getMessage(), "\n";
                        }
                    }
                }
            }
        }
        $d->close();
        return $filemodules;
    }
}
Header::init();