Include license information in the report.
Change-Id: I9732b3e7f1ae8ccb5d6c531a2705892acb720231
Signed-off-by: Wayne Beaton <wayne.beaton@eclipse-foundation.org>
diff --git a/classes/ProjectStatusReporter.class.inc b/classes/ProjectStatusReporter.class.inc
index 6496ae3..7757ec5 100644
--- a/classes/ProjectStatusReporter.class.inc
+++ b/classes/ProjectStatusReporter.class.inc
@@ -10,6 +10,7 @@
*/
require_once dirname ( __FILE__ ) . '/Project.class.php';
+require_once dirname ( __FILE__ ) . '/License.class.inc';
require_once dirname ( __FILE__ ) . '/common.php';
require_once dirname ( __FILE__ ) . '/debug.php';
@@ -111,6 +112,14 @@
'name' => array (
'label' => 'Project Name'
),
+ 'license' => array (
+ 'label' => 'License',
+ 'function' => function($value, $key, $project) {
+ $licenses = License::getLicensesForProject($project['id']);
+ $spdx = License::getSPDXExpression($licenses);
+ return $spdx;
+ }
+ ),
'specification' => array (
'label' => 'Specification Project',
'function' => function ($value, $key, $project) {