Class BuildPropertiesWriter
- java.lang.Object
- org.springframework.boot.loader.tools.BuildPropertiesWriter
public final class BuildPropertiesWriter extends Object
ABuildPropertiesWriter
writes thebuild-info.properties
for consumption by the Actuator.
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildPropertiesWriter.NullAdditionalPropertyValueException
Exception thrown when an additional property with a null value is encountered.static class
BuildPropertiesWriter.ProjectDetails
Build-system agnostic details of a project.
Constructor Summary
Constructors Constructor Description BuildPropertiesWriter(File outputFile)
Creates a newBuildPropertiesWriter
that will write to the givenoutputFile
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Properties
createBuildInfo(BuildPropertiesWriter.ProjectDetails project)
void
writeBuildProperties(BuildPropertiesWriter.ProjectDetails projectDetails)
Constructor Detail
BuildPropertiesWriter
public BuildPropertiesWriter(File outputFile)
Creates a newBuildPropertiesWriter
that will write to the givenoutputFile
.- Parameters:
outputFile
- the output file
Method Detail
writeBuildProperties
public void writeBuildProperties(BuildPropertiesWriter.ProjectDetails projectDetails) throws IOException
- Throws:
IOException
createBuildInfo
protected Properties createBuildInfo(BuildPropertiesWriter.ProjectDetails project)