public abstract class PrepareFeatureUtil extends ServerFeatureUtil
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURES_JSON_ARTIFACT_ID |
static String |
INSTALL_MAP_ARTIFACT_ID |
static String |
OPEN_LIBERTY_GROUP_ID |
REPOSITORY_RESOLVER_ARTIFACT_ID, SERVER_CONFIG_DIR, SHARED_APP_DIR, SHARED_CONFIG_DIR, SHARED_RESOURCES_DIR, SHARED_STACKGROUP_DIR, suppressLogs, USR_EXTENSION_DIR, WLP_INSTALL_DIR, WLP_USER_DIR| Constructor and Description |
|---|
PrepareFeatureUtil(File installDirectory,
String openLibertyVersion) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
debug(String msg)
Log debug
|
abstract void |
debug(String msg,
Throwable e)
Log debug
|
abstract void |
debug(Throwable e)
Log debug
|
abstract File |
downloadArtifact(String groupId,
String artifactId,
String type,
String version)
Download the artifact from the specified Maven coordinates, or retrieve it
from the cache if it already exists.
|
abstract void |
error(String msg)
Log error
|
abstract void |
error(String msg,
Throwable e)
Log error
|
File |
generateJson(String targetJsonFile,
Map<File,String> esaFileMap)
Generate JSON at targetJsonFile location for the list of ESAs in esaFiles
under the given groupId
|
String |
getOverrideBundleDescriptor(String groupId,
String artifactId)
Download the override bundle from the repository with the given groupId and
artifactId, corresponding to the latest version in the range between the
current Open Liberty version (inclusive) and the next version (exclusive).
|
abstract void |
info(String msg)
Log info
|
abstract boolean |
isDebugEnabled()
Returns whether debug is enabled by the current logger
|
void |
prepareFeatures(List<String> featureBOMs) |
void |
provideJsonFileDependency(File file)
Provide the file dependency of the generated JSON file for Gradle plugin
|
abstract void |
warn(String msg)
Log warning
|
getServerFeatures, getServerFeatures, getServerFeatures, getServerXmlFeatures, setLowerCaseFeatures, setSuppressLogsexecDockerCmd, readStdOutpublic static final String OPEN_LIBERTY_GROUP_ID
public static final String INSTALL_MAP_ARTIFACT_ID
public static final String FEATURES_JSON_ARTIFACT_ID
public PrepareFeatureUtil(File installDirectory, String openLibertyVersion) throws PluginScenarioException, PluginExecutionException
public void prepareFeatures(List<String> featureBOMs) throws PluginExecutionException
PluginExecutionExceptionpublic File generateJson(String targetJsonFile, Map<File,String> esaFileMap) throws PluginExecutionException
targetJsonFile - The target file location for the resulting JSONesaFileMap - Map of esa Files to their groupIdsPluginExecutionException - Throws an error if unable to generate JSONpublic String getOverrideBundleDescriptor(String groupId, String artifactId) throws PluginExecutionException
groupId - the groupId of the bundle to downloadartifactId - the artifactId of the bundle to downloadPluginExecutionExceptionpublic void provideJsonFileDependency(File file)
file - The Features JSON filePluginExecutionException - If the artifact could not create dependencypublic abstract void debug(String msg)
debug in class ServerFeatureUtilmsg - public abstract void debug(String msg, Throwable e)
debug in class ServerFeatureUtilmsg - e - public abstract void debug(Throwable e)
debug in class ServerFeatureUtile - public abstract void warn(String msg)
warn in class ServerFeatureUtilmsg - public abstract void info(String msg)
info in class ServerFeatureUtilmsg - public abstract void error(String msg)
msg - public abstract void error(String msg, Throwable e)
error in class AbstractContainerSupportUtilmsg - e - public abstract boolean isDebugEnabled()
public abstract File downloadArtifact(String groupId, String artifactId, String type, String version) throws PluginExecutionException
groupId - The group IDartifactId - The artifact IDtype - The type e.g. esaversion - The versionPluginExecutionException - If the artifact could not be downloadedCopyright © 2022 the original author or authors.