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:
- Parsing command-line options (
BeeOption
). - Locating or creating the project structure.
- Compiling the project definition file (
project.bee
). - Loading the project definition using a dedicated class loader.
- Executing the specified tasks (e.g., "compile", "test", "jar").
- Reporting the build result and duration.
API
Project
The api project.
Tool
Project
The build tool project.
Lombok
Project
The lombok project.
Abort
RuntimeException
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
(UserInterface
ui
)
UserInterface
ui
)UserInterface ui |
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.Directory
directory
, UserInterface
ui
)
psychopath.Directory
directory
, UserInterface
ui
)psychopath.Directory directory |
The root directory of the project. If null or invalid, attempts to use the current working directory or its parent. |
UserInterface ui |
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
(ListString
tasks
)
int
ListString
tasks
)List tasks |
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
(String
tasks
)
void
String
tasks
)String tasks |
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.