Ignore:
Timestamp:
01/14/09 20:04:12 (11 years ago)
Author:
ray
Message:
  • added yuicompressor binary
  • updated copyright notices to 2009
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contrib/compress_yui.php

    r951 r1152  
    6060    --  BSD license)  please read license.txt in this package for details. 
    6161    -- 
    62     --  Copyright (c) 2005-2008 Xinha Developer Team and contributors 
     62    --  Copyright (c) 2005-2009 Xinha Developer Team and contributors 
    6363    --   
    6464    --  Xinha was originally based on work by Mihai Bazon which is: 
     
    7878        file_put_contents($file."_uncompr${ext}", preg_replace('/(\/\/[^\n]*)?(?![*])\\\[\n]/','',file_get_contents($file))); 
    7979 
    80         exec("echo \"".(preg_match('/XinhaCore.js$/',$file) ? $prefix.$core_prefix : $prefix)."\" > $file && java -jar ${cwd}/yuicompressor-2.2.5.jar  --charset UTF-8 ${file}_uncompr${ext} >> $file 2>&1"); 
     80        passthru("echo \"".(preg_match('/XinhaCore.js$/',$file) ? $prefix.$core_prefix : $prefix)."\" > $file && java -jar ${cwd}/yuicompressor-2.4.2.jar  --charset UTF-8 ${file}_uncompr${ext} >> $file 2>&1"); 
    8181        if (preg_match('/\d+:\d+:syntax error/',file_get_contents($file))) 
    8282        { 
Note: See TracChangeset for help on using the changeset viewer.