Class UpdateVersionTextMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.jetty.toolchain.version.AbstractVersionMojo
org.eclipse.jetty.toolchain.version.UpdateVersionTextMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
Update the active version entry in the VERSION.txt file from information present in the git logs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Allow the plugin to attach the generated VERSION.txt file to the projectprivate boolean
Allow the plugin to replace the input VERSION.txt fileprivate boolean
Allow the plugin to issue a 'git fetch --tags' to update the local tags from.private boolean
Allow the existing issues to be sorted alphabetically.private boolean
Allow the plugin to update the release date for an issue (if none is provided)private String
The maven project version.private String
The version key to use when looking up a git tag ref.private String
The version key to use in the VERSION.txt file.private File
The generated VERSION.txt file.Fields inherited from class org.eclipse.jetty.toolchain.version.AbstractVersionMojo
basedir, classifier, project, projectHelper, type, versionTextInputFile
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
private void
generateVersion
(VersionText versionText) Methods inherited from class org.eclipse.jetty.toolchain.version.AbstractVersionMojo
ensureDirectoryExists, hasVersionTextFile
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
version
The maven project version. -
versionTextKey
The version key to use in the VERSION.txt file. -
versionTagKey
The version key to use when looking up a git tag ref. -
sortExisting
private boolean sortExistingAllow the existing issues to be sorted alphabetically. -
refreshTags
private boolean refreshTagsAllow the plugin to issue a 'git fetch --tags' to update the local tags from. -
updateDate
private boolean updateDateAllow the plugin to update the release date for an issue (if none is provided) -
copyGenerated
private boolean copyGeneratedAllow the plugin to replace the input VERSION.txt file -
attachArtifact
private boolean attachArtifactAllow the plugin to attach the generated VERSION.txt file to the project -
versionTextOuputFile
The generated VERSION.txt file.
-
-
Constructor Details
-
UpdateVersionTextMojo
public UpdateVersionTextMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
generateVersion
private void generateVersion(VersionText versionText) throws org.apache.maven.plugin.MojoFailureException, IOException - Throws:
org.apache.maven.plugin.MojoFailureException
IOException
-