local compilation should not dirty clone for not reason #6879

only:flexibility
This commit is contained in:
rusefillc 2024-09-02 00:28:35 -04:00
parent 647f940682
commit 931755e6ef
2 changed files with 6 additions and 5 deletions

View File

@ -15,8 +15,6 @@ public class LiveDataProcessor {
private final static String header = "// generated by gen_live_documentation.sh / LiveDataProcessor.java\n";
public final static String enumContentFileName = "console/binary/generated/live_data_ids.h";
public static final String STATE_DICTIONARY_FACTORY_JAVA = "../java_console/io/src/main/java/com/rusefi/enums/StateDictionaryFactory.java";
public static final String JAVA_DESTINATION = "../java_console/models/src/main/java/com/rusefi/config/generated/";
@ -93,6 +91,10 @@ public class LiveDataProcessor {
return destinationFolder + "console/binary/generated/";
}
public String getEnumContentFileName() {
return getTsOutputsDestination() + "live_data_ids.h";
}
public String getGauges() {
return getTsOutputsDestination() + "gauges.ini";
}
@ -336,7 +338,7 @@ public class LiveDataProcessor {
private void writeFiles() throws IOException {
gaugeConsumer.endFile();
try (LazyFile fw = fileFactory.create(enumContentFileName)) {
try (LazyFile fw = fileFactory.create(getEnumContentFileName())) {
fw.write(enumContent.toString());
fw.write(baseAddressCHeader.toString());
}

View File

@ -5,7 +5,6 @@ import com.rusefi.output.SdCardFieldsContent;
import org.junit.jupiter.api.Test;
import java.io.*;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
@ -136,6 +135,6 @@ public class LiveDataProcessorTest {
"LDS_output_channels,\n" +
"} live_data_e;\n" +
"#define WBO_CHANNELS_BASE_ADDRESS 0\n" +
"#define OUTPUT_CHANNELS_BASE_ADDRESS 24\n", LiveDataProcessor.enumContentFileName);
"#define OUTPUT_CHANNELS_BASE_ADDRESS 24\n", liveDataProcessor.getEnumContentFileName());
}
}