Class BundleUtils

java.lang.Object
com.atlassian.new_platform.BundleUtils

public class BundleUtils extends Object
  • Method Details

    • extractBundleInfo

      public static BundleInfo extractBundleInfo(Path path)
    • extractLibraryInfo

      public static BundleInfo extractLibraryInfo(Path path)
    • parseLibraries

      public static List<BundleInfo> parseLibraries(Path root) throws IOException
      Parsed in parallel: each jar gets its own Jar and Analyzer, and this deep scan is the dominant cost of the contract tests' setup. Sorted first because Files.list(Path) is unordered, so a parallel collect would otherwise vary the order in which the contract tests name the jars behind a mismatched package.
      Throws:
      IOException
    • parseBundles

      public static List<BundleInfo> parseBundles(Path root) throws IOException
      Parsed in parallel, for the reasons given on parseLibraries(Path).
      Throws:
      IOException
    • mapToBundleNames

      public static List<String> mapToBundleNames(List<BundleInfo> bundles)