{ // 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;
String msg = "";
try
{
boolean modified = (bb.createBundle(bundle, force,
new BundleBuilder.Log()
{
public void warn(String msg)
{
log(msg, Project.MSG_WARN);
}
public void verbose(String msg)
{
log(msg, Project.MSG_VERBOSE);
}
}));
nWarn = bb.warnings().size();
if (modified)
{
anyModified = true;
}
else
{
msg = " (not modified)";
}
}
catch (Exception e)
{
List<String> errors = bb.errors();
if (errors != null)
{
nErr = errors.size();
for (String err : errors)
{