/**
  * 将一组文件列表合并为一个文件列表
  *
  * @param array $files 文件/文件夹列表
  * @param string $packPath 打包文件存放路径
  * @param $boolean
  */
 public function pack($files, $packPath = '', $namespace = '')
 {
     $namespace = explode(' ', $namespace);
     $i = 0;
     foreach ($files as $filePath) {
         if (!($filePath = realpath($filePath))) {
             continue;
         }
         $_dir = dirname($filePath);
         $_n = isset($namespace[$i]) ? $namespace[$i] : basename($_dir);
         $_n = array(strtoupper($_n), $_dir . '/');
         $this->_import($filePath, $_n);
         $i++;
     }
     if ($this->_p && $this->fileList) {
         Wind::import('WIND:utility.WindPack');
         $pack = new WindPack();
         $pack->setContentInjectionCallBack(array($this, 'injectionImports'));
         if (!$pack->packFromFileList($this->fileList, $packPath, WindPack::STRIP_PHP, true)) {
             throw new Exception('failed to create pack file (' . $packPath . ')');
         }
     }
 }