public class HelpfulSuggestions extends Object
| Constructor and Description |
|---|
HelpfulSuggestions(String messagePrefix,
String clearCacheCommand,
String toImageConfiguration,
String toImageFlag,
String buildConfigurationFilename)
Creates a new
HelpfulSuggestions with frontend-specific texts. |
public HelpfulSuggestions(String messagePrefix, String clearCacheCommand, String toImageConfiguration, String toImageFlag, String buildConfigurationFilename)
HelpfulSuggestions with frontend-specific texts.messagePrefix - the initial message textclearCacheCommand - the command for clearing the cachetoImageConfiguration - the configuration defining the target imagetoImageFlag - the commandline flag used to set the target imagebuildConfigurationFilename - the filename of the build configurationpublic static String forToNotConfigured(String messagePrefix, String parameter, String buildConfigFilename, String command)
messagePrefix - the initial message textparameter - the parameter name (e.g. 'to.image' or <to><image>)buildConfigFilename - the name of the build config (build.gradle or pom.xml)command - an example command for passing the parameter via commandlinepublic static String forMainClassNotFound(String messagePrefix, String pluginName)
public static String forIncompatibleBaseImageJavaVesionForGradle(int baseImageMajorJavaVersion, int projectMajorJavaVersion)
public static String forIncompatibleBaseImageJavaVesionForMaven(int baseImageMajorJavaVersion, int projectMajorJavaVersion)
public static String suggest(String messagePrefix, String suggestion)
messagePrefix - the initial message textsuggestion - a suggested fix for the problem described by messagePrefixpublic String forHttpHostConnect()
public String forUnknownHost()
public String forCacheNeedsClean()
public String forCredentialsNotSent()
public String forInsecureRegistry()
public String none()
public String suggest(String suggestion)
suggestion - a suggested fix for the problem described by messagePrefixCopyright © 2019. All rights reserved.