// TODO for now we ignore the workspace and use the
// project parent directory
Builder builder = new Builder();
EclipseClasspath ecp = new EclipseClasspath(builder, p.getParentFile(), p);
builder.setClasspath((File[])ecp.getClasspath().toArray(new File[0]));
builder.setSourcepath((File[])ecp.getSourcepath().toArray(new File[0]));
builder.setProperties(mf);
String path = builder.getProperty("-output");
if ( path == null ) {
path = mf.getAbsolutePath().replaceAll("\\.bnd$",".jar");
}