@Mojo(name="changes-check", threadSafe=true) public class ChangesCheckMojo extends AbstractChangesMojo
basedir, mavenSession, runOnlyAtExecutionRoot
Constructor and Description |
---|
ChangesCheckMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Check that the latest release contains a valid release date.
|
protected static boolean |
isValidDate(String string,
String pattern)
Use the pattern to try to parse a Date from the given string.
|
protected static boolean |
isValidDate(String string,
String pattern,
String locale)
Use the pattern to try to parse a Date from the given string using the given Locale.
|
isThisTheExecutionRoot
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException
MojoExecutionException
protected static boolean isValidDate(String string, String pattern)
string
- A date as textpattern
- A pattern that can be used by SimpleDateFormat
true
if the string can be parsed as a date using the pattern, otherwise false
protected static boolean isValidDate(String string, String pattern, String locale)
string
- A date as textpattern
- A pattern that can be used by SimpleDateFormat
locale
- A locale that can be used by SimpleDateFormat
true
if the string can be parsed as a date using the pattern, otherwise false
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.