This is a Java Maven app WITHOUT Spring. Therefore, it can't use spring-boot-devtools.
This is also not a true web app. It is a long-running process that prints "Hello
World!" to the console. Therefore, it can't use .tanzu/wait.sh
- Run the most recent deploy script.
- Make sure your
tilt
is up to date. - Make sure you have the Java Extension Pack installed in VSCode.
- Clone this directory and open it in VSCode.
tilt up
.- Open the Tilt UI in the browser.
- See that the resources go green.
- At this point, the build will still be in progress. Track the build with
kp build logs sample-app-java-exe
. See that thewatchexec
buildpack is participating (in theDETECT
phase), and that the default process type isreload
(in theEXPORT
phase). Wait for the build to complete. - Wait for the deployment pod (not the build pod) to be in the "Running" state. Only 1/2 containers will come up; this is okay.
- In the Tilt UI, see the app print "Hello World!" every second.
- In VSCode, make a change to
src/main/java/com/example/App.java
to make it print "Hello Tanzu!", and save. - In the Tilt UI, see that the container picked up the change to App.class and sync into the container. Within a second or two, the Tilt UI should show that the app is printing "Hello Tanzu!".