:question: — I’d like to include a Log4j2 configur...
# general
f
— I’d like to include a Log4j2 configuration file in my
jvm_binary
for use with AWS Lambda. Currently, the filename has its path prepended so it isn’t picked up. To reference the
hello-world
example, is there a way to configure a
resource
so that
examples.src.java.org.pantsbuild.example.hello.greet.greet.txt
would be on the classpath as
greet.txt
? (I’ve also tried to use
jvm_app
, but Lambda expects a
.zip
archive to have compiled code at the root, not a jar.)
Copy code
pants (master)$ jar -tf dist/hello-example.jar
META-INF/
META-INF/MANIFEST.MF
org/
org/pantsbuild/
org/pantsbuild/example/
org/pantsbuild/example/hello/
org/pantsbuild/example/hello/world.txt
org/pantsbuild/example/hello/greet/
org/pantsbuild/example/hello/greet/Greeting.class
compile_classpath/
compile_classpath/examples.src.java.org.pantsbuild.example.hello.greet.greet.txt
compile_classpath/examples.src.java.org.pantsbuild.example.hello.main.main-bin.txt
org/pantsbuild/example/hello/main/
org/pantsbuild/example/hello/main/HelloMain.class