Interface FallbackLocalRepoLoader


  • public interface FallbackLocalRepoLoader
    An implementation of a local repository parser to use to try to identify a package if the normal mechanism doesn't. If one is provided to RepoManager, #parseLegacyLocalPackage(File, ProgressIndicator) will be run on every repository directory that doesn't contain a package recognized by LocalRepoLoaderImpl (or a child of such a directory). LocalRepoLoaderImpl will then use the LocalPackage generated by this to write out a package.xml in the normal format.
    • Method Detail

      • parseLegacyLocalPackage

        @Nullable
        LocalPackage parseLegacyLocalPackage​(@NonNull
                                             java.nio.file.Path f,
                                             @NonNull
                                             ProgressIndicator progress)
        Try to find a package at the given location. If found, return a LocalPackage with the package's information. Otherwise return null.
      • refresh

        void refresh()
        Refreshes the loader's internal state if necessary. This should probably be done (by the repo manager) whenever a new local repo load is started.
      • shouldParse

        boolean shouldParse​(@NonNull
                            java.nio.file.Path root)
        Returns true if it looks like we should try to find a package in the given directory.