return this;
}
private Manifest createManifest(List<ArtifactData> files) throws Exception {
Manifest manifest = new Manifest();
Attributes main = manifest.getMainAttributes();
main.putValue("Manifest-Version", "1.0");
main.putValue("DeploymentPackage-SymbolicName", m_symbolicName);
main.putValue("DeploymentPackage-Version", m_version);
if ((m_fixPackageVersion != null) && !"".equals(m_fixPackageVersion)) {
main.putValue("DeploymentPackage-FixPack", m_fixPackageVersion);
}
Map<String, Attributes> entries = manifest.getEntries();
Iterator<ArtifactData> filesIter = files.iterator();
while (filesIter.hasNext()) {
ArtifactData file = filesIter.next();
Attributes a = new Attributes();
a.putValue("Name", file.getFilename());
if (file.isBundle()) {
a.putValue("Bundle-SymbolicName", file.getSymbolicName());
a.putValue("Bundle-Version", file.getVersion());
if (file.isCustomizer()) {
a.putValue("DeploymentPackage-Customizer", "true");
a.putValue("Deployment-ProvidesResourceProcessor", file.getProcessorPid());
}
}
else {
a.putValue("Resource-Processor", file.getProcessorPid());
}
if (file.isMissing()) {
a.putValue("DeploymentPackage-Missing", "true");
}
entries.put(file.getFilename(), a);
}