Gets the dependencies of a library. @param libName the library file name, including the prefix and extension. @return An array naming the dependencies of the library, or null if it is not found in any SoSources @throws IOException if there is an error reading libName
(String libName)
| 752 | * @throws IOException if there is an error reading libName |
| 753 | */ |
| 754 | public static @Nullable String[] getLibraryDependencies(String libName) throws IOException { |
| 755 | String[] deps = null; |
| 756 | |
| 757 | sSoSourcesLock.readLock().lock(); |
| 758 | try { |
| 759 | if (sSoSources != null) { |
| 760 | for (int i = 0; deps == null && i < sSoSources.length; ++i) { |
| 761 | SoSource currentSource = sSoSources[i]; |
| 762 | deps = currentSource.getLibraryDependencies(libName); |
| 763 | } |
| 764 | } |
| 765 | } finally { |
| 766 | sSoSourcesLock.readLock().unlock(); |
| 767 | } |
| 768 | |
| 769 | return deps; |
| 770 | } |
| 771 | |
| 772 | /** |
| 773 | * Returns the so file for the specified library. Returns null if the library does not exist or if |
nothing calls this directly
no test coverage detected