tmp = model.getBuildPath();
if (tmp != null) {
buildPath.addAll(tmp);
}
buildPath.add(new VersionedClause("osgi.core", new Attrs()));
buildPath.add(new VersionedClause("osgi.cmpn", new Attrs()));
buildPath.add(new VersionedClause("${build}/plugins/org.apache.felix.dependencymanager.annotation-3.1.1-SNAPSHOT.jar;version=file", new Attrs()));
buildPath.add(new VersionedClause("${junit}", new Attrs()));
model.setBuildPath(buildPath);
List<VersionedClause> runPath = new ArrayList<VersionedClause>();
List<Requirement> requires = new ArrayList<Requirement>();
tmp = model.getRunBundles();
if (tmp != null) {
runPath.addAll(tmp);
}
addRunBundle("osgi.cmpn", runPath, requires, true);
addRunBundle("org.apache.felix.dependencymanager", runPath, requires, true);
addRunBundle("org.apache.felix.dependencymanager.runtime", runPath, requires, false);
addRunBundle("org.apache.felix.dependencymanager.shell", runPath, requires, false);
addRunBundle("org.apache.felix.gogo.shell", runPath, requires, false);
addRunBundle("org.apache.felix.gogo.command", runPath, requires, false);
addRunBundle("org.apache.felix.gogo.runtime", runPath, requires, true);
addRunBundle("org.apache.felix.log", runPath, requires, false);
model.setRunRequires(requires);
model.setRunBundles(runPath);
model.setRunFw("org.apache.felix.framework;version='[4.0.3,4.0.3]'");
model.setEE(EE.JavaSE_1_6);
model.setPrivatePackages(Arrays.asList(new String[] {
projectName
}));
List<HeaderClause> plugins = new ArrayList<HeaderClause>();
plugins.add(new HeaderClause("org.apache.felix.dm.annotation.plugin.bnd.AnnotationPlugin;path:=../cnf/plugins/org.apache.felix.dependencymanager.annotation-3.1.1-snapshot.jar", new Attrs()));
model.setPlugins(plugins);
}