@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.
|
isThisTheExecutionRootgetLog, getPluginContext, setLog, setPluginContextpublic void execute()
throws MojoExecutionException
MojoExecutionExceptionprotected static boolean isValidDate(String string, String pattern)
string - A date as textpattern - A pattern that can be used by SimpleDateFormattrue if the string can be parsed as a date using the pattern, otherwise falseprotected static boolean isValidDate(String string, String pattern, String locale)
string - A date as textpattern - A pattern that can be used by SimpleDateFormatlocale - A locale that can be used by SimpleDateFormattrue if the string can be parsed as a date using the pattern, otherwise falseCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.