/** * * @param url of root to be indexed * @return result of indexing * @throws IOException * @throws IllegalArgumentException * @deprecated Only used by unit tests, the start method is used by impl dep by tests of several modules, safer to keep it. */ @Deprecated public final Changes analyse(@NonNull final URL url) throws IOException, IllegalArgumentException { return analyse( SPIAccessor.getInstance().createContext( FileUtil.createMemoryFileSystem().getRoot(), url, JavaIndex.NAME, JavaIndex.VERSION, null, false, false, false, SuspendSupport.NOP, null, null)); }
public static File getIndex(URL url) throws IOException { url = CachingArchiveProvider.getDefault().mapCtSymToJar(url); FileObject indexBaseFolder = CacheFolder.getDataFolder(url); String path = SPIAccessor.getInstance().getIndexerPath(NAME, VERSION); FileObject indexFolder = FileUtil.createFolder(indexBaseFolder, path); return FileUtil.toFile(indexFolder); }
} else { toCompileRound = new ArrayList<CompileTuple>(compileResult.aptGenerated.size()); final SPIAccessor accessor = SPIAccessor.getInstance(); for (javax.tools.FileObject fo : compileResult.aptGenerated) { final PrefetchableJavaFileObject pfo = (PrefetchableJavaFileObject) fo; final Indexable i = accessor.create(new AptGeneratedIndexable(pfo)); CompileTuple ct = new CompileTuple(pfo, i, false, true, true); toCompileRound.add(ct);