Package aQute.bnd.ant

Class ProjectBuildOrderTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
aQute.bnd.ant.BaseTask
aQute.bnd.ant.ProjectBuildOrderTask
All Implemented Interfaces:
Report, Reporter, Cloneable

public class ProjectBuildOrderTask extends BaseTask
ProjectBuildOrderTask calculates the correct build order for all of the bnd projects in a workspace. The bndFile property can be set to calculate the build order for a specific project instead of the whole workspace.
  • Field Details

    • PROP_BUILD_ORDER

      private static final String PROP_BUILD_ORDER
      See Also:
    • propertyName

      private String propertyName
    • separator

      private String separator
    • workspaceLocation

      private File workspaceLocation
    • fullpath

      private boolean fullpath
    • projectLocation

      private File projectLocation
    • bndFile

      private String bndFile
    • delayRunDependencies

      private boolean delayRunDependencies
  • Constructor Details

    • ProjectBuildOrderTask

      public ProjectBuildOrderTask()
  • Method Details

    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • setSeparator

      public void setSeparator(String separator)
      Sets character (or string) separator between projects in resultant ant property.
      Parameters:
      separator - character (or string) separator
    • setWorkspaceLocation

      public void setWorkspaceLocation(File workspaceLocation)
      Sets Bnd workspace location.
      Parameters:
      workspaceLocation - Bnd workspace location.
    • setFullPath

      public void setFullPath(boolean fullpath)
      Sets whether to use project names or full absolute paths to projects in the resultant ant property. Default is project names.
      Parameters:
      fullpath - true for full absolete paths to project, false for project names.
    • setProjectDir

      public void setProjectDir(File projectLocation)
      Sets the project directory which contains the bndFile. Must be used with the bndFile parameter. Default is unset (null), which instructions ProjectBuildOrderTask to acquire the build order for the entire workspace
      Parameters:
      projectLocation - Bnd project directory
    • setBndFile

      public void setBndFile(String bndFileParam)
      Sets a single bnd file for ProjectBuildOrderTask to acquire the build order from. Default is bnd.bnd. Default is unset (null), which instructions ProjectBuildOrderTask to acquire the build order for the entire workspace
      Parameters:
      bndFileParam - bnd file
    • setProperty

      public void setProperty(String newProperty)
      Sets the ant property that will contain the list of projects in build order. If not provided, the default ant property name is buildorder.
      Parameters:
      newProperty - ant property name
    • setDelayRunDependencies

      public void setDelayRunDependencies(boolean b)
      Set true to ignore runbundles dependencies. Set false to include runbundles dependencies in buildorder.
      Parameters:
      b - true/false