I am writing a custom Info Contributor. I have a properties file that is generated during the build process in target/classes folder. How Can I use this generated file in the custom info contributor.
I checked the below code for GitInfoContributor
public class GitInfoContributor extends InfoPropertiesInfoContributor<GitProperties> {
    public GitInfoContributor(GitProperties properties) {
        this(properties, Mode.SIMPLE);
    }
    public GitInfoContributor(GitProperties properties, Mode mode) {
        super(properties, mode);
    }
    @Override
    public void contribute(Info.Builder builder) {
        builder.withDetail("git", generateContent());
    }
    @Override
    protected PropertySource<?> toSimplePropertySource() {
        Properties props = new Properties();
        copyIfSet(props, "branch");
        String commitId = getProperties().getShortCommitId();
        if (commitId != null) {
            props.put("commit.id", commitId);
        }
        copyIfSet(props, "commit.time");
        return new PropertiesPropertySource("git", props);
    }
    /**
     * Post-process the content to expose. By default, well known keys representing dates
     * are converted to {@link Instant} instances.
     * @param content the content to expose
     */
    @Override
    protected void postProcessContent(Map<String, Object> content) {
        replaceValue(getNestedMap(content, "commit"), "time", getProperties().getCommitTime());
        replaceValue(getNestedMap(content, "build"), "time", getProperties().getInstant("build.time"));
    }
}
I am not able to figure out how the git properties are being injected to GitProperties class here ? I need to do the same for my custom info contributor using my properties file.