bee

bee

Bee

Bee is a task-based build tool for Java projects. It manages project compilation, dependency resolution, task execution, and provides user interaction through a UserInterface.

The build process typically involves:

  1. Parsing command-line options (BeeOption).
  2. Locating or creating the project structure.
  3. Compiling the project definition file (project.bee).
  4. Loading the project definition using a dedicated class loader.
  5. Executing the specified tasks (e.g., "compile", "test", "jar").
  6. Reporting the build result and duration.

APIProject

The api project.

ToolProject

The build tool project.

LombokProject

The lombok project.

AbortRuntimeException

The project build process is aborted by user.

Bee()

Creates a project builder instance targeting the current working directory and using the default console user interface (UserInterface#CUI).

Bee(UserInterfaceui)

UserInterfaceui

The user interface to use for output and input. If null, defaults to CUI.

Creates a project builder instance targeting the current working directory with the specified UserInterface.

Bee(psychopath.Directorydirectory, UserInterfaceui)

psychopath.Directorydirectory

The root directory of the project. If null or invalid, attempts to use the current working directory or its parent.

UserInterfaceui

The user interface to use for output and input. If null, defaults to CUI.

Creates a project builder instance targeting the specified project root directory and using the specified UserInterface.

execute(ListStringtasks)int

ListStringtasks

A list of task command strings (e.g., "compile", "test:run", "jar").

int

The process exit code (0 for success, non-zero for failure or cancellation).

Executes a sequence of tasks based on the provided list of command strings. This method orchestrates the main build lifecycle, including project definition loading, task execution, and result reporting.

main(Stringtasks)void

Stringtasks

Command-line arguments representing tasks and options.

The main entry point for the Bee command-line application. Parses arguments into options and tasks, initializes Bee, and executes the tasks.