{
throw SigilCore.newCoreException("Expected bundle symbolic name to be set",
null);
}
ISigilProjectModel sigil = SigilCore.create(project);
IClasspathEntry cp = JavaCore.newSourceEntry(src);
String encodedClasspath = sigil.getJavaModel().encodeClasspathEntry(cp);
ISigilBundle bundle = sigil.getBundle();
bundle.addClasspathEntry(encodedClasspath);
// fine set up other values
bundle.getBundleInfo().setSymbolicName(bsn);
if (description != null)
{
bundle.getBundleInfo().setDescription(description);
}
if (projectVersion != null)
{
bundle.setVersion(projectVersion);
}
if (vendorName != null)
{
bundle.getBundleInfo().setVendor(vendorName);
}
if (bundleName != null)
{
bundle.getBundleInfo().setName(bundleName);
}
sigil.save(monitor);
}