blob: 1c0a98df4229d6e6fb766731089b9f288858f2c7 [file] [log] [blame]
<?php
/*****************************************************************
* Copyright (c) 2018 Eclipse Foundation and others.
*
* 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
*****************************************************************/
require_once(dirname(__FILE__) . "/../../eclipse.org-common/system/app.class.php");
require_once(dirname(__FILE__) . '/../classes/Project.class.php');
require_once(dirname(__FILE__) . '/../classes/common.php');
require_once(dirname(__FILE__) . '/../classes/debug.php');
$App = new App();
mustBeEclipseFoundationCaller();
header("Content-type: application/json");
$patterns = ProjectBundlePatterns::getAll();
$output = json_encode($patterns);
if ($output === false) echo json_last_error_msg();
echo $output;
?>