Package bm.machine

Interface Target

All Superinterfaces:
StateProvider
All Known Implementing Classes:
FileTarget, FixedStateTarget, StringTarget

public interface Target extends StateProvider
Describes a target to be built.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the list of targets this one depends on when being build.
    The name of the target, unique within the graph of targets.
    void
    Recreate this target.

    Methods inherited from interface bm.machine.StateProvider

    addState
  • Method Details

    • getName

      String getName()
      The name of the target, unique within the graph of targets. It is used as the key for keeping a persistent state of the target in a StateStore. Some state stores have restrictions on characters which cannot be used.

      Note: using a non unique name can only be detected during the build and only if both targets of the same name are traversed.

      Returns:
      the name
    • getDependencies

      List<Target> getDependencies()
      Return the list of targets this one depends on when being build. This should list all targets whose change should trigger a rebuild of this target.
      Returns:
      the dependencies of this target
    • recreate

      void recreate() throws BuildProblemException
      Recreate this target.
      Throws:
      BuildProblemException - as needed