本文整理了Java中org.apache.maven.artifact.repository.metadata.Versioning.setLastUpdated()
方法的一些代码示例,展示了Versioning.setLastUpdated()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Versioning.setLastUpdated()
方法的具体详情如下:
包路径:org.apache.maven.artifact.repository.metadata.Versioning
类名称:Versioning
方法名:setLastUpdated
[英]Set when the metadata was last updated.
[中]设置元数据上次更新的时间。
代码示例来源:origin: apache/maven
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( date ) );
}
代码示例来源:origin: apache/maven
versioning.setLastUpdated( snapshot.getTimestamp().replace( ".", "" ) );
lastUpdated = versioning.getLastUpdated();
代码示例来源:origin: apache/maven
repaired.setLastUpdated( versioning.getLastUpdated() );
repaired.setSnapshot( new Snapshot() );
repaired.getSnapshot().setLocalCopy( true );
代码示例来源:origin: apache/maven
versioning.setLastUpdated( null );
v.setLastUpdated( null );
versioning.setLastUpdated( v.getLastUpdated() );
v.setLastUpdated( versioning.getLastUpdated() );
代码示例来源:origin: apache/maven
versioning.setLastUpdated( interpolatedTrimmed( parser.nextText(), "lastUpdated" ) );
代码示例来源:origin: apache/maven
+ ", lastUpdated = " + lastUpdated + "). Please verify that the clocks of all"
+ " deploying machines are reasonably synchronized." );
versioning.setLastUpdated( now );
changed = true;
代码示例来源:origin: io.tesla.maven/maven-repository-metadata
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( date ) );
}
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
/**
* update versioning's lastUpdated timestamp to now
*
* @param target
*/
public static void updateTimestamp( Versioning target )
{
target.setLastUpdated( TimeUtil.getUTCTimestamp() );
}
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
vs.setLastUpdated( TimeUtil.getUTCTimestamp() );
代码示例来源:origin: org.apache.maven/maven-aether-provider
versioning.setLastUpdated( snapshot.getTimestamp().replace( ".", "" ) );
lastUpdated = versioning.getLastUpdated();
代码示例来源:origin: org.apache.maven/maven-resolver-provider
versioning.setLastUpdated( snapshot.getTimestamp().replace( ".", "" ) );
lastUpdated = versioning.getLastUpdated();
代码示例来源:origin: io.tesla.maven/maven-aether-provider
versioning.setLastUpdated( snapshot.getTimestamp().replace( ".", "" ) );
lastUpdated = versioning.getLastUpdated();
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
vs.setLastUpdated( operand.getTimestamp() );
代码示例来源:origin: org.apache.maven/maven-aether-provider
repaired.setLastUpdated( versioning.getLastUpdated() );
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
vs.setLastUpdated( TimeUtil.getUTCTimestamp() );
代码示例来源:origin: io.tesla.maven/maven-aether-provider
repaired.setLastUpdated( versioning.getLastUpdated() );
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
代码示例来源:origin: com.atlassian.sdk/ap3-aether-maven-provider
repaired.setLastUpdated( versioning.getLastUpdated() );
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
代码示例来源:origin: com.cloudbees/bees-maven-components
repaired.setLastUpdated( versioning.getLastUpdated() );
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
代码示例来源:origin: org.apache.maven/maven-resolver-provider
repaired.setLastUpdated( versioning.getLastUpdated() );
repaired.setSnapshot( new Snapshot() );
repaired.getSnapshot().setLocalCopy( true );
代码示例来源:origin: org.sonatype.nexus.plugins/nexus-repository-maven
versioning.setRelease(maven2Metadata.getBaseVersions().getRelease());
versioning.setVersions(maven2Metadata.getBaseVersions().getVersions());
versioning.setLastUpdated(Constants.METADATA_DOTLESS_TIMESTAMP.print(maven2Metadata.getLastUpdated()));
result.setVersioning(versioning);
versioning.setLastUpdated(Constants.METADATA_DOTLESS_TIMESTAMP.print(maven2Metadata.getLastUpdated()));
result.setVersioning(versioning);
内容来源于网络,如有侵权,请联系作者删除!