Builder builder = new Builder(); builder.setProperty("Bundle-Name", jobName); builder.setProperty("Bundle-SymbolicName", jobName);
void doDot(String args[], int i) throws Exception { File out = getFile("graph.gv"); Builder b = new Builder();
public Builder getSubBuilder() throws Exception { Builder builder = new Builder(this); builder.setBase(getBase()); for (Jar file : getClasspath()) { builder.addClasspath(file); } return builder; }
CachedPom pom = maven.getPom(group, artifact, version, urls2); Builder a = new Builder(); a.setProperty("Private-Package", "*"); Set<Pom> dependencies = pom.getDependencies(Scope.compile, urls2);
public Builder getSubBuilder() throws Exception { Builder builder = new Builder(this); builder.setBase(getBase()); for (Jar file : getClasspath()) { builder.addClasspath(file); } return builder; }
static public Builder setBuilder(Activator activator, IProject project, File mf) throws Exception, IOException, FileNotFoundException { Builder builder = new Builder(); builder.setPedantic(activator.isPedantic() || activator.isDebugging()); // TODO of course we should get the classpath from // inside API ... File p = project.getLocation().toFile(); // TODO for now we ignore the workspace and use the // project parent directory 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); return builder; }
static public Builder setBuilder(Activator activator, IProject project, File mf) throws Exception, IOException, FileNotFoundException { Builder builder = new Builder(); builder.setPedantic(activator.isPedantic() || activator.isDebugging()); // TODO of course we should get the classpath from // inside API ... File p = project.getLocation().toFile(); // TODO for now we ignore the workspace and use the // project parent directory 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); return builder; }
Builder builder = new Builder(); try { builder.setPedantic(isPedantic());
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; }
Builder builder = new Builder(); try { builder.setPedantic(isPedantic());
if (manifest == null) { trace("Wrapping with all defaults"); Builder b = new Builder(this); b.addClasspath(jar); b.setProperty("Bnd-Message", "Wrapped from " + f.getAbsolutePath() 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, "*");
Builder builder = new Builder();
Builder builder = new Builder();
public static void createBundle(IndexingConfig config){ Builder builder = new Builder(); builder.setProperty("Install-Path",
public static void createBundle(IndexingConfig config){ Builder builder = new Builder(); builder.setProperty("Install-Path",