eager prepend handling
This commit is contained in:
parent
ba4b589d32
commit
9276efcb39
|
@ -133,7 +133,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:
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -415,12 +415,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue