Search in sources :

Example 6 with EclipseClasspath

use of aQute.bnd.osgi.eclipse.EclipseClasspath in project bnd by bndtools.

the class Project method doEclipseClasspath.

private void doEclipseClasspath() throws Exception {
    EclipseClasspath eclipse = new EclipseClasspath(this, getWorkspace().getBase(), getBase());
    eclipse.setRecurse(false);
    // to tell ant that the project names
    for (File dependent : eclipse.getDependents()) {
        Project required = workspace.getProject(dependent.getName());
        dependson.add(required);
    }
    for (File f : eclipse.getClasspath()) {
        buildpath.add(new Container(f, null));
    }
    for (File f : eclipse.getBootclasspath()) {
        bootclasspath.add(new Container(f, null));
    }
    for (File f : eclipse.getSourcepath()) {
        sourcepath.put(f, new Attrs());
    }
    allsourcepath.addAll(eclipse.getAllSources());
    output = eclipse.getOutput();
}
Also used : EclipseClasspath(aQute.bnd.osgi.eclipse.EclipseClasspath) Attrs(aQute.bnd.header.Attrs) File(java.io.File)

Aggregations

EclipseClasspath (aQute.bnd.osgi.eclipse.EclipseClasspath)6 File (java.io.File)6 Builder (aQute.bnd.osgi.Builder)2 Jar (aQute.bnd.osgi.Jar)2 Description (aQute.lib.getopt.Description)2 ArrayList (java.util.ArrayList)2 BuildException (org.apache.tools.ant.BuildException)2 Attrs (aQute.bnd.header.Attrs)1 PomFromManifest (aQute.bnd.maven.PomFromManifest)1 FileResource (aQute.bnd.osgi.FileResource)1 Processor (aQute.bnd.osgi.Processor)1 Resource (aQute.bnd.osgi.Resource)1 UTF8Properties (aQute.lib.utf8properties.UTF8Properties)1 OutputStream (java.io.OutputStream)1 Properties (java.util.Properties)1 DocumentBuilder (javax.xml.parsers.DocumentBuilder)1