Changeset 5017
- Timestamp:
- 09/09/07 18:12:23 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfProjectExportPlugin/data/tasks/sfPakeExport.php
r4984 r5017 38 38 ); 39 39 40 if (count($opts) > 0)40 if (count($opts) > 0) 41 41 { 42 foreach ($opts AS $key)42 foreach ($opts AS $key) 43 43 { 44 44 $options[$key] = true; … … 61 61 62 62 // Delete cache content 63 if (!$options['cache'])63 if (!$options['cache']) 64 64 { 65 65 pake_echo_action('project-export', 'Delete cache folder content'); … … 69 69 70 70 // Delete all files into the uploads dir 71 if (!$options['uploads'])71 if (!$options['uploads']) 72 72 { 73 73 pake_echo_action('project-export', 'Delete uploads folder content'); … … 77 77 78 78 // Delete all files and fixtures dir 79 if (!$options['fixtures'])79 if (!$options['fixtures']) 80 80 { 81 81 $sf_fixtures_dir = $sf_export_path . '/data/fixtures'; 82 if (is_dir($sf_fixtures_dir))82 if (is_dir($sf_fixtures_dir)) 83 83 { 84 84 pake_echo_action('project-export', 'Delete fixtures folder'); … … 89 89 90 90 // Delete doc dir 91 if (!$options['doc'])91 if (!$options['doc']) 92 92 { 93 93 pake_echo_action('project-export', 'Delete doc folder'); … … 98 98 99 99 // Delete test dir 100 if (!$options['test'])100 if (!$options['test']) 101 101 { 102 102 pake_echo_action('project-export', 'Delete test folder'); … … 107 107 108 108 // Delete file symfony and symfony.php 109 if (!$options['command'])109 if (!$options['command']) 110 110 { 111 if (file_exists($sf_export_path . '/symfony'))111 if (file_exists($sf_export_path . '/symfony')) 112 112 { 113 113 pake_echo_action('project-export', 'Delete symfony file'); … … 115 115 } 116 116 117 if (file_exists($sf_export_path . '/symfony.php'))117 if (file_exists($sf_export_path . '/symfony.php')) 118 118 { 119 119 pake_echo_action('project-export', 'Delete symfony.php file');

