salesforce / rules_spring

Bazel rule for building Spring Boot apps as a deployable jar
BSD 3-Clause "New" or "Revised" License
224 stars 48 forks source link

add launcher_script attribute to springboot rule so user can provide script for bazel run #103

Closed plaird closed 3 years ago

plaird commented 3 years ago

This provides a way for the user to replace the launcher script used when invoking the Spring Boot application via 'bazel run' #92

There were some gymnastics involved, as there are some variables that need to be substituted in the launcher script. I implemented this by generating an extra env script that provides those values that gets invoked prior to invoking the actual launcher script.