Package aQute.bnd.build

Examples of aQute.bnd.build.Project


        throw new BuildException("The given base dir does not exist " + basedir);

      Workspace workspace = Workspace.getWorkspace(basedir.getParentFile());
      workspace.addBasicPlugin(new ConsoleProgress());
     
      Project project = workspace.getProject(basedir.getName());
      if (project == null)
        throw new BuildException("Unable to find bnd project in directory: " + basedir);

      project.setProperty("in.ant", "true");
      project.setProperty("environment", "ant");

      // Check if we are in a sub build, in that case
      // top will be set to the target directory at the
      // top project.
      if (top != null && top.length() > 0 && !top.startsWith("$"))
        project.setProperty("top", top);

      project.setExceptions(true);
      Properties properties = project.getFlattenedProperties();
      if (report() || report(project))
        throw new BuildException("Errors during Eclipse Path inspection");

      copyProperties(properties);
    }
View Full Code Here

TOP

Related Classes of aQute.bnd.build.Project

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.