From: Maria Odea B. Ching Date: Mon, 27 Aug 2007 11:58:14 +0000 (+0000) Subject: Added TIMESTAMP_PATTERN variable to fix build error in archiva-repository-layer. X-Git-Tag: archiva-1.0-beta-2~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a19fe2147a9f34e8599f44b8b1a32dfeffc2b832;p=archiva.git Added TIMESTAMP_PATTERN variable to fix build error in archiva-repository-layer. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@570083 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/VersionUtil.java b/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/VersionUtil.java index 08bc67b05..07aadf674 100644 --- a/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/VersionUtil.java +++ b/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/VersionUtil.java @@ -63,6 +63,8 @@ public class VersionUtil public static final Pattern UNIQUE_SNAPSHOT_PATTERN = Pattern.compile( "^(.*)-([0-9]{8}\\.[0-9]{6})-([0-9]+)$" ); + public static final Pattern TIMESTAMP_PATTERN = Pattern.compile( "^([0-9]{8})\\.([0-9]{6})$" ); + /** *

* Tests if the unknown string contains elements that identify it as a version string (or not).