Development

Changeset 7296

You must first sign up to be able to contribute.

Changeset 7296

Show
Ignore:
Timestamp:
02/03/08 21:10:32 (10 months ago)
Author:
fabien
Message:

moved data/skeleton to lib/task/generator/skeleton

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/autoload/sfCoreAutoload.class.php

    r7247 r7296  
    282282  'sfGenerateProjectTask' => 'task/generator', 
    283283  'sfGeneratorBaseTask' => 'task/generator', 
     284  'myUser' => 'task/generator/skeleton/app/app/lib', 
     285  'actions' => 'task/generator/skeleton/module/module/actions', 
    284286  'sfCommandApplicationTask' => 'task/help', 
    285287  'sfHelpTask' => 'task/help', 
  • branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelGenerateCrudTask.class.php

    r7247 r7296  
    128128 
    129129    // create basic test 
    130     $this->filesystem->copy(sfConfig::get('sf_symfony_data_dir').'/skeleton/module/test/actionsTest.php', sfConfig::get('sf_root_dir').'/test/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 
     130    $this->filesystem->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_root_dir').'/test/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 
    131131 
    132132    // customize test file 
     
    154154 
    155155    // create basic test 
    156     $this->filesystem->copy(sfConfig::get('sf_symfony_data_dir').'/skeleton/module/test/actionsTest.php', sfConfig::get('sf_root_dir').'/test/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 
     156    $this->filesystem->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_root_dir').'/test/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 
    157157 
    158158    // customize test file 
  • branches/1.1/lib/task/generator/sfGenerateAppTask.class.php

    r7247 r7296  
    8484    // Create basic application structure 
    8585    $finder = sfFinder::type('any')->ignore_version_control()->discard('.sf'); 
    86     $this->filesystem->mirror(sfConfig::get('sf_symfony_data_dir').'/skeleton/app/app', $appDir, $finder); 
     86    $this->filesystem->mirror(dirname(__FILE__).'/skeleton/app/app', $appDir, $finder); 
    8787 
    8888    // Create $app.php or index.php if it is our first app 
     
    9898    $this->filesystem->replaceTokens($finder->in($appDir.'/'.sfConfig::get('sf_app_config_dir_name')), '##', '##', array('NO_SCRIPT_NAME' => ($firstApp ? 'on' : 'off'))); 
    9999 
    100     $this->filesystem->copy(sfConfig::get('sf_symfony_data_dir').'/skeleton/app/web/index.php', sfConfig::get('sf_web_dir').'/'.$indexName.'.php'); 
    101     $this->filesystem->copy(sfConfig::get('sf_symfony_data_dir').'/skeleton/app/web/index_dev.php', sfConfig::get('sf_web_dir').'/'.$app.'_dev.php'); 
     100    $this->filesystem->copy(dirname(__FILE__).'/skeleton/app/web/index.php', sfConfig::get('sf_web_dir').'/'.$indexName.'.php'); 
     101    $this->filesystem->copy(dirname(__FILE__).'/skeleton/app/web/index_dev.php', sfConfig::get('sf_web_dir').'/'.$app.'_dev.php'); 
    102102 
    103103    $finder = sfFinder::type('file')->name($indexName.'.php', $app.'_dev.php'); 
  • branches/1.1/lib/task/generator/sfGenerateControllerTask.class.php

    r7247 r7296  
    7979    ); 
    8080 
    81     $this->filesystem->copy(sfConfig::get('sf_symfony_data_dir').'/skeleton/controller/controller.php', sfConfig::get('sf_web_dir').'/'.$controller.'.php'); 
     81    $this->filesystem->copy(dirname(__FILE__).'/skeleton/controller/controller.php', sfConfig::get('sf_web_dir').'/'.$controller.'.php'); 
    8282    $this->filesystem->replaceTokens(sfConfig::get('sf_web_dir').DIRECTORY_SEPARATOR.$controller.'.php', '##', '##', $constants); 
    8383  } 
  • branches/1.1/lib/task/generator/sfGenerateModuleTask.class.php

    r7247 r7296  
    9292    else 
    9393    { 
    94       $skeletonDir = sfConfig::get('sf_symfony_data_dir').'/skeleton/module'; 
     94      $skeletonDir = dirname(__FILE__).'/skeleton/module'; 
    9595    } 
    9696 
  • branches/1.1/lib/task/generator/sfGenerateProjectTask.class.php

    r7247 r7296  
    6969    // Create basic project structure 
    7070    $finder = sfFinder::type('any')->ignore_version_control()->discard('.sf'); 
    71     $this->filesystem->mirror(sfConfig::get('sf_symfony_data_dir').'/skeleton/project', sfConfig::get('sf_root_dir'), $finder); 
     71    $this->filesystem->mirror(dirname(__FILE__).'/skeleton/project', sfConfig::get('sf_root_dir'), $finder); 
    7272 
    7373    // Update project name and directory