- addManifestAttribute(manifest, RepoConstants.SLC_GROUP_ID,
- osgiDistribution.getCategory());
- addManifestAttribute(manifest, Constants.BUNDLE_SYMBOLICNAME,
- osgiDistribution.getName());
- addManifestAttribute(manifest, Constants.BUNDLE_VERSION,
- osgiDistribution.getVersion());
+ addManifestAttribute(manifest, RepoConstants.SLC_GROUP_ID, osgiDistribution.getCategory());
+ addManifestAttribute(manifest, Constants.BUNDLE_SYMBOLICNAME, osgiDistribution.getName());
+ String version = osgiDistribution.getVersion();
+ if (version.endsWith("-SNAPSHOT")) {
+ version = version.substring(0, version.length() - "-SNAPSHOT".length());
+ version = version + ".SNAPSHOT-r" + snapshotTimestamp.format(new Date());
+ }
+ addManifestAttribute(manifest, Constants.BUNDLE_VERSION, version);