From 733ccee274d1a292d52edff87fd27d7b8b12b9f9 Mon Sep 17 00:00:00 2001 From: Jason Steving Date: Mon, 6 Dec 2021 01:57:02 -0800 Subject: [PATCH] ClaroSupport working efficiently! And NOW.....A REPL on RIJU! This is the final push towards implementing legitimate support for Claro in Riju! I've now figured out how to package up all of the Bazel generated build resources (jars) and the Bazel generated run script and have pieced everything together so that rebuilds and initial page loads are all as efficient as I can make them so far accounting for the intermediate step of compiling to Java. The general process is to package everything needed from Bazel in a tarball and then to dynamically insert a custom script to the Bazel generated run script in bazel-bin to rebuild and update the jar file for the latest modification to the file. This allows me to canibalize Bazel's logic for determining where all the proper "runfiles" a.k.a. jars are located in that tarball. With this approach I'm also able to trivially support the Claro REPL in Riju as well!!!!! This is the greatest unexpected surprise :D. --- langs/claro.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/langs/claro.yaml b/langs/claro.yaml index c611fe2..a4fb577 100644 --- a/langs/claro.yaml +++ b/langs/claro.yaml @@ -23,8 +23,6 @@ install: pushd claro_programs/ > /dev/null fancydelim=$(printf '\001') # https://stackoverflow.com/a/25821096/10027370 - # MY_SCRIPT=' CLASSPATH+=":\${RUNPATH}../../../../../../../external/maven/v1/https/jcenter.bintray.com/org/projectlombok/lombok/1.18.20/lombok-1.18.20.jar"\n' - # MY_SCRIPT+=' CLASSPATH+=":\${RUNPATH}../../../../../../../external/maven/v1/https/jcenter.bintray.com/com/google/auto/value/auto-value/1.5.3/auto-value-1.5.3.jar"\n' # For the purpose of rebuilding, we need lombok and autovalue on the classpath. MY_SCRIPT=' REBUILD_CLASSPATH="${CLASSPATH}"\n' MY_SCRIPT+=' REBUILD_CLASSPATH+=":lombok-1.18.20.jar"\n'