示例#1
0
 protected function run()
 {
     parent::run();
     if (!$this->dataDescription->isEmpty()) {
         $this->getResult()->removeAttribute('empty');
     }
 }
示例#2
0
 /**
  * Build the instance of the requested object
  */
 protected function build()
 {
     $this->instance = $this->builder->run();
 }
示例#3
0
 }
 update_changelog(os::path('tools', 'svn', MCMS_RELEASE, 'changelog.txt'), null, 'rel-8.12..master');
 if (!is_dir($dirName = os::path('tools', 'svn', MCMS_RELEASE, 'changelogs'))) {
     if (!mkdir($dirName, 0750, true)) {
         throw new Exception('could not create ' . $dirName);
     }
 }
 foreach (os::find('lib', 'modules', '*') as $tmp) {
     update_changelog(os::path($dirName, basename($tmp) . '.txt'), $tmp);
 }
 os::exec('git clean -fd');
 printf("Creating %s\n", $zipName = 'molinos-cms-' . MCMS_VERSION . '.zip');
 zip::create($zipName, array('.htaccess.dist', '*.php', 'doc', os::path('lib', 'modules', 'admin'), os::path('lib', 'modules', 'api'), os::path('lib', 'modules', 'auth'), os::path('lib', 'modules', 'authbasic'), os::path('lib', 'modules', 'base'), os::path('lib', 'modules', 'compressor'), os::path('lib', 'modules', 'core'), os::path('lib', 'modules', 'cron'), os::path('lib', 'modules', 'files'), os::path('lib', 'modules', 'indexer'), os::path('lib', 'modules', 'install'), os::path('lib', 'modules', 'markdown'), os::path('lib', 'modules', 'mimemail'), os::path('lib', 'modules', 'modman'), os::path('lib', 'modules', 'nodeapi'), os::path('lib', 'modules', 'pdo'), os::path('lib', 'modules', 'routeadmin'), os::path('lib', 'modules', 'schema'), os::path('lib', 'modules', 'xslt'), os::path('tools', '*.php'), os::path('sites', 'default')), '@~$@');
 printf("Rebuilding modules.\n");
 $b = new Builder(os::path('tools', 'svn', MCMS_RELEASE, 'modules.ini'));
 $b->run();
 foreach (os::find('tmp', 'modules', '*.zip') as $zipName) {
     $name = basename($zipName);
     if (preg_match('@^(.*)-(.*)\\.zip$@', $name, $m)) {
         $info = "{$m[1]} v{$m[2]}";
     } else {
         $info = $name;
     }
     printf("Uploading %s\n", $zipName);
     if (os::exec('googlecode_upload.py', array('-s', $info, '-p', 'molinos-cms', '-l', 'Deprecated,Type-Module,R' . MCMS_RELEASE, $zipName))) {
         printf("  error\n");
     }
 }
 printf("Sending changes to Subversion.\n");
 chdir('tools/svn');
 if (!os::exec('svn', array('commit', '-m', 'Automatic upload by tools/release.php'), $status)) {