public final class BuildPropertiesWriter extends Object
BuildPropertiesWriter
writes the build-info.properties
for
consumption by the Actuator.Modifier and Type | Class and 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 and Description |
---|
BuildPropertiesWriter(File outputFile)
Creates a new
BuildPropertiesWriter that will write to the given
outputFile . |
Modifier and Type | Method and Description |
---|---|
protected Properties |
createBuildInfo(BuildPropertiesWriter.ProjectDetails project) |
void |
writeBuildProperties(BuildPropertiesWriter.ProjectDetails projectDetails) |
public BuildPropertiesWriter(File outputFile)
BuildPropertiesWriter
that will write to the given
outputFile
.outputFile
- the output filepublic void writeBuildProperties(BuildPropertiesWriter.ProjectDetails projectDetails) throws IOException
IOException
protected Properties createBuildInfo(BuildPropertiesWriter.ProjectDetails project)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.