builder.setClasspath(classpath); builder.setSourcepath(sourcepath);
builder.setClasspath(classpath); builder.setSourcepath(sourcepath);
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; }
projectProperties.putAll(builder.getProperties()); builder.setProperties(projectProperties); builder.setClasspath(toFiles(classpath, "classpath")); builder.setSourcepath(toFiles(sourcepath, "sourcepath")); Jar jars[] = builder.builds();
builder.setClasspath(toFiles(classpath, "classpath")); builder.setSourcepath(toFiles(sourcepath, "sourcepath")); Jar jars[] = builder.builds();