/** * Checks if the given boot classpath root has the the ct.sym equivalent. * @param root the root to check * @return true if there is a ct.sym folder corresponding to given boot classpath * root */ public boolean hasCtSym (@NonNull final URL root) { final URL fileURL = FileUtil.getArchiveFile(root); if (fileURL == null) { return false; } final File f; try { f = BaseUtilities.toFile(fileURL.toURI()); } catch (URISyntaxException ex) { return false; } if (f == null || !f.exists()) { return false; } final Pair<File, String> res = mapJarToCtSym(f); return res.second() != null; }
File f = BaseUtilities.toFile(URI.create(inner.toExternalForm())); if (f.isFile()) { final Pair<File,String> resolved = mapJarToCtSym(f); if (resolved.second() == null) { return Pair.<Archive,URI>of(