refactoring - splitting class a bit further
This commit is contained in:
parent
26a70b8107
commit
462d0742d5
Binary file not shown.
|
@ -136,7 +136,7 @@ public class ConfigDefinition {
|
||||||
String keyName = args[i + 1];
|
String keyName = args[i + 1];
|
||||||
// yes, we take three parameters here thus pre-increment!
|
// yes, we take three parameters here thus pre-increment!
|
||||||
String fileName = args[++i + 1];
|
String fileName = args[++i + 1];
|
||||||
state.variableRegistry.register(keyName, IoUtil.readFile(fileName));
|
state.variableRegistry.register(keyName, IoUtil2.readFile(fileName));
|
||||||
inputFiles.add(fileName);
|
inputFiles.add(fileName);
|
||||||
case KEY_FIRING:
|
case KEY_FIRING:
|
||||||
firingEnumFileName = args[i + 1];
|
firingEnumFileName = args[i + 1];
|
||||||
|
@ -198,7 +198,7 @@ public class ConfigDefinition {
|
||||||
|
|
||||||
ParseState parseState = new ParseState(state.enumsReader);
|
ParseState parseState = new ParseState(state.enumsReader);
|
||||||
// Add the variable for the config signature
|
// Add the variable for the config signature
|
||||||
long crc32 = IoUtil.signatureHash(state, parseState, tsInputFileFolder, inputFiles);
|
long crc32 = IoUtil2.signatureHash(state, parseState, tsInputFileFolder, inputFiles);
|
||||||
|
|
||||||
ExtraUtil.handleFiringOrder(firingEnumFileName, state.variableRegistry, parseState);
|
ExtraUtil.handleFiringOrder(firingEnumFileName, state.variableRegistry, parseState);
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import java.nio.file.Files;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.zip.CRC32;
|
import java.util.zip.CRC32;
|
||||||
|
|
||||||
public class IoUtil {
|
public class IoUtil2 {
|
||||||
static String readFile(String fileName) {
|
static String readFile(String fileName) {
|
||||||
String line;
|
String line;
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
StringBuilder stringBuilder = new StringBuilder();
|
Loading…
Reference in New Issue