if (symbolicName == null || symbolicName.length() == 0) {
throw new IOException("Missing Symbolic Name in Manifest !");
}
String version = manifest.getMainAttributes().getValue("Bundle-Version");
Version v = Version.parseVersion(version);
if (v.getQualifier().indexOf("SNAPSHOT") >= 0) {
String tStamp;
synchronized (DATE_FORMAT) {
tStamp = DATE_FORMAT.format(new Date());
}
version = v.getMajor() + "." + v.getMinor() + "." + v.getMicro()
+ "." + v.getQualifier().replaceAll("SNAPSHOT", tStamp);
manifest.getMainAttributes().putValue("Bundle-Version", version);
}
File bundle = new File(this.repoLocation, symbolicName + "-" + v + ".jar");
OutputStream out = null;