Package pl.project13.maven.git
Class GitCommitIdMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- pl.project13.maven.git.GitCommitIdMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="revision", defaultPhase=INITIALIZE, threadSafe=true) public class GitCommitIdMojo extends org.apache.maven.plugin.AbstractMojoPuts git build-time information into property files or maven's properties.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description GitCommitIdMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected java.util.Map<java.lang.String,java.lang.String>getCustomSystemEnv()This method is used to mock the system environment in testing.
-
-
-
Method Detail
-
getCustomSystemEnv
protected java.util.Map<java.lang.String,java.lang.String> getCustomSystemEnv()
This method is used to mock the system environment in testing.- Returns:
- unmodifiable string map view of the current system environment
System.getenv(java.lang.String).
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-