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 |
---|---|
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.
|
void |
setApplicationResourceOutputDir(Path resourceDir) |
void |
setBuildTool(String buildTool)
Set the build tool name.
|
void |
setName(String name) |
void |
setOutputFile(Path outputFile) |
void |
setPackaging(String packaging) |
void |
setResourceOutputDir(Path classOutputDir) |
void |
setVersion(String 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 String getName()
public String getVersion()
public String getPackaging()
public String getBuildTool()
public void setBuildTool(String buildTool)
public Path getOutputFile()
public Path getClassOutputDir()
public Path getResourceDir()
public void setName(String name)
public void setVersion(String version)
public void setPackaging(String packaging)
public void setOutputFile(Path outputFile)
public void setResourceOutputDir(Path classOutputDir)
public void setApplicationResourceOutputDir(Path resourceDir)
Copyright © 2018–2020 Red Hat. All rights reserved.