mirror of https://github.com/apache/maven.git
merge r499763 from branch - add methods to repository metadata class
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499790 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8831e55e78
commit
e5644518bd
|
@ -225,11 +225,16 @@
|
|||
<version>1.0.0</version>
|
||||
<code>
|
||||
public void updateTimestamp()
|
||||
{
|
||||
setLastUpdatedTimestamp( new java.util.Date() );
|
||||
}
|
||||
|
||||
public void setLastUpdatedTimestamp( java.util.Date date )
|
||||
{
|
||||
java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" );
|
||||
java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" );
|
||||
fmt.setTimeZone( timezone );
|
||||
setLastUpdated( fmt.format( new java.util.Date() ) );
|
||||
setLastUpdated( fmt.format( date ) );
|
||||
}
|
||||
</code>
|
||||
</codeSegment>
|
||||
|
|
Loading…
Reference in New Issue