@Named @Singleton public class ToolchainDiscoverer extends Object
JAVA{xx}_HOME
environment variables, third party installers and
OS-specific locations.Modifier and Type | Field and Description |
---|---|
static String |
CURRENT |
static String |
DISCOVERED_TOOLCHAINS_CACHE_XML |
static String |
ENV |
static String |
JAVA |
static String |
JAVA_HOME |
static String |
JDK_HOME |
static String |
LTS |
static String[] |
PROPERTIES |
static String |
RUNTIME_NAME |
static String |
RUNTIME_VERSION |
static List<String> |
SORTED_PROVIDES |
static String |
USER_HOME |
static String |
VENDOR |
static String |
VENDOR_VERSION |
static String |
VERSION |
Constructor and Description |
---|
ToolchainDiscoverer() |
Modifier and Type | Method and Description |
---|---|
org.apache.maven.toolchain.model.PersistedToolchains |
discoverToolchains() |
org.apache.maven.toolchain.model.PersistedToolchains |
discoverToolchains(String comparator)
Returns a PersistedToolchains object containing a list of discovered toolchains,
never
null . |
Optional<org.apache.maven.toolchain.model.ToolchainModel> |
getCurrentJdkToolchain()
Build the model for the current JDK toolchain
|
Path |
getJdkHome(org.apache.maven.toolchain.model.ToolchainModel toolchain) |
public static final String JAVA
public static final String VERSION
public static final String RUNTIME_NAME
public static final String RUNTIME_VERSION
public static final String VENDOR
public static final String VENDOR_VERSION
public static final String[] PROPERTIES
public static final String CURRENT
public static final String ENV
public static final String LTS
public static final String DISCOVERED_TOOLCHAINS_CACHE_XML
public static final String JDK_HOME
public static final String JAVA_HOME
public static final String USER_HOME
public Optional<org.apache.maven.toolchain.model.ToolchainModel> getCurrentJdkToolchain()
public org.apache.maven.toolchain.model.PersistedToolchains discoverToolchains()
public org.apache.maven.toolchain.model.PersistedToolchains discoverToolchains(String comparator)
null
.public Path getJdkHome(org.apache.maven.toolchain.model.ToolchainModel toolchain)
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.