Class QuarkusUpdateCommand
- java.lang.Object
-
- io.quarkus.devtools.project.update.rewrite.QuarkusUpdateCommand
-
public class QuarkusUpdateCommand extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringADDITIONAL_SOURCE_FILESstatic Set<String>ADDITIONAL_SOURCE_FILES_SETstatic StringMAVEN_REWRITE_PLUGIN_ARTIFACTstatic StringMAVEN_REWRITE_PLUGIN_GROUP
-
Constructor Summary
Constructors Constructor Description QuarkusUpdateCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringgoal(boolean dryRun)static voidhandle(io.quarkus.devtools.messagewriter.MessageWriter log, BuildTool buildTool, Path baseDir, String rewritePluginVersion, String recipesGAV, Path recipe, boolean dryRun)static booleanisWindows()static PathsearchPath(String cmd)Searches the locations defined by PATH for the given executablestatic PathsearchPath(String cmd, String paths)Searches the locations defined by `paths` for the given executable
-
-
-
Field Detail
-
MAVEN_REWRITE_PLUGIN_GROUP
public static final String MAVEN_REWRITE_PLUGIN_GROUP
- See Also:
- Constant Field Values
-
MAVEN_REWRITE_PLUGIN_ARTIFACT
public static final String MAVEN_REWRITE_PLUGIN_ARTIFACT
- See Also:
- Constant Field Values
-
ADDITIONAL_SOURCE_FILES
public static String ADDITIONAL_SOURCE_FILES
-
-
Method Detail
-
goal
public static String goal(boolean dryRun)
-
handle
public static void handle(io.quarkus.devtools.messagewriter.MessageWriter log, BuildTool buildTool, Path baseDir, String rewritePluginVersion, String recipesGAV, Path recipe, boolean dryRun)
-
searchPath
public static Path searchPath(String cmd)
Searches the locations defined by PATH for the given executable- Parameters:
cmd- The name of the executable to look for- Returns:
- A Path to the executable, if found, null otherwise
-
searchPath
public static Path searchPath(String cmd, String paths)
Searches the locations defined by `paths` for the given executable- Parameters:
cmd- The name of the executable to look forpaths- A string containing the paths to search- Returns:
- A Path to the executable, if found, null otherwise
-
isWindows
public static boolean isWindows()
-
-