/**
  * Register a dependant file for collection.
  * dependant file must also be compiled, and moved to mapped location.
  * @param string
  * 
  */
 function register_dependency($path)
 {
     // register as not having been processed yet
     if (!isset($this->dependencies[$path])) {
         $this->dependencies[$path] = 0;
     }
     // return path suitable for use in include directive
     // consulting include path settings avoids hard coded paths
     if (isset($this->incpaths)) {
         $path = PLUG_VIRTUAL_DIR . PLUGTool::map_deployment_virtual($path);
         return relpath($this->cwd, $path, $this->incpaths);
     }
     // else we must map this path to the target host with a full path
     $base = $this->conf_consts['PLUG_VIRTUAL_DIR'];
     return $base . PLUGTool::map_deployment_virtual($path);
 }