parent
9e517b8d29
commit
25d71abbf9
|
@ -103,7 +103,10 @@ public class IniFileModelImpl implements IniFileModel {
|
|||
}
|
||||
|
||||
private static String findMetaInfoFile(String iniFilePath) {
|
||||
return FindFileHelper.findFile(iniFilePath, RUSEFI_INI_PREFIX, RUSEFI_INI_SUFFIX);
|
||||
String iniFileName = FindFileHelper.findFile(iniFilePath, RUSEFI_INI_PREFIX, RUSEFI_INI_SUFFIX);
|
||||
if (iniFileName == null)
|
||||
throw new IllegalStateException("Not found " + RUSEFI_INI_PREFIX + "*" + RUSEFI_INI_SUFFIX + " in " + iniFilePath);
|
||||
return iniFileName;
|
||||
}
|
||||
|
||||
private void finishDialog() {
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
package com.rusefi.core;
|
||||
|
||||
import com.devexperts.logging.Logging;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Objects;
|
||||
|
||||
public class FindFileHelper {
|
||||
private static final Logging log = Logging.getLogging(FindFileHelper.class);
|
||||
public static final String INPUT_FILES_PATH = System.getProperty("input_files_path", "..");
|
||||
/**
|
||||
* Same .bin used by primary DFU and a bit unneeded ST-LINK options
|
||||
|
@ -15,9 +17,10 @@ public class FindFileHelper {
|
|||
@Nullable
|
||||
public static String findFile(String fileDirectory, String prefix, String suffix) {
|
||||
File dir = new File(fileDirectory);
|
||||
if (!dir.isDirectory())
|
||||
return null;
|
||||
System.out.println("Searching for " + prefix + "*" + suffix + " in " + dir.getAbsolutePath());
|
||||
if (!dir.isDirectory()) {
|
||||
throw new IllegalStateException("Not a directory: " + fileDirectory);
|
||||
}
|
||||
log.info("Searching for " + prefix + "*" + suffix + " in " + dir.getAbsolutePath());
|
||||
for (String file : Objects.requireNonNull(dir.list())) {
|
||||
if (file.contains(" "))
|
||||
continue; // spaces not acceptable
|
||||
|
|
|
@ -10,7 +10,7 @@ public interface rusEFIVersion {
|
|||
* *** BE CAREFUL WE HAVE SEPARATE AUTOUPDATE_VERSION also managed manually ***
|
||||
* @see com.rusefi.autoupdate.Autoupdate#AUTOUPDATE_VERSION
|
||||
*/
|
||||
int CONSOLE_VERSION = 20240929;
|
||||
int CONSOLE_VERSION = 20240930;
|
||||
AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||
|
||||
static long classBuildTimeMillis() {
|
||||
|
|
Loading…
Reference in New Issue