Hello, I need help with something. I’m trying to c...
# general
w
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
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
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
OK, I’ll probably get on it next week or so. Hopefully this will be my first contribution 🙂
e
Excellent!