Changeset 97

Show
Ignore:
Timestamp:
03/29/07 14:26:58 (2 years ago)
Author:
mikey
Message:

add metadata to star file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build.php

    r79 r97  
    33$starArchive = new StarArchive(new StarWriter('build/xjconf.star')); 
    44$dirIt       = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('XJConf')); 
     5$removePath  = dirname(__FILE__); 
    56foreach ($dirIt as $file) { 
    67    if ($file->isFile() == false || substr($file->getPathname(), -4) != '.php') { 
     
    1011     
    1112    $fqClassName = str_replace('/', '.', str_replace('XJConf/', 'net/xjconf/', str_replace(DIRECTORY_SEPARATOR, '/', str_replace('.php', '', $file->getPathname())))); 
    12     $starArchive->add(new StarFile($file->getPathname()), $fqClassName); 
     13    $starArchive->add(new StarFile($file->getPathname(), $removePath), $fqClassName); 
    1314} 
     15$starArchive->addMetaData('title', 'XJConf for PHP'); 
     16$starArchive->addMetaData('package', 'net.xjconf'); 
     17$starArchive->addMetaData('version', '0.2.0-dev'); 
     18$starArchive->addMetaData('author', 'XJConf Development Team <http://php.xjconf.net>'); 
     19$starArchive->addMetaData('copyright', '© 2007 XJConf Development Team'); 
    1420$starArchive->create(); 
    1521?>