Consider content with name starting with "jakarta" as Eclipse content
Change-Id: I3315f90027a030d68f6dd8a305a306dee1d1d44d
Signed-off-by: Wayne Beaton <wayne.beaton@eclipse-foundation.org>
diff --git a/services/license_check.php b/services/license_check.php
index d469ece..93eaadf 100755
--- a/services/license_check.php
+++ b/services/license_check.php
@@ -160,7 +160,7 @@
function matchAgainstEclipseProjects(&$results) {
foreach(array_keys($results['unmatched']) as $id) {
if ($parts = preg_split('/\//', $id)) {
- if (matchesEclipseNamespace($parts[2])) {
+ if (matchesEclipseNamespace($parts[2], $parts[3])) {
unset($results['unmatched'][$id]);
$results['approved'][$id] = array(
'id' => $id,
@@ -189,7 +189,7 @@
}
}
-function matchesEclipseNamespace($namespace) {
+function matchesEclipseNamespace($namespace, $name) {
// TODO Make this data-driven
if (preg_match('/^eclipse\b/', $namespace)) return true;
if (preg_match('/^io\.vertx\b/', $namespace)) return true;
@@ -197,6 +197,7 @@
if (preg_match('/^org\.polarsys\b/', $namespace)) return true;
if (preg_match('/^org\.locationtech\b/', $namespace)) return true;
if (preg_match('/^jakarta\b/', $namespace)) return true;
+ if (preg_match('/^jakarta\b/', $name)) return true;
if (preg_match('/^org\.aspectj/', $namespace)) return true;
if (preg_match('/^@theia$/', $namespace)) return true;