mirror of https://github.com/apache/archiva.git
Remove java5 code
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@440740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4cfdac7b3
commit
e0386221ad
|
@ -26,6 +26,7 @@ import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
|
||||||
import org.apache.maven.artifact.repository.metadata.Snapshot;
|
import org.apache.maven.artifact.repository.metadata.Snapshot;
|
||||||
import org.apache.maven.artifact.repository.metadata.Versioning;
|
import org.apache.maven.artifact.repository.metadata.Versioning;
|
||||||
import org.codehaus.plexus.util.FileUtils;
|
import org.codehaus.plexus.util.FileUtils;
|
||||||
|
import org.codehaus.plexus.util.StringUtils;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -213,7 +214,7 @@ public class BadMetadataReportProcessor
|
||||||
|
|
||||||
Snapshot snapshot = metadata.getMetadata().getVersioning().getSnapshot();
|
Snapshot snapshot = metadata.getMetadata().getVersioning().getSnapshot();
|
||||||
|
|
||||||
String version = metadata.getBaseVersion().replace( Artifact.SNAPSHOT_VERSION,
|
String version = StringUtils.replace( metadata.getBaseVersion(), Artifact.SNAPSHOT_VERSION,
|
||||||
snapshot.getTimestamp() + "-" + snapshot.getBuildNumber() );
|
snapshot.getTimestamp() + "-" + snapshot.getBuildNumber() );
|
||||||
Artifact artifact =
|
Artifact artifact =
|
||||||
artifactFactory.createProjectArtifact( metadata.getGroupId(), metadata.getArtifactId(), version );
|
artifactFactory.createProjectArtifact( metadata.getGroupId(), metadata.getArtifactId(), version );
|
||||||
|
|
Loading…
Reference in New Issue