eager prepend handling

This commit is contained in:
Andrey 2024-05-22 10:04:10 -04:00
parent 9fea2383af
commit 77f809dab5
3 changed files with 4 additions and 5 deletions

View File

@ -134,7 +134,7 @@ public class ConfigDefinition {
break;
case KEY_SIGNATURE:
signaturePrependFile = args[i + 1];
state.addPrependNotInput(signaturePrependFile);
state.addPostponedPrependNotInput(signaturePrependFile);
// don't add this file to the 'inputFiles'
break;
case KEY_SIGNATURE_DESTINATION:

View File

@ -4,7 +4,6 @@ import com.rusefi.output.ConfigStructure;
import com.rusefi.output.ConfigurationConsumer;
import java.io.IOException;
import java.util.List;
import java.util.Map;
public interface ReaderState {
@ -22,7 +21,7 @@ public interface ReaderState {
void addPrepend(String fileName);
void addPrependNotInput(String fileName);
void addPostponedPrependNotInput(String fileName);
void addDestination(ConfigurationConsumer... consumers);

View File

@ -414,12 +414,12 @@ public class ReaderStateImpl implements ReaderState {
// see LiveDataProcessor use-case with dynamic prepend usage
return;
}
variableRegistry.readPrependValues(fileName, false);
inputFiles.add(fileName);
addPrependNotInput(fileName);
}
@Override
public void addPrependNotInput(String fileName) {
public void addPostponedPrependNotInput(String fileName) {
prependFiles.add(fileName);
}