Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize generate file-name #130

Closed
predhme opened this issue Aug 15, 2019 · 3 comments
Closed

Customize generate file-name #130

predhme opened this issue Aug 15, 2019 · 3 comments

Comments

@predhme
Copy link

predhme commented Aug 15, 2019

It appears as though one can override the location of the generated file. However, it doesn't appear that the filename itself can be overridden:

File gitPropertiesFile = new File(gitPropertiesDir, GIT_PROPERTIES_FILENAME)

@tha2015
Copy link
Collaborator

tha2015 commented Aug 22, 2019

Yes, it should be configurable.
BTW, just for my curiosity, do you know any case which needs to use a different file name?

@predhme
Copy link
Author

predhme commented Aug 26, 2019

We are not using Spring Boot (at least not yet), but we have a use case to generate a file with information from Git, as well as other data. For instance, we are taking version information from Gradle and appending it to the file. We wanted to rename the file to "version.properties" so that the name of the file is more reflective of what it represents to our application.

@tha2015
Copy link
Collaborator

tha2015 commented Aug 26, 2019

Thanks @predhme. I have submitted #131 for adding "gitPropertiesName" config key. It should support this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants