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.
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)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, 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)Listtasks |
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)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.