David Matějček | df938b4 | 2021-08-26 22:15:08 +0200 | [diff] [blame] | 1 | #!/bin/bash |
David Matějček | 6dc48b6 | 2021-08-26 23:06:31 +0200 | [diff] [blame] | 2 | # |
| 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ček | df938b4 | 2021-08-26 22:15:08 +0200 | [diff] [blame] | 18 | set -e |
| 19 | set -v |
| 20 | |
| 21 | path="${1:-./}"; |
| 22 | |
| 23 | find "${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}" |
| 30 | done |
| 31 | |