コード例 #1
0
ファイル: relink.php プロジェクト: mybo/com_lts
 /**
  * Relinks the plugins
  */
 public function linkPlugins()
 {
     if (empty($this->_plugins)) {
         return;
     }
     foreach ($this->_plugins as $plugin) {
         echo "Linking plugin " . $plugin['plugin'] . ' (' . $plugin['folder'] . ")\n";
         $map = $this->_mapPlugin($plugin);
         extract($map);
         foreach ($dirs as $from => $to) {
             symlink_dir(realpath2($from), realpath2($to));
         }
         foreach ($files as $from => $to) {
             symlink_file(realpath2($from), realpath2($to));
         }
     }
 }
コード例 #2
0
ファイル: LinkSiteTask.php プロジェクト: Coyotejld/buildfiles
 /**
  * Relinks the plugins
  */
 public function linkPlugins()
 {
     if (empty($this->_plugins)) {
         return;
     }
     foreach ($this->_plugins as $plugin) {
         $this->log("Linking plugin " . $plugin['plugin'] . ' (' . $plugin['folder'] . ")", Project::MSG_INFO);
         $dirs = array();
         $files = array();
         $map = $this->_mapPlugin($plugin);
         extract($map);
         foreach ($dirs as $from => $to) {
             symlink_dir(realpath2($from), realpath2($to));
         }
         foreach ($files as $from => $to) {
             symlink_file(realpath2($from), realpath2($to));
         }
     }
 }