This commit is contained in:
parent
27d22bba0c
commit
85a1ccb1ef
|
@ -1,5 +0,0 @@
|
|||
package com.rusefi;
|
||||
|
||||
public interface TsPageSize {
|
||||
int IMAGE_SIZE = 20000;
|
||||
}
|
Binary file not shown.
|
@ -82,7 +82,6 @@ public class ConfigDefinition {
|
|||
|
||||
VariableRegistry.INSTANCE.writeNumericsToFile(headerDestinationFolder);
|
||||
|
||||
writeTsSizeForJavaConsole(totalTsSize, javaConsolePath);
|
||||
processTextTemplate(inputPath + File.separator + ROM_RAIDER_XML, javaConsolePath + File.separator + ROM_RAIDER_XML);
|
||||
}
|
||||
|
||||
|
@ -127,28 +126,6 @@ public class ConfigDefinition {
|
|||
fw.close();
|
||||
}
|
||||
|
||||
// todo: re-implement using VariableRegistry and a template?
|
||||
private static void writeTsSizeForJavaConsole(int totalTsSize, String javaConsoleIoFolderPath) throws IOException {
|
||||
String fileName = javaConsoleIoFolderPath +
|
||||
File.separator + "io" +
|
||||
File.separator + "src" +
|
||||
File.separator + "com" +
|
||||
File.separator + "rusefi" +
|
||||
File.separator + "TsPageSize.java";
|
||||
File f = new File(fileName);
|
||||
|
||||
System.out.println("Writing for console to " + fileName);
|
||||
|
||||
FileWriter fw = new FileWriter(f);
|
||||
|
||||
fw.write("package com.rusefi;" + ConfigDefinition.EOL + ConfigDefinition.EOL);
|
||||
fw.write("public interface TsPageSize {" + ConfigDefinition.EOL);
|
||||
fw.write(" int IMAGE_SIZE = " + totalTsSize + ";" + ConfigDefinition.EOL);
|
||||
fw.write("}" + ConfigDefinition.EOL);
|
||||
|
||||
fw.close();
|
||||
}
|
||||
|
||||
private static TsFileContent readTsFile(String tsPath) throws IOException {
|
||||
BufferedReader r = new BufferedReader(new FileReader(tsPath + File.separator + TS_FILE_INPUT_NAME));
|
||||
|
||||
|
|
Loading…
Reference in New Issue