private static boolean hasDocTagsSupport() { String testngJarPath = PathUtil.getJarPathForClass(Test.class); String version = JarUtil.getJarAttribute(new File(testngJarPath), Attributes.Name.IMPLEMENTATION_VERSION); return version != null && StringUtil.compareVersionNumbers(version, "5.12") <= 0; }
@Nullable private static String getVersionByJarManifest(@NotNull VirtualFile file) { return JarUtil.getJarAttribute( VfsUtilCore.virtualToIoFile(file), Attributes.Name.IMPLEMENTATION_VERSION); }