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

white-island-59741

10/19/2018, 12:00 PM
Hello all! 🙂 I have another questions, java related this time 😉 I want to build a .jar file with some resources placed on root path. And I cannot find any reasonable way to do that. I was creating resources like that: src/resources/project1/BUILD
Copy code
resources(
    name = 'config',
    sources=['application.properties']
)
and then adding it as dependency into
jvm_binary
target. But in jar, my application.properties is placed under
project1
path. How can I explicitly tell pants, that path
src/resources/project1
is my root path for jar?
8 Views