Class SnippetBaseMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.azure.tools.codesnippetplugin.SnippetBaseMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
UpdateCodesnippet,VerifyCodesnippet
public abstract class SnippetBaseMojo
extends org.apache.maven.plugin.AbstractMojo
Base Mojo for the codesnippet plugin.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault glob to match codesnippet files.static final StringDefault glob to match README files.static final StringDefault glob to match source files.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteCodesnippet(ExecutionMode executionMode) Runs codesnippets for the specifiedExecutionMode.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
DEFAULT_CODESNIPPET_GLOB
Default glob to match codesnippet files.- See Also:
-
DEFAULT_SOURCE_GLOB
Default glob to match source files.- See Also:
-
DEFAULT_README_GLOB
Default glob to match README files.- See Also:
-
-
Constructor Details
-
SnippetBaseMojo
public SnippetBaseMojo()
-
-
Method Details
-
executeCodesnippet
protected void executeCodesnippet(ExecutionMode executionMode) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException Runs codesnippets for the specifiedExecutionMode.- Parameters:
executionMode- The codesnippet execution mode.- Throws:
org.apache.maven.plugin.MojoExecutionException- If codesnippets fails to run successfully.org.apache.maven.plugin.MojoFailureException- If non-codesnippet exception occurs during processing.
-