DataObjects/pman.links.ini
[Pman.Core] / JsCompile.php
index 2221f9a..38c9003 100644 (file)
@@ -72,7 +72,7 @@ class Pman_Core_JsCompile  extends Pman
         
         
         
-        $tmp = ini_get('session.save_path')."/{$proj}_". posix_getuid(). '_'.md5($src);
+       //$tmp = ini_get('session.save_path')."/{$proj}_". posix_getuid(). '_'.md5($src);
         
         
         require_once 'System.php';
@@ -91,12 +91,13 @@ class Pman_Core_JsCompile  extends Pman
         }  
         
         // should we be more specirfic!??!?!?
-        
-        $buildjs = 
-        $cmd = "$seed {$o['jspacker']}/pack.js -m $proj  -a  $src/*.js -o $tmp";
-        echo $cmd;
+         
+        $cmd = "$seed {$o['jspacker']}/pack.js -m $proj  -a  $src/*.js";
+        echo "$cmd\n";
         passthru($cmd);
         // technically we should trash old compiled files.. 
+        // or we move towards a 'cache in session directory model..'
+        
         
         /*
         
@@ -139,7 +140,8 @@ class Pman_Core_JsCompile  extends Pman
     }
     
     function gatherProjects() {
-        $src =  realpath(dirname(__FILE__).'/../');
+        $src= array_shift(explode(PATH_SEPARATOR, ini_get('include_path'))) .'/Pman';
+        
         $ret = array();
         foreach(scandir($src) as $f) {
             if (!strlen($f) || $f[0] == '.') {