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,
Path outputFile,
Path classOutputDir)
Constructor
|
BuildInfo(String name,
String version,
String packaging,
String buildTool,
Path outputFile,
Path classOutputDir,
Path resourceDir)
Constructor
|
Modifier and Type | Method and Description |
---|---|
BuildInfoBuilder |
edit() |
String |
getBuildTool()
Get the build tool name.
|
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, Path outputFile, Path classOutputDir)
name
- The project name (e.g. maven artifactId).version
- The project version (e.g. maven version).packaging
- The project packaging (e.g. jar, war).outputFile
- 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).public BuildInfo(String name, String version, String packaging, String buildTool, 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).outputFile
- 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 Path getOutputFile()
public Path getClassOutputDir()
public Path getResourceDir()
Copyright © 2018–2020 Red Hat. All rights reserved.