Package io.helidon.build.devloop
Class Project.Builder
java.lang.Object
io.helidon.build.devloop.Project.Builder
- Enclosing class:
- Project
A
Project builder.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a new project.Add a build system file.Sets the build type.compilerFlags(String compilerFlag) Add a compiler flag.component(BuildComponent component) Add a component.config(ProjectConfig config) Sets the project config.dependency(Path dependency) Add a dependency.mainClassName(String mainClassName) Sets the main class name.Sets the project name.rootDirectory(ProjectDirectory rootDirectory) Sets the project root directory.
-
Method Details
-
name
Sets the project name.- Parameters:
name- The name.- Returns:
- This instance, for chaining.
-
buildType
Sets the build type.- Parameters:
buildType- The type.- Returns:
- This instance, for chaining.
-
rootDirectory
Sets the project root directory.- Parameters:
rootDirectory- The directory.- Returns:
- This instance, for chaining.
-
buildFile
Add a build system file.- Parameters:
buildFile- The file.- Returns:
- This instance, for chaining.
-
compilerFlags
Add a compiler flag.- Parameters:
compilerFlag- The flag.- Returns:
- This instance, for chaining.
-
component
Add a component.- Parameters:
component- The component.- Returns:
- This instance, for chaining.
-
dependency
Add a dependency.- Parameters:
dependency- The dependency.- Returns:
- This instance, for chaining.
-
mainClassName
Sets the main class name.- Parameters:
mainClassName- The name.- Returns:
- This instance, for chaining.
-
config
Sets the project config.- Parameters:
config- The config.- Returns:
- This instance, for chaining.
-
build
Returns a new project.- Returns:
- The project.
-