/** * sets the version of this plugin<br> * Uses "class" to find correct jar in classpath, and extracts manifest information * * @param clazz * the class, who is implementing this method */ public void setVersion(Class<?> clazz) { this.version = JarUtils.getManifestEntry(clazz, Attributes.Name.IMPLEMENTATION_VERSION.toString()); }
String s = ""; try { Manifest mf = getManifest(c); if (mf != null) { Attributes attr = mf.getMainAttributes(); s = getVersionFromProject(c);