public class BuildInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BUILD_TOOL |
static String |
DEFAULT_PACKAGING |
Constructor and Description |
---|
BuildInfo() |
BuildInfo(String name,
String version,
String packaging,
String buildTool,
String buildToolVersion,
Path outputFile,
Path classOutputDir,
Path resourceDir)
Constructor
|
Modifier and Type | Method and Description |
---|---|
BuildInfoBuilder |
edit() |
String |
getBuildTool()
Get the build tool name.
|
String |
getBuildToolVersion() |
Path |
getClassOutputDir() |
String |
getName()
Get the project name.
|
Path |
getOutputFile()
Get the output file name.
|
String |
getPackaging()
Get the project packaging.
|
Path |
getResourceDir() |
String |
getVersion()
Get the project version.
|
public static String DEFAULT_PACKAGING
public static String DEFAULT_BUILD_TOOL
public BuildInfo()
public BuildInfo(String name, String version, String packaging, String buildTool, String buildToolVersion, Path outputFile, Path classOutputDir, Path resourceDir)
name
- The project name (e.g. maven artifactId).version
- The project version (e.g. maven version).packaging
- The project packaging (e.g. jar, war).buildTool
- The project build tool (e.g. maven, gralde, sbt)buildToolVersion
- The build tool versionoutputFile
- The output file (the path to the actual jar, war etc).classOutputDir
- The resource output directory (e.g. target/classes, build/classes/main/java etc).resourceDir
- The directory from which application resources should be read. (e.g. target/classes for maven,
src/main/resources from gralde and so on).public BuildInfoBuilder edit()
public String getName()
public String getVersion()
public String getPackaging()
public String getBuildTool()
public String getBuildToolVersion()
public Path getOutputFile()
public Path getClassOutputDir()
public Path getResourceDir()
Copyright © 2018–2021 Red Hat. All rights reserved.