| <?php |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); |
| $App = new App(); |
| $Nav = new Nav(); |
| $Menu = new Menu(); |
| include($App->getProjectCommon()); |
| |
| require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/buildServer-common.php"); |
| require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/downloads-scripts.php"); |
| require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/scripts.php"); |
| require_once("./custom-scripts.php"); |
| |
| $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/modeling/includes/common.css"/>' . "\n\t"); |
| $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/modeling/includes/downloads.css"/>' . "\n\t"); |
| $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="styles.css"/>' . "\n\t"); |
| $App->AddExtraHtmlHeader('<script src="/modeling/includes/downloads.js" type="text/javascript"></script>' . "\n\t"); |
| |
| #### Project variables #### |
| $projectTitle = "Papyrus"; |
| $pageTitle = "Papyrus - Downloads"; |
| // Path to the downloads area under http://downloads.eclipse.org |
| $PR = "modeling/mdt/papyrus"; |
| // absolute path to the site's home page |
| $websiteRoot = "/papyrus"; |
| |
| # version => array of qualifiers |
| # ex : "3.3.0" => array("R201205291042") |
| $hiddenBuilds = array( |
| "1.1.3" => array("R201511250351"), |
| "1.1.3" => array("S201511250351") |
| ); |
| #### End variables #### |
| |
| $PWD = getPWD("downloads/drops"); |
| $branches = loadDirSimple($PWD, ".*", "d"); |
| rsort($branches); |
| |
| $buildtypes = array( |
| "R" => "Release", |
| "S" => "Stable", |
| "I" => "Integration", |
| "M" => "Maintenance", |
| "N" => "Nightly" |
| ); |
| $buildTypes = getBuildTypes($branches, $buildtypes); |
| |
| // Retrieve the list of builds from the disk (folder list only) |
| $builds = getBuildsFrom($branches, $PWD); |
| |
| $builds = reorderAndSplitBuilds($builds, $buildTypes, $hiddenBuilds); |
| $releases = $builds[1]; |
| $builds = $builds[0]; |
| |
| $html = "<div id=\"midcolumn\">\n"; |
| $html .= "<ul class=\"text-left\">\n"; |
| $html .= generateHTMLReleaseList($releases, $projectTitle, $PR, $PWD, $websiteRoot); |
| $html .= generateHTMLBuildList($builds, $projectTitle, $PR, $PWD, $websiteRoot); |
| $html .= "</ul>\n"; |
| $html .= "</div>\n\n"; |
| |
| # Generate the web page |
| $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |