Skip to content

replacementProperty as part of git.properties file name #902

@weberjn

Description

@weberjn

Describe the question / problem (required)

<replacementProperties>
	<replacementProperty>
		<property>git.branch</property>
		 <regex>false</regex>
		<token>/</token>
		<value>_</value>
		<propertyOutputSuffix>repl</propertyOutputSuffix>
	</replacementProperty>
</replacementProperties>

<generateGitPropertiesFilename>${project.build.directory}/git.properties</generateGitPropertiesFilename>

correctly creates a property in the file
git.branch.repl=somebranch_1.0

But

<generateGitPropertiesFilename>${project.build.directory}/git-{git.branch.repl}.properties</generateGitPropertiesFilename>

creates a file exactly called git-{git.branch.repl}.properties
without replacement.

How to get a file called git-somebranch_1.0.properties ?

Context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions