Package org.eclipse.tycho.compiler.jdt
Class JdkLibraryInfoProvider
- java.lang.Object
-
- org.eclipse.tycho.compiler.jdt.JdkLibraryInfoProvider
-
@Component(role=JdkLibraryInfoProvider.class) public class JdkLibraryInfoProvider extends java.lang.Object
Determine and cache system library info (Java version, bootclasspath, extension and endorsed directories) for given javaHome directories.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
isRunningOnJava9orLater
private org.apache.maven.plugin.LegacySupport
legacySupport
private java.io.File
libDetectorJar
private java.util.Map<java.lang.String,LibraryInfo>
libraryInfoCache
private org.codehaus.plexus.logging.Logger
log
private org.apache.maven.repository.RepositorySystem
repositorySystem
-
Constructor Summary
Constructors Constructor Description JdkLibraryInfoProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
addJarsToList(java.io.File[] jars, java.util.List<java.lang.String> fileList)
private LibraryInfo
generateLibraryInfo(java.lang.String javaHome)
protected java.io.File
getLibDetectorJar()
LibraryInfo
getLibraryInfo(java.lang.String javaHome)
protected org.codehaus.plexus.logging.Logger
getLog()
private boolean
isRunningOnJava9orLater()
private LibraryInfo
parseLibraryInfo(java.lang.String output, java.lang.String javaHome)
private static java.io.File[]
scanForJars(java.io.File libDir)
private static java.lang.String[]
scanLibFolders(java.lang.String javaHome)
private static java.lang.String[]
splitPath(java.lang.String path)
-
-
-
Field Detail
-
repositorySystem
@Requirement private org.apache.maven.repository.RepositorySystem repositorySystem
-
legacySupport
@Requirement private org.apache.maven.plugin.LegacySupport legacySupport
-
log
@Requirement private org.codehaus.plexus.logging.Logger log
-
libraryInfoCache
private java.util.Map<java.lang.String,LibraryInfo> libraryInfoCache
-
libDetectorJar
private java.io.File libDetectorJar
-
isRunningOnJava9orLater
private java.lang.Boolean isRunningOnJava9orLater
-
-
Method Detail
-
getLibraryInfo
public LibraryInfo getLibraryInfo(java.lang.String javaHome)
-
generateLibraryInfo
private LibraryInfo generateLibraryInfo(java.lang.String javaHome)
-
scanLibFolders
private static java.lang.String[] scanLibFolders(java.lang.String javaHome)
-
addJarsToList
private static void addJarsToList(java.io.File[] jars, java.util.List<java.lang.String> fileList)
-
scanForJars
private static java.io.File[] scanForJars(java.io.File libDir)
-
parseLibraryInfo
private LibraryInfo parseLibraryInfo(java.lang.String output, java.lang.String javaHome)
-
isRunningOnJava9orLater
private boolean isRunningOnJava9orLater()
-
splitPath
private static java.lang.String[] splitPath(java.lang.String path)
-
getLog
protected org.codehaus.plexus.logging.Logger getLog()
-
getLibDetectorJar
protected java.io.File getLibDetectorJar()
-
-