| Package | Description |
|---|---|
| io.openliberty.tools.common.plugins.util |
| Modifier and Type | Method and Description |
|---|---|
abstract File |
InstallFeatureUtil.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.
|
static String |
InstallFeatureUtil.extractSymbolicName(File jar)
Extracts the bundle symbolic name from the jar manifest.
|
protected static List<String> |
DevUtil.getCleanedLines(List<String> dockerfileLines)
Trim all lines and get them without comments or empty lines after the first FROM command
(so that directives at the beginning of the file are preserved)
|
protected static List<String> |
DevUtil.getCombinedLines(List<String> dockerfileLines,
char escape)
Combine multi-line commands into single lines.
|
protected static char |
DevUtil.getEscapeCharacter(List<String> dockerfileLines)
Get escape character from the escape directive at the top of the Dockerfile.
|
static String |
InstallFeatureUtil.getNextProductVersion(String version)
Gets the next product version number.
|
static Set<String> |
InstallFeatureUtil.getOpenLibertyFeatureSet(Set<File> jsons)
Gets the set of all Open Liberty features by scanning the product JSONs.
|
String |
InstallFeatureUtil.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).
|
void |
InstallFeatureUtil.installFeatures(boolean isAcceptLicense,
List<String> featuresToInstall)
Resolve, download, and install features from a Maven repository.
|
abstract void |
DevUtil.libertyCreate() |
abstract void |
DevUtil.libertyDeploy() |
abstract void |
DevUtil.libertyInstallFeature()
Install features in regular dev mode.
|
static List<InstallFeatureUtil.ProductProperties> |
InstallFeatureUtil.loadProperties(File installDir) |
protected int |
DevUtil.parseHostName(String webAppMessage) |
protected void |
DevUtil.parseHttpsPort(List<String> messages) |
protected File |
DevUtil.prepareTempDockerfile(File dockerfile) |
protected void |
DevUtil.processCopyLines(List<String> dockerfileLines,
String buildContext) |
static String |
InstallFeatureUtil.productInfo(File installDirectory,
String action)
Runs the productInfo command and returns the output
Made public static for tests to use in LMP/LGP
|
protected List<String> |
DevUtil.readDockerfile(File dockerfile) |
abstract boolean |
DevUtil.recompileBuildFile(File buildFile,
List<String> artifactPaths,
ThreadPoolExecutor executor)
Recompile the build file
|
protected boolean |
DevUtil.recompileJava(Collection<File> javaFilesChanged,
List<String> artifactPaths,
ThreadPoolExecutor executor,
boolean tests,
File outputDirectory,
File testOutputDirectory)
Recompile source files
|
protected boolean |
DevUtil.recompileJavaSource(Collection<File> javaFilesChanged,
List<String> artifactPaths,
ThreadPoolExecutor executor,
File outputDirectory,
File testOutputDirectory)
Recompile Java source files and run tests after application update
|
protected boolean |
DevUtil.recompileJavaTest(Collection<File> javaFilesChanged,
List<String> artifactPaths,
ThreadPoolExecutor executor,
File outputDirectory,
File testOutputDirectory)
Recompile test source files and run tests immediately
|
abstract void |
DevUtil.redeployApp()
Redeploy the application
|
protected void |
DevUtil.removeWarFileLines(List<String> dockerfileLines) |
void |
DevUtil.restartServer() |
void |
DevUtil.restartServer(boolean buildContainer)
Stop the server, set up Liberty and restart it.
|
abstract void |
DevUtil.runIntegrationTests()
Run the integration tests
|
abstract void |
DevUtil.runUnitTests()
Run the unit tests
|
void |
DevUtil.startServer() |
void |
DevUtil.startServer(boolean buildContainer,
boolean pullParentImage)
Start the server and keep it running in a background thread.
|
| Constructor and Description |
|---|
InstallFeatureUtil(File installDirectory,
String from,
String to,
Set<String> pluginListedEsas,
List<InstallFeatureUtil.ProductProperties> propertiesList,
String openLibertyVersion,
String containerName)
Initialize the utility and check for unsupported scenarios.
|
Copyright © 2021 the original author or authors.