Changeset 97
- Timestamp:
- 03/29/07 14:26:58 (2 years ago)
- Files:
-
- trunk/build.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build.php
r79 r97 3 3 $starArchive = new StarArchive(new StarWriter('build/xjconf.star')); 4 4 $dirIt = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('XJConf')); 5 $removePath = dirname(__FILE__); 5 6 foreach ($dirIt as $file) { 6 7 if ($file->isFile() == false || substr($file->getPathname(), -4) != '.php') { … … 10 11 11 12 $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); 13 14 } 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'); 14 20 $starArchive->create(); 15 21 ?>
