@SuppressWarnings("unchecked")
Hashtable<String, String> projectProperties = getProject().getProperties();
Properties antProperties = new Properties();
antProperties.putAll(projectProperties);
IBldProject project;
try
{
project = BldFactory.getProject(getSigilFileURI(), antProperties);
}
catch (IOException e)
{
throw new BuildException("failed to get project file: " + e);
}
Properties env = new Properties();
for (String key : projectProperties.keySet())
{
if (key.matches("^[a-z].*"))
{ // avoid props starting with Uppercase - bnd adds them to manifest
env.setProperty(key, projectProperties.get(key));
}
}
BundleBuilder bb = new BundleBuilder(project, classpath, destPattern, env);
boolean anyModified = false;
for (IBldBundle bundle : project.getBundles())
{
String id = bundle.getId();
log("creating bundle: " + id);
int nWarn = 0;
int nErr = 0;