refactoring
This commit is contained in:
parent
1f25891d31
commit
b8bb95f636
|
@ -148,7 +148,7 @@ public class ConfigDefinition {
|
|||
enumInputFiles.add(args[i + 1]);
|
||||
break;
|
||||
case "-ts_output_name":
|
||||
TSProjectConsumer.TS_FILE_OUTPUT_NAME = args[i + 1];
|
||||
state.tsFileOutputName = args[i + 1];
|
||||
break;
|
||||
case KEY_ROMRAIDER_INPUT:
|
||||
String inputFilePath = args[i + 1];
|
||||
|
|
|
@ -37,6 +37,7 @@ public class ReaderState {
|
|||
public final Map<String, ConfigStructure> structures = new HashMap<>();
|
||||
public String headerMessage;
|
||||
// well, technically those should be a builder for state, not this state class itself
|
||||
public String tsFileOutputName = "rusefi.ini";
|
||||
String definitionInputFile = null;
|
||||
public boolean withC_Defines = true;
|
||||
List<String> prependFiles = new ArrayList<>();
|
||||
|
|
|
@ -20,7 +20,6 @@ public class TSProjectConsumer implements ConfigurationConsumer {
|
|||
private static final String TS_CONDITION = "@@if_";
|
||||
public static final String SETTING_CONTEXT_HELP_END = "SettingContextHelpEnd";
|
||||
public static final String SETTING_CONTEXT_HELP = "SettingContextHelp";
|
||||
public static String TS_FILE_OUTPUT_NAME = "rusefi.ini";
|
||||
|
||||
private final CharArrayWriter tsWriter;
|
||||
private final String tsPath;
|
||||
|
@ -133,8 +132,8 @@ public class TSProjectConsumer implements ConfigurationConsumer {
|
|||
return token;
|
||||
}
|
||||
|
||||
public static String getTsFileOutputName(String tsPath) {
|
||||
return tsPath + File.separator + TS_FILE_OUTPUT_NAME;
|
||||
private String getTsFileOutputName(String tsPath) {
|
||||
return tsPath + File.separator + state.tsFileOutputName;
|
||||
}
|
||||
|
||||
public static String getTsFileInputName(String tsPath) {
|
||||
|
|
Loading…
Reference in New Issue