From 6b4cbecd24a47c9df00b629ab4ef4b1bcf8e7063 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 18 Jul 2020 12:38:39 -0400 Subject: [PATCH] boring little details --- .../autoupdate/src/com/rusefi/autoupdate/Autoupdate.java | 3 ++- java_console/bin/update_bundle.sh | 4 ++++ misc/jenkins/build_working_folder.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 java_console/bin/update_bundle.sh diff --git a/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java b/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java index dbc997de98..eee86023dd 100644 --- a/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java +++ b/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java @@ -12,6 +12,7 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URLClassLoader; +import java.util.Arrays; import java.util.Date; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; @@ -42,7 +43,7 @@ public class Autoupdate { private static void startConsole(String[] args) { try { // we want to make sure that files are available to write so we use reflection to get lazy class initialization - System.out.println("Running rusEFI console"); + System.out.println("Running rusEFI console with " + Arrays.toString(args)); // since we are overriding file we cannot just use static java classpath while launching URLClassLoader jarClassLoader = AutoupdateUtil.getClassLoaderByJar(RUSEFI_CONSOLE_JAR); diff --git a/java_console/bin/update_bundle.sh b/java_console/bin/update_bundle.sh new file mode 100644 index 0000000000..6a70d573ba --- /dev/null +++ b/java_console/bin/update_bundle.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd console +java -jar rusefi_autoupdate.jar version \ No newline at end of file diff --git a/misc/jenkins/build_working_folder.sh b/misc/jenkins/build_working_folder.sh index 99ffe8c30d..734bb9fd43 100644 --- a/misc/jenkins/build_working_folder.sh +++ b/misc/jenkins/build_working_folder.sh @@ -54,7 +54,7 @@ cp java_tools/ts_plugin_launcher/build/jar/rusefi_plugin_launcher.jar $CONSOLE_F cp simulator/build/rusefi_simulator.exe $CONSOLE_FOLDER cp misc/console_launcher/rusefi_*.exe $CONSOLE_FOLDER cp java_console/rusefi.xml $CONSOLE_FOLDER -cp java_console/bin $FOLDER +cp -r java_console/bin $FOLDER cp misc/console_launcher/readme.html $FOLDER