/** * Create a report of the settings * @throws Exception */ public void report(Map<String,Object> table) throws Exception { build(); super.report(table); table.put("Do Not Copy", getDoNotCopy()); table.put("Git head", _githead( new String[]{"githead"})); }
/** * Create a report of the settings * @throws Exception */ public void report(Map<String,Object> table) throws Exception { build(); super.report(table); table.put("Do Not Copy", getDoNotCopy()); table.put("Git head", _githead( new String[]{"githead"})); }
/** * Create a report of the settings * * @throws Exception */ @Override public void report(Map<String, Object> table) throws Exception { build(); super.report(table); table.put("Do Not Copy", getDoNotCopy()); table.put("Git head", _githead(new String[] { "githead" })); }
/** * Create a report of the settings * * @throws Exception */ @Override public void report(Map<String, Object> table) throws Exception { build(); super.report(table); table.put("Do Not Copy", getDoNotCopy()); table.put("Git head", _githead(new String[] { "githead" })); }
protected Builder buildOSGiBundle( MavenProject currentProject, DependencyNode dependencyGraph, Map<String, String> originalInstructions, Properties properties, Jar[] classpath ) throws Exception { Builder builder = getOSGiBuilder( currentProject, originalInstructions, properties, classpath ); addMavenInstructions( currentProject, dependencyGraph, builder ); builder.build(); mergeMavenManifest(currentProject, dependencyGraph, builder); return builder; }
File file = project.getOutputFile(bsn, version.toString()); if (!file.exists()) { try (Builder builder = project.getSubBuilder(bsn); Jar jar = builder.build()) { if (jar == null) { project.getInfo(builder);
if (!file.exists()) { Builder builder = project.getSubBuilder(bsn); Jar jar = builder.build(); if (jar == null) { project.getInfo(builder);
File file = project.getOutputFile(bsn); if (!file.exists()) { Jar jar = builder.build(); if (jar == null) { project.getInfo(builder);
/** * Do a baseline for this project * * @throws Exception */ public void baseline() throws Exception { try (ProjectBuilder pb = getBuilder(null)) { for (Builder b : pb.getSubBuilders()) { @SuppressWarnings("resource") Jar build = b.build(); getInfo(b); } getInfo(pb); } }
/** * Do a baseline for this project * * @throws Exception */ public void baseline() throws Exception { try (ProjectBuilder pb = getBuilder(null)) { for (Builder b : pb.getSubBuilders()) { @SuppressWarnings("resource") Jar build = b.build(); getInfo(b); } getInfo(pb); } }
public Jar getValidJar(Jar jar, String id) throws Exception { Manifest manifest = jar.getManifest(); if (manifest == null) { trace("Wrapping with all defaults"); Builder b = new Builder(this); b.addClasspath(jar); b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest"); b.setProperty(Constants.EXPORT_PACKAGE, "*"); b.setProperty(Constants.IMPORT_PACKAGE, "*;resolution:=optional"); jar = b.build(); } else if (manifest.getMainAttributes().getValue(Constants.BUNDLE_MANIFESTVERSION) == null) { trace("Not a release 4 bundle, wrapping with manifest as source"); Builder b = new Builder(this); b.addClasspath(jar); b.setProperty(Constants.PRIVATE_PACKAGE, "*"); b.mergeManifest(manifest); String imprts = manifest.getMainAttributes().getValue(Constants.IMPORT_PACKAGE); if (imprts == null) imprts = ""; else imprts += ","; imprts += "*;resolution=optional"; b.setProperty(Constants.IMPORT_PACKAGE, imprts); b.setProperty("Bnd-Message", "Wrapped from " + id + "because had incomplete manifest"); jar = b.build(); } return jar; }
bchild.setProperties(bndfile, builder.getBase()); Jar jar = bchild.build(); Jar dot = builder.getJar();
bchild.setProperties(bndfile, builder.getBase()); Jar jar = bchild.build(); Jar dot = builder.getTarget();
bchild.setProperties(bndfile, builder.getBase()); Jar jar = bchild.build(); Jar dot = builder.getTarget();
bchild.setProperties(bndfile, builder.getBase()); Jar jar = bchild.build(); Jar dot = builder.getJar();
public Jar getValidJar(Jar jar, String id) throws Exception { Manifest manifest = jar.getManifest(); if (manifest == null) { trace("Wrapping with all defaults"); Builder b = new Builder(this); this.addClose(b); b.addClasspath(jar); b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest"); b.setProperty(Constants.EXPORT_PACKAGE, "*"); b.setProperty(Constants.IMPORT_PACKAGE, "*;resolution:=optional"); jar = b.build(); } else if (manifest.getMainAttributes().getValue(Constants.BUNDLE_MANIFESTVERSION) == null) { trace("Not a release 4 bundle, wrapping with manifest as source"); Builder b = new Builder(this); this.addClose(b); b.addClasspath(jar); b.setProperty(Constants.PRIVATE_PACKAGE, "*"); b.mergeManifest(manifest); String imprts = manifest.getMainAttributes().getValue(Constants.IMPORT_PACKAGE); if (imprts == null) imprts = ""; else imprts += ","; imprts += "*;resolution=optional"; b.setProperty(Constants.IMPORT_PACKAGE, imprts); b.setProperty("Bnd-Message", "Wrapped from " + id + "because had incomplete manifest"); jar = b.build(); } return jar; }
public Jar getValidJar(Jar jar, String id) throws Exception { Manifest manifest = jar.getManifest(); if (manifest == null) { trace("Wrapping with all defaults"); Builder b = new Builder(this); this.addClose(b); b.addClasspath(jar); b.setProperty("Bnd-Message", "Wrapped from " + id + "because lacked manifest"); b.setProperty(Constants.EXPORT_PACKAGE, "*"); b.setProperty(Constants.IMPORT_PACKAGE, "*;resolution:=optional"); jar = b.build(); } else if (manifest.getMainAttributes().getValue(Constants.BUNDLE_MANIFESTVERSION) == null) { trace("Not a release 4 bundle, wrapping with manifest as source"); Builder b = new Builder(this); this.addClose(b); b.addClasspath(jar); b.setProperty(Constants.PRIVATE_PACKAGE, "*"); b.mergeManifest(manifest); String imprts = manifest.getMainAttributes().getValue(Constants.IMPORT_PACKAGE); if (imprts == null) imprts = ""; else imprts += ","; imprts += "*;resolution=optional"; b.setProperty(Constants.IMPORT_PACKAGE, imprts); b.setProperty("Bnd-Message", "Wrapped from " + id + "because had incomplete manifest"); jar = b.build(); } return jar; }
public void build(String dest, boolean force, String path) throws IOException, Exception { Builder b = new Builder(); try { File f = getFile(path); if (!f.isFile()) { error("No such file %s", f); return; } b.setTrace(isTrace()); b.setPedantic(isPedantic()); b.setProperties(f); List<Builder> subs = b.getSubBuilders(); for (Builder bb : subs) { trace("building %s", bb.getPropertiesFile()); bb.build(); File out = bb.getOutputFile(dest); getInfo(bb, bb.getBsn() + ": "); if (isOk()) { bb.save(out, force); } getInfo(bb, bb.getBsn() + ": "); // pickup any save errors if (!isOk()) { out.delete(); } } } finally { b.close(); } }