public class TestProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CLASSPATH |
static String |
PROP_GLOBAL_SETTING_FILE |
static String |
PROP_LOCAL_REPOSITORY |
static String |
PROP_OFFLINE |
static String |
PROP_REPOSITORY |
static String |
PROP_UPDATESNAPSHOTS |
static String |
PROP_USER_SETTING
Deprecated.
|
static String |
PROP_USER_SETTING_FILE |
Constructor and Description |
---|
TestProperties() |
Modifier and Type | Method and Description |
---|---|
String |
get(String key) |
File |
getGlobalSettings() |
File |
getLocalRepository() |
boolean |
getOffline() |
String |
getPluginVersion() |
List<String> |
getRepositories() |
List<File> |
getRuntimeClasspath()
Returns location of the current project classes, i.e.
|
boolean |
getUpdateSnapshots() |
File |
getUserSettings() |
protected Map<String,String> |
loadProperties() |
public static final String PROP_CLASSPATH
public static final String PROP_USER_SETTING
PROP_USER_SETTING_FILE
public static final String PROP_USER_SETTING_FILE
public static final String PROP_GLOBAL_SETTING_FILE
public static final String PROP_LOCAL_REPOSITORY
public static final String PROP_OFFLINE
public static final String PROP_UPDATESNAPSHOTS
public static final String PROP_REPOSITORY
protected Map<String,String> loadProperties() throws IOException
IOException
public File getUserSettings()
public File getGlobalSettings()
public File getLocalRepository()
public boolean getOffline()
public boolean getUpdateSnapshots()
public String getPluginVersion()
public List<File> getRuntimeClasspath()
Useful for testing maven core extensions, MavenRuntime.MavenRuntimeBuilder.withExtensions(java.util.Collection)
Copyright © 2022. All rights reserved.