String getBundleVersion(Artifact a, boolean pde) { String version = mavenOsgi.getVersion(a); String suffix = ".SNAPSHOT"; if (version.endsWith(suffix)) { version = version.substring(0, version.length() - suffix.length()); if (pde) { version = version + ".qualifier"; } else { version = version + "-" + df.format(new Date()); } } return version; }
private String getOsgiVersion() { final Maven2OsgiConverter converter = new DefaultMaven2OsgiConverter(); return converter.getVersion(getProject().getVersion()); }