@Mojo(name="changes-check",
threadSafe=true)
public class ChangesCheckMojo
extends org.apache.maven.plugin.AbstractMojo
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.
|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.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
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.