Package io.helidon.build.dev.maven
Class MavenGoal
- java.lang.Object
-
- io.helidon.build.dev.maven.MavenGoal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MavenGoalcreate(String pluginGroupId, String pluginArtifactId, String goalName, String executionId, MavenEnvironment environment)Returns a new instance.voidexecute()Executes the goal.StringexecutionId()Returns the plugin key.voidincrementalBuild(BuildRoot.Changes changes, Consumer<String> stdOut, Consumer<String> stdErr)Execute the build step for the given changed files only.Stringname()Returns the plugin goal name.StringpluginKey()Returns the plugin key.StringtoString()
-
-
-
Method Detail
-
create
public static MavenGoal create(String pluginGroupId, String pluginArtifactId, String goalName, String executionId, MavenEnvironment environment) throws Exception
Returns a new instance.- Parameters:
pluginGroupId- The plugin group id.pluginArtifactId- The plugin artifact id.goalName- The plugin goal to execute.executionId- The execution id.environment- The plugin execution environment.- Returns:
- The goal.
- Throws:
Exception- if an error occurs.
-
incrementalBuild
public void incrementalBuild(BuildRoot.Changes changes, Consumer<String> stdOut, Consumer<String> stdErr) throws Exception
Description copied from interface:BuildStepExecute the build step for the given changed files only. Any component that does not match this predicate is ignored.- Specified by:
incrementalBuildin interfaceBuildStep- Parameters:
changes- The changes.stdOut- A consumer for stdout.stdErr- A consumer for stderr.- Throws:
Exception- on error.
-
execute
public void execute() throws ExceptionExecutes the goal.- Throws:
Exception- if an error occurs.
-
name
public String name()
Returns the plugin goal name.
-
pluginKey
public String pluginKey()
Returns the plugin key.- Returns:
- The key.
-
executionId
public String executionId()
Returns the plugin key.- Returns:
- The key.
-
-