How to pass command line arguments to spring java app
Hi CF dev team,
I want to pass command line arguments to the spring java app. I have tried the option of setting them using the env 'JBP_CONFIG_JAVA_MAIN' as suggested in https://github.com/cloudfoundry/java-buildpack but its not working. Could anyone suggest what is the right way to pass the command line arguments. Currently the app is started with following command.
App xyz was started using this command `SERVER_PORT=$PORT $PWD/.java-buildpack/open_jdk_jre/bin/java -cp $PWD/.:$PWD/.java-buildpack/spring_auto_reconfiguration/spring_auto_reconfiguration-1.7.0_RELEASE.jar -Djava.io.tmpdir=$TMPDIR -XX:OnOutOfMemoryError=$PWD/.java-buildpack/open_jdk_jre/bin/killjava.sh -Xmx768M -Xms768M -XX:MaxMetaspaceSize=104857K -XX:MetaspaceSize=104857K -Xss1M -Dlogging.config=file:/home/vcap/app/logback.xml org.springframework.boot.loader.JarLauncher`
How the app is pushed: cf push -p xyz.jar