| <?php |
| /*******************************************************************************
|
| * Copyright (c) 2012 Eclipse Foundation and others.
|
| * All rights reserved. This program and the accompanying materials
|
| * are made available under the terms of the Eclipse Public License v1.0
|
| * which accompanies this distribution, and is available at
|
| * http://www.eclipse.org/legal/epl-v10.html
|
| *
|
| * Contributors:
|
| * Wayne Beaton (Eclipse Foundation)- initial API and implementation
|
| *******************************************************************************/
|
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); |
| $App = new App(); |
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/Project.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/SimultaneousReleaseInfo.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/debug.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/common.php"); |
| trace_file_info(__FILE__); |
| |
| $releases = getSimultaneousReleaseNames(); |
| $release = getCurrentSimultaneousReleaseName(); |
| if (isset($_GET['release'])) { |
| $target = $_GET['release']; |
| if (in_array($target, $releases)) $release = $target; |
| } |
| |
| $projects = getAllProjectsInSimultaneousRelease($release); |
|
|
| header('Content-type: text/plain'); |
| |
| foreach ($projects as $project) { |
| /* var Project $project */ |
| |
| $simultaneousReleaseInfo = $project->getSimultaneousReleaseInfo(); |
| |
| if (!$simultaneousReleaseInfo) continue; |
| |
| echo $project->getId(); |
| echo "\n"; |
| foreach($simultaneousReleaseInfo->getNested() as $nested) { |
| echo $nested->getId(); |
| echo "\n"; |
| } |
| } |
| |
| ?> |