isFile() == false || substr($file->getPathname(), -4) != '.php') { continue; } $fqClassName = str_replace('/', '::', str_replace('XJConf/', 'net/xjconf/', str_replace(DIRECTORY_SEPARATOR, '/', str_replace('.php', '', $file->getPathname())))); $starArchive->add(new StarFile($file->getPathname(), $removePath), $fqClassName); } $starArchive->addMetaData('title', 'XJConf for PHP'); $starArchive->addMetaData('package', 'net::xjconf'); $starArchive->addMetaData('version', '0.4.0dev'); $starArchive->addMetaData('author', 'XJConf Development Team '); $starArchive->addMetaData('copyright', '(c) 2007-2008 XJConf Development Team'); $starArchive->create(); ?>