Changeset 963
- Timestamp:
- 07/25/08 07:47:38 (1 month ago)
- Files:
-
- branches/arnoschn/cache/build-test.xml (modified) (1 diff)
- branches/arnoschn/cache/lib/AkCache.php (modified) (1 diff)
- branches/arnoschn/cache/script/extras/xinc-ci_tests.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/arnoschn/cache/build-test.xml
r962 r963 30 30 </then> 31 31 </if> 32 <if> 33 <equals arg1="${arguments}" arg2="\${arguments}" /> 34 <then> 35 <property name="arguments" value="all" override="true" /> 36 </then> 37 </if> 32 38 <echo> 33 39 params: branches/arnoschn/cache/lib/AkCache.php
r960 r963 245 245 } 246 246 if(!isset($options['cacheDir'])){ 247 if(!is_dir(AK_CACHE_DIR)){ 248 Ak::make_dir(AK_CACHE_DIR, array('base_path'=>AK_TMP_DIR)); 249 chmod(AK_CACHE_DIR, 0777); 247 $options['cacheDir'] = AK_CACHE_DIR.DS; 248 } 249 if(!is_dir($options['cacheDir'])){ 250 Ak::make_dir($options['cacheDir'], array('base_path'=>dirname($options['cacheDir']))); 251 $res = @chmod($options['cacheDir'],0777); 252 if (!$res) { 253 trigger_error(Ak::t('Cannot change cache dir %dir permissions',array('%dir'=>$options['cacheDir'])), E_USER_WARNING); 250 254 } 251 $options['cacheDir'] = AK_CACHE_DIR.DS;252 255 } 253 256 $this->_driverInstance =& new Cache_Lite($options); branches/arnoschn/cache/script/extras/xinc-ci_tests.php
r956 r963 180 180 function beforeRun() 181 181 { 182 return copy($this->config_file(),$this->config_backup_file()); 182 //return copy($this->config_file(),$this->config_backup_file()); 183 return true; 183 184 } 184 185 185 186 function afterRun() 186 187 { 187 if (copy($this->config_backup_file(),$this->config_file())){ 188 return unlink($this->config_backup_file()); 189 } 190 return false; 188 //if (copy($this->config_backup_file(),$this->config_file())){ 189 // return unlink($this->config_backup_file()); 190 //} 191 //return false; 192 return true; 191 193 } 192 194
