Changeset 1250
- Timestamp:
- 05/03/10 13:08:46 (3 years ago)
- Location:
- trunk/contrib
- Files:
-
- 1 added
- 2 modified
-
.htaccess (added)
-
compress.php (modified) (1 diff)
-
compress_yui.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/contrib/compress.php
r1084 r1250 85 85 86 86 exec("echo \"".(preg_match('/XinhaCore.js$/',$file) ? $file_prefix.$core_prefix : $file_prefix)."\" > $file && java -jar ${cwd}/dojo_js_compressor.jar -c ${file}_uncompr.js >> $file 2>&1"); 87 if (preg_match('/js: ".*?", line \d+:/',file_get_contents($file)) )87 if (preg_match('/js: ".*?", line \d+:/',file_get_contents($file)) || preg_match('/sh: java: command not found/', file_get_contents($file))) 88 88 { 89 89 unlink($file); -
trunk/contrib/compress_yui.php
r1175 r1250 93 93 94 94 passthru("echo \"".(preg_match('/XinhaCore.js$/',$file) ? $file_prefix.$core_prefix : $prefix)."\" > $file && java -jar {$xinha_root}/contrib/yuicompressor-2.4.2.jar --charset UTF-8 ${file}_uncompr${ext} >> $file 2>&1"); 95 if (preg_match('/\d+:\d+:syntax error/',file_get_contents($file)) )95 if (preg_match('/\d+:\d+:syntax error/',file_get_contents($file)) || preg_match('/sh: java: command not found/', file_get_contents($file))) 96 96 { 97 97 unlink($file);
