https://pantsbuild.org/ logo
#general
Title
# general
w

wonderful-winter-39732

08/20/2018, 10:08 AM
Hello, I need help with something. I’m trying to create a static properties file containing information about the product at the time of bundle (version, git revision, jenkins build no. etc.). I implemented a task that creates the file, or a string that can be written as a properties file. How can I have this file included as a resource? Either in its own jar or in one of the jars I’m creating Thanks
w

wonderful-winter-39732

08/20/2018, 2:21 PM
Thanks. That’s similar to what I ended up doing. I noticed the
PrepareResources
class mentions it does not filter resources. Since my code also does this (it replaces keywords within the file with values) I thought of contributing this back once it’s ready and I receive approval from my superiors. Is there a spec for the resource filtering? I’d like to know your expectations
e

enough-analyst-54434

08/20/2018, 2:50 PM
There is no spec yet describing what Pants might want to do here. You'd get to invent that! A good approach might be to file a feature enhancement issue with your filtering proposal. We could work things out there.
w

wonderful-winter-39732

08/20/2018, 2:51 PM
OK, I’ll probably get on it next week or so. Hopefully this will be my first contribution 🙂
e

enough-analyst-54434

08/20/2018, 3:08 PM
Excellent!
4 Views