Exemplo n.º 1
0
<?php

/**
 * 动态编译脚本,开发环境执行此文件,动态生成过程文件
 * @author wuq
 **/
error_reporting(E_ALL);
define('WIND_DEBUG', 1);
$message = array();
include '../wind/Wind.php';
define('_COMPILE_PATH', dirname(__FILE__) . '/');
Wind::clear();
Wind::import('WIND:base.*', true);
Wind::import('WIND:web.*', true);
$packInfo = Wind::getImports();
Wind::import('WIND:filter.*', true);
Wind::import('WIND:router.*', true);
Wind::import('WIND:http.request.*', true);
Wind::import('WIND:http.response.*', true);
Wind::import('WIND:utility.*', true);
$imports = Wind::getImports();
/* 载入需要的文件信息 */
Wind::import('WIND:utility.WindPack');
Wind::import('WIND:utility.WindFile');
Wind::import('WIND:utility.WindString');
Wind::import('WIND:parser.WindConfigParser');
/* 打包 */
$pack = new WindPack();
$fileList = array();
$content = array();
foreach ($imports as $key => $value) {