本文整理汇总了PHP中Feature::jar方法的典型用法代码示例。如果您正苦于以下问题:PHP Feature::jar方法的具体用法?PHP Feature::jar怎么用?PHP Feature::jar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feature
的用法示例。
在下文中一共展示了Feature::jar方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
exec("mkdir -p {$output_dir}");
exec("mkdir -p {$sites_dir}");
//iterate over all the release trains
foreach (ReleaseTrain::all() as $train) {
$features = array();
// create a dedicated folder for each of them
exec("mkdir -p {$sites_dir}/{$train->id}");
// create the output folder for temporary artifacts
$output_dir_for_train = "{$output_dir}/{$train->id}/";
// iterate over each language
foreach (Language::all() as $lang) {
// create a new feature object
$feature = new Feature($lang, $train, $tmp_dir, $output_dir_for_train);
// make it generate itself
$feature->generateAll();
$feature->jar();
$features[] = $feature;
}
$site = fopen("{$output_dir_for_train}/eclipse/site.xml", "w");
$head = <<<HEAD
<site mirrorsURL="http://www.eclipse.org/downloads/download.php?file=/technology/babel/update-site/ganymede/site.xml&format=xml">
<description url="http://babel.eclipse.org/">
\t\tThis update site contains user-contributed translations of the strings in all Eclipse projects.
\t\tPlease see the http://babel.eclipse.org/ Babel project web pages for a full how-to-use explanation of
\t\tthese translations as well as how you can contribute to the translations of this and future versions of Eclipse.
\t
</description>
HEAD;
fwrite($site, $head);
$version = $train->version . "_" . $train->timestamp;