Package aQute.bnd.ant

Class ProjectBuildOrderTask

  • All Implemented Interfaces:
    aQute.service.reporter.Report, aQute.service.reporter.Reporter, java.lang.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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface aQute.service.reporter.Report

        aQute.service.reporter.Report.Location
      • Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter

        aQute.service.reporter.Reporter.SetLocation
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      void setBndFile​(java.lang.String bndFileParam)
      Sets a single bnd file for ProjectBuildOrderTask to acquire the build order from.
      void setDelayRunDependencies​(boolean b)
      Set true to ignore runbundles dependencies.
      void setFullPath​(boolean fullpath)
      Sets whether to use project names or full absolute paths to projects in the resultant ant property.
      void setProjectDir​(java.io.File projectLocation)
      Sets the project directory which contains the bndFile.
      void setProperty​(java.lang.String newProperty)
      Sets the ant property that will contain the list of projects in build order.
      void setSeparator​(java.lang.String separator)
      Sets character (or string) separator between projects in resultant ant property.
      void setWorkspaceLocation​(java.io.File workspaceLocation)
      Sets Bnd workspace location.
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProjectBuildOrderTask

        public ProjectBuildOrderTask()
    • Method Detail

      • 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​(java.lang.String separator)
        Sets character (or string) separator between projects in resultant ant property.
        Parameters:
        separator - character (or string) separator
      • setWorkspaceLocation

        public void setWorkspaceLocation​(java.io.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​(java.io.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​(java.lang.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​(java.lang.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