blob: 6db3d62fdf8cf96fd1ee21cffc8c5ae68a85a135 [file] [log] [blame]
David Matějčekdf938b42021-08-26 22:15:08 +02001#!/bin/bash
David Matějček6dc48b62021-08-26 23:06:31 +02002#
3# Copyright (c) 2021 Eclipse Foundation and/or its affiliates. All rights reserved.
4#
5# This program and the accompanying materials are made available under the
6# terms of the Eclipse Public License v. 2.0, which is available at
7# http://www.eclipse.org/legal/epl-2.0.
8#
9# This Source Code may also be made available under the following Secondary
10# Licenses when the conditions for such availability set forth in the
11# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
12# version 2 with the GNU Classpath Exception, which is available at
13# https://www.gnu.org/software/classpath/license.html.
14#
15# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16#
17
David Matějčekdf938b42021-08-26 22:15:08 +020018set -e
19set -v
20
21path="${1:-./}";
22
23find "${path}" -type f -regex ".*\/target\/[^\/]*\.jar" ! -path '*/appserver/tests/tck/*' ! -regex ".*/\(glassfish\-embedded\-[a-z]+\)\.jar" -print0 | while IFS= read -r -d '' file; do
24 echo "Processing file: ${file}";
25 # ignorance: bnd tries to resolve dependencies, but:
26 # - not all modules are osgi modules
27 # - some modules have dependency on system classpath or code generated at runtime
28 # - some modules are really broken, but we are not sure because we don't have any tests for them: TODO/FIXME
29 bnd --ignore 'Unresolved references' print --verify "${file}"
30done
31