Package io.helidon.build.dev
Class Project.Builder
- java.lang.Object
-
- io.helidon.build.dev.Project.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Projectbuild()Returns a new project.Project.BuilderbuildFile(BuildFile buildFile)Add a build system file.Project.BuilderbuildType(BuildType buildType)Sets the build type.Project.BuildercompilerFlags(String compilerFlag)Add a compiler flag.Project.Buildercomponent(BuildComponent component)Add a component.Project.Builderconfig(io.helidon.build.util.ProjectConfig config)Sets the project config.Project.Builderdependency(Path dependency)Add a dependency.Project.BuildermainClassName(String mainClassName)Sets the main class name.Project.Buildername(String name)Sets the project name.Project.BuilderrootDirectory(ProjectDirectory rootDirectory)Sets the project root directory.
-
-
-
Method Detail
-
name
public Project.Builder name(String name)
Sets the project name.- Parameters:
name- The name.- Returns:
- This instance, for chaining.
-
buildType
public Project.Builder buildType(BuildType buildType)
Sets the build type.- Parameters:
buildType- The type.- Returns:
- This instance, for chaining.
-
rootDirectory
public Project.Builder rootDirectory(ProjectDirectory rootDirectory)
Sets the project root directory.- Parameters:
rootDirectory- The directory.- Returns:
- This instance, for chaining.
-
buildFile
public Project.Builder buildFile(BuildFile buildFile)
Add a build system file.- Parameters:
buildFile- The file.- Returns:
- This instance, for chaining.
-
compilerFlags
public Project.Builder compilerFlags(String compilerFlag)
Add a compiler flag.- Parameters:
compilerFlag- The flag.- Returns:
- This instance, for chaining.
-
component
public Project.Builder component(BuildComponent component)
Add a component.- Parameters:
component- The component.- Returns:
- This instance, for chaining.
-
dependency
public Project.Builder dependency(Path dependency)
Add a dependency.- Parameters:
dependency- The dependency.- Returns:
- This instance, for chaining.
-
mainClassName
public Project.Builder mainClassName(String mainClassName)
Sets the main class name.- Parameters:
mainClassName- The name.- Returns:
- This instance, for chaining.
-
config
public Project.Builder config(io.helidon.build.util.ProjectConfig config)
Sets the project config.- Parameters:
config- The config.- Returns:
- This instance, for chaining.
-
build
public Project build()
Returns a new project.- Returns:
- The project.
-
-