I have a project that has a number of resources under src/main/resources.
The associated codebase needs to know what resources are available in order
to load them at runtime (new resources are added all the time, so the list
cannot be static). I've got an ant target (from an older project) that
scans the resources dir, and emits a list of the files under that directory
as a new file. The code can then always load that directly listing at
runtime, and do what it needs to.
This works fine, but I'm wondering if there's a native maven solution to the
problem. I see noticed a ${project.resources} property mentioned elsewhere;
I figured I'd drop that into the jar's manifest, and load it back at runtime
from there, but project.resources appears to be an ArrayList, so can't be
added as a manifest entry's value (or, at least, not in a way obvious to
me).
Thoughts?
Thanks,
- Chas
--
View this message in context:
http://old.nabble.com/Generate-%2B-include-list-of-resources-included-in-jar-tp26718010p26718010.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]