local compilation should not dirty clone for not reason #6879

only:verbose and narrower type
This commit is contained in:
rusefillc 2024-09-01 23:42:26 -04:00
parent 4739787ac9
commit 6a10620a2a
3 changed files with 7 additions and 4 deletions

View File

@ -60,13 +60,14 @@ public class LiveDataProcessor {
System.err.println("Five arguments expected: name of live data yaml input file and else but got " + args.length + ": " + Arrays.toString(args));
System.exit(-1);
}
log.info("Invoked with " + Arrays.toString(args));
String yamlFileNames = args[0];
String definitionInputFileName = args[1];
String headerFileName = args[2];
String javaDestinationFileName = args[3];
String destinationFolder = args[4];
TriggerMetaGenerator.doJob(definitionInputFileName, headerFileName, javaDestinationFileName);
ArrayList<LinkedHashMap> totalContent = new ArrayList<>();
List<LinkedHashMap> totalContent = new ArrayList<>();
for (String fileName : yamlFileNames.split(",")) {
ArrayList<LinkedHashMap> yamlContent = getStringObjectMap(new FileReader(fileName));
totalContent.addAll(yamlContent);
@ -128,7 +129,7 @@ public class LiveDataProcessor {
void onEntry(String name, String javaName, String folder, String prepend, boolean withCDefines, String[] outputNames, String constexpr, String conditional, String engineModule, Boolean isPtr, String cppFileName) throws IOException;
}
public int handleYaml(ArrayList<LinkedHashMap> liveDocs) throws IOException {
public int handleYaml(List<LinkedHashMap> liveDocs) throws IOException {
AtomicInteger startingPosition = new AtomicInteger();
OutputsSectionConsumer outputsSections = new OutputsSectionConsumer(getOutputsSectionFileName(),

View File

@ -7,6 +7,7 @@ import org.junit.jupiter.api.Test;
import java.io.*;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import static com.rusefi.AssertCompatibility.assertEquals;
@ -29,7 +30,7 @@ public class LiveDataProcessorTest {
;
ArrayList<LinkedHashMap> data = LiveDataProcessor.getStringObjectMap(new StringReader(testYaml));
List<LinkedHashMap> data = LiveDataProcessor.getStringObjectMap(new StringReader(testYaml));
TestFileCaptor captor = new TestFileCaptor();
LiveDataProcessor liveDataProcessor = new LiveDataProcessor("test", new ReaderProvider() {

View File

@ -6,6 +6,7 @@ import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import static com.rusefi.AssertCompatibility.assertEquals;
@ -30,7 +31,7 @@ public class StateDictionaryGeneratorTest {
" conditional_compilation: \"EFI_ENGINE_CONTROL\"\n";
ArrayList<LinkedHashMap> data = LiveDataProcessor.getStringObjectMap(new StringReader(testYaml));
List<LinkedHashMap> data = LiveDataProcessor.getStringObjectMap(new StringReader(testYaml));
TestFileCaptor captor = new TestFileCaptor();
LiveDataProcessor liveDataProcessor = new LiveDataProcessor("test", fileName -> new StringReader(""), captor, "./");