Enum Class BuildMode

java.lang.Object
java.lang.Enum<BuildMode>
org.ek9lang.core.BuildMode
All Implemented Interfaces:
Serializable, Comparable<BuildMode>, Constable

public enum BuildMode extends Enum<BuildMode>
THE four build modes a project's .ek9/<arch>/ tree is organised by - one folder per mode, each holding its own <name>.jar/<name>, build.key and (NORMAL/DEBUG only) build.inputs (plan docs/implementation/EK9_BUILD_OUTPUT_LAYOUT.md §1-§2, extending I1's original docs/implementation/EK9_P1_I1_PLAN.md §2.1-§2.2). A debug jar, a test/coverage jar and a normal jar never share a path, so one can never masquerade as another (DI-2).

reusesOutput() is false only for RELEASE: a release build is never "already in date" (DI-7 / D-B1) - it always rebuilds from scratch.

  • Enum Constant Details

    • DEBUG

      public static final BuildMode DEBUG
    • NORMAL

      public static final BuildMode NORMAL
    • RELEASE

      public static final BuildMode RELEASE
    • TEST

      public static final BuildMode TEST
  • Method Details

    • values

      public static BuildMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BuildMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • folderName

      public String folderName()
    • reusesOutput

      public boolean reusesOutput()