https://pantsbuild.org/ logo
a

average-vr-56795

01/07/2019, 5:37 PM
Is there a handy way to either: 1. Materialize a
resources
target into a directory 2. Make a zip file of a
resources
target ?
a

aloof-angle-91616

01/07/2019, 5:38 PM
this isn't answering the question at all but i would recommend making use of the
deployable_archives
product if there is a task created to do (2)
a

average-vr-56795

01/07/2019, 5:40 PM
I was hoping not to write any code 😞 I can make an empty
jvm_binary
which depends on it, which will give me a zip file…
a

aloof-angle-91616

01/07/2019, 5:40 PM
now that's called being a hacker
w

witty-crayon-22786

01/07/2019, 5:40 PM
@average-vr-56795: could extract the
Snapshot
of the resources ?
extract/checkout
a

average-vr-56795

01/07/2019, 5:42 PM
Does that mean… “Add a flag to filedeps”? 😄
a

aloof-angle-91616

01/07/2019, 5:43 PM
if
./pants bundle <target>
doesn't do this for resources it might be very reasonable to add that capability?
w

witty-crayon-22786

01/07/2019, 5:43 PM
mm, so you mean "outside of pants" then
a

average-vr-56795

01/07/2019, 5:44 PM
Yeah, I was hoping to be able to just run
./pants bundle <target>
or similar… The
jvm_binary
hack is sufficient for my needs, though 🙂
a

aloof-angle-91616

01/07/2019, 5:45 PM
are there any tasks which consume bare
resources()
targets right now (like as target roots)? or are they only consumed as dependencies of other targets?
the answer is no
i spent 5 minutes thinking about how to make a task for `./pants bundle`ing any
Files
subclasses passed as target roots so if that's a need for anyone let me know, but just stashed it for now