From de2270527252b2a98b5a1da4ddea4618d690e5f6 Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Wed, 17 Dec 2014 19:15:45 +0000 Subject: [PATCH] HCOLL-184 removed this as it was failing on teamcity - " if (!absolutePath.endsWith("Chronicle-Map")) return null; --- src/main/java/net/openhft/chronicle/map/BuildVersion.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/map/BuildVersion.java b/src/main/java/net/openhft/chronicle/map/BuildVersion.java index ae31b8b01..cf75beb8b 100644 --- a/src/main/java/net/openhft/chronicle/map/BuildVersion.java +++ b/src/main/java/net/openhft/chronicle/map/BuildVersion.java @@ -46,7 +46,7 @@ class BuildVersion { } /** - * This should be used by everyone that has install chronicle map + * This should be used by everyone that has install chronicle map as a JAR * * @return gets the version out of the manifest, or null if it can not be read */ @@ -56,7 +56,7 @@ class BuildVersion { /** - * reads the pom file to get this version, only used for development or within the ide. + * reads the pom file to get this version, only to be used for development or within the IDE. * * @return gets the version from the pom.xml */ @@ -67,9 +67,6 @@ class BuildVersion { .getParentFile().getParentFile().getParentFile().getParentFile().getParentFile() .getParentFile().getParentFile().getAbsolutePath(); - if (!absolutePath.endsWith("Chronicle-Map")) - return null; - final File file = new File(absolutePath + "/pom.xml"); try (Reader reader = new FileReader(file)) {