Remove additional_build_steps_*.sh support (#301)

There is no need to have it as preparation steps could be fit into prepare_*.sh
This commit is contained in:
Alexander Yastrebov
2024-01-11 09:05:13 +01:00
committed by GitHub
parent 8602a35504
commit c9183a5aeb
4 changed files with 17 additions and 40 deletions

View File

@@ -15,13 +15,12 @@
# limitations under the License.
#
if [ -f ./image_calculateaverage_thomaswue ]; then
echo "Picking up existing native image, delete the file to select JVM mode." 1>&2
./image_calculateaverage_thomaswue
if [ -f target/CalculateAverage_thomaswue_image ]; then
echo "Picking up existing native image 'target/CalculateAverage_thomaswue_image', delete the file to select JVM mode." 1>&2
target/CalculateAverage_thomaswue_image
else
JAVA_OPTS="--enable-preview"
echo "Chosing to run the app in JVM mode as no native image was found, use additional_build_step_thomaswue.sh to generate." 1>&2
echo "Chosing to run the app in JVM mode as no native image was found, use prepare_thomaswue.sh to generate." 1>&2
java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_thomaswue
fi