test_class.file: tycho-compiler-jdt/src/test/java/org/eclipse/tycho/compiler/jdt/JdkLibraryInfoProviderTest.java
test_class.identifier: JdkLibraryInfoProviderTest
test_case.body: @Test
      public void testGetLibraryInfoForCurrentlyRunningJDK() throws Exception {
          JdkLibraryInfoProviderStub libInfoProvider = new JdkLibraryInfoProviderStub(
                  new File("../tycho-lib-detector/target/classes/"), new SilentLog());
          String javaHome = System.getProperty("java.home");
          LibraryInfo libraryInfo = libInfoProvider.getLibraryInfo(javaHome);
  
          assertEquals(System.getProperty("java.version"), libraryInfo.getVersion());
          String expectedBootclasspath = getExpectedBootclasspath(javaHome);
          assertEquals(expectedBootclasspath, String.join(File.pathSeparator, libraryInfo.getBootpath()));
          String javaExtDirs = System.getProperty("java.ext.dirs");
          if (javaExtDirs != null) {
              assertEquals(javaExtDirs, String.join(File.pathSeparator, libraryInfo.getExtensionDirs()));
          }
          String javaEndorsedDirs = System.getProperty("java.endorsed.dirs");
          if (javaExtDirs != null) {
              assertEquals(javaEndorsedDirs, String.join(File.pathSeparator, libraryInfo.getEndorsedDirs()));
          }
      }
test_case.class_method_signature: JdkLibraryInfoProviderTest.testGetLibraryInfoForCurrentlyRunningJDK()
test_case.full_signature: @Test public void testGetLibraryInfoForCurrentlyRunningJDK()
test_case.identifier: testGetLibraryInfoForCurrentlyRunningJDK
test_case.invocations: getProperty getLibraryInfo assertEquals getProperty getVersion getExpectedBootclasspath assertEquals join getBootpath getProperty assertEquals join getExtensionDirs getProperty assertEquals join getEndorsedDirs
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetLibraryInfoForCurrentlyRunningJDK()
focal_class.declarator: repositorySystem
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private RepositorySystem repositorySystem;
focal_class.type: RepositorySystem
focal_class.var_name: repositorySystem
focal_class.declarator: legacySupport
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private LegacySupport legacySupport;
focal_class.type: LegacySupport
focal_class.var_name: legacySupport
focal_class.declarator: log
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private Logger log;
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: libraryInfoCache = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private Map<String, LibraryInfo> libraryInfoCache = new HashMap<>();
focal_class.type: Map<String, LibraryInfo>
focal_class.var_name: libraryInfoCache
focal_class.declarator: libDetectorJar
focal_class.modifier: private
focal_class.original_string: private File libDetectorJar;
focal_class.type: File
focal_class.var_name: libDetectorJar
focal_class.declarator: isRunningOnJava9orLater
focal_class.modifier: private
focal_class.original_string: private Boolean isRunningOnJava9orLater;
focal_class.type: Boolean
focal_class.var_name: isRunningOnJava9orLater
focal_class.file: tycho-compiler-jdt/src/main/java/org/eclipse/tycho/compiler/jdt/JdkLibraryInfoProvider.java
focal_class.identifier: JdkLibraryInfoProvider
focal_class.class_method_signature: JdkLibraryInfoProvider.getLibraryInfo(String javaHome)
focal_class.full_signature: public LibraryInfo getLibraryInfo(String javaHome)
focal_class.identifier: getLibraryInfo
focal_class.modifiers: public
focal_class.parameters: (String javaHome)
focal_class.return: LibraryInfo
focal_class.signature: LibraryInfo getLibraryInfo(String javaHome)
focal_class.class_method_signature: JdkLibraryInfoProvider.generateLibraryInfo(String javaHome)
focal_class.full_signature: private LibraryInfo generateLibraryInfo(String javaHome)
focal_class.identifier: generateLibraryInfo
focal_class.modifiers: private
focal_class.parameters: (String javaHome)
focal_class.return: LibraryInfo
focal_class.signature: LibraryInfo generateLibraryInfo(String javaHome)
focal_class.class_method_signature: JdkLibraryInfoProvider.scanLibFolders(String javaHome)
focal_class.full_signature: private static String[] scanLibFolders(String javaHome)
focal_class.identifier: scanLibFolders
focal_class.modifiers: private static
focal_class.parameters: (String javaHome)
focal_class.return: String[]
focal_class.signature: String[] scanLibFolders(String javaHome)
focal_class.class_method_signature: JdkLibraryInfoProvider.addJarsToList(File[] jars, List<String> fileList)
focal_class.full_signature: private static void addJarsToList(File[] jars, List<String> fileList)
focal_class.identifier: addJarsToList
focal_class.modifiers: private static
focal_class.parameters: (File[] jars, List<String> fileList)
focal_class.return: void
focal_class.signature: void addJarsToList(File[] jars, List<String> fileList)
focal_class.class_method_signature: JdkLibraryInfoProvider.scanForJars(File libDir)
focal_class.full_signature: private static File[] scanForJars(File libDir)
focal_class.identifier: scanForJars
focal_class.modifiers: private static
focal_class.parameters: (File libDir)
focal_class.return: File[]
focal_class.signature: File[] scanForJars(File libDir)
focal_class.class_method_signature: JdkLibraryInfoProvider.parseLibraryInfo(String output, String javaHome)
focal_class.full_signature: private LibraryInfo parseLibraryInfo(String output, String javaHome)
focal_class.identifier: parseLibraryInfo
focal_class.modifiers: private
focal_class.parameters: (String output, String javaHome)
focal_class.return: LibraryInfo
focal_class.signature: LibraryInfo parseLibraryInfo(String output, String javaHome)
focal_class.class_method_signature: JdkLibraryInfoProvider.isRunningOnJava9orLater()
focal_class.full_signature: private boolean isRunningOnJava9orLater()
focal_class.identifier: isRunningOnJava9orLater
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRunningOnJava9orLater()
focal_class.class_method_signature: JdkLibraryInfoProvider.splitPath(String path)
focal_class.full_signature: private static String[] splitPath(String path)
focal_class.identifier: splitPath
focal_class.modifiers: private static
focal_class.parameters: (String path)
focal_class.return: String[]
focal_class.signature: String[] splitPath(String path)
focal_class.class_method_signature: JdkLibraryInfoProvider.getLog()
focal_class.full_signature: protected Logger getLog()
focal_class.identifier: getLog
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Logger
focal_class.signature: Logger getLog()
focal_class.class_method_signature: JdkLibraryInfoProvider.getLibDetectorJar()
focal_class.full_signature: protected File getLibDetectorJar()
focal_class.identifier: getLibDetectorJar
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File getLibDetectorJar()
focal_method.body: public LibraryInfo getLibraryInfo(String javaHome) {
          LibraryInfo libInfo = libraryInfoCache.get(javaHome);
          if (libInfo == null) {
              libInfo = generateLibraryInfo(javaHome);
              libraryInfoCache.put(javaHome, libInfo);
          }
          return libInfo;
      }
focal_method.class_method_signature: JdkLibraryInfoProvider.getLibraryInfo(String javaHome)
focal_method.full_signature: public LibraryInfo getLibraryInfo(String javaHome)
focal_method.identifier: getLibraryInfo
focal_method.invocations: get generateLibraryInfo put
focal_method.modifiers: public
focal_method.parameters: (String javaHome)
focal_method.return: LibraryInfo
focal_method.signature: LibraryInfo getLibraryInfo(String javaHome)