toolset progress
This commit is contained in:
parent
7882e9b2e1
commit
9d240fd536
|
@ -55,7 +55,7 @@ public class ConfigDefinition {
|
||||||
return LazyFile.LAZY_FILE_TAG + "ConfigDefinition.jar based on " + TOOL + " ";
|
return LazyFile.LAZY_FILE_TAG + "ConfigDefinition.jar based on " + TOOL + " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) {
|
||||||
try {
|
try {
|
||||||
doJob(args);
|
doJob(args);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
@ -104,6 +104,7 @@ public class ConfigDefinition {
|
||||||
// disable the lazy checks because we use timestamps to detect changes
|
// disable the lazy checks because we use timestamps to detect changes
|
||||||
LazyFile.setLazyFileEnabled(false);
|
LazyFile.setLazyFileEnabled(false);
|
||||||
|
|
||||||
|
EnumsReader enumsReader = new EnumsReader();
|
||||||
for (int i = 0; i < args.length - 1; i += 2) {
|
for (int i = 0; i < args.length - 1; i += 2) {
|
||||||
String key = args[i];
|
String key = args[i];
|
||||||
if (key.equals("-tool")) {
|
if (key.equals("-tool")) {
|
||||||
|
@ -145,6 +146,9 @@ public class ConfigDefinition {
|
||||||
// don't add this file to the 'inputFiles'
|
// don't add this file to the 'inputFiles'
|
||||||
} else if (key.equals(KEY_SIGNATURE_DESTINATION)) {
|
} else if (key.equals(KEY_SIGNATURE_DESTINATION)) {
|
||||||
signatureDestination = args[i + 1];
|
signatureDestination = args[i + 1];
|
||||||
|
} else if (key.equals(EnumToString.KEY_ENUM_INPUT_FILE)) {
|
||||||
|
String inputFile = args[i + 1];
|
||||||
|
enumsReader.process(".", inputFile);
|
||||||
} else if (key.equals(KEY_CACHE)) {
|
} else if (key.equals(KEY_CACHE)) {
|
||||||
cachePath = args[i + 1];
|
cachePath = args[i + 1];
|
||||||
} else if (key.equals(KEY_CACHE_ZIP_FILE)) {
|
} else if (key.equals(KEY_CACHE_ZIP_FILE)) {
|
||||||
|
@ -280,7 +284,7 @@ public class ConfigDefinition {
|
||||||
return getMd5(content);
|
return getMd5(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void readPrependValues(VariableRegistry registry, String prependFile) throws IOException {
|
public static void readPrependValues(VariableRegistry registry, String prependFile) throws IOException {
|
||||||
BufferedReader definitionReader = new BufferedReader(new FileReader(prependFile));
|
BufferedReader definitionReader = new BufferedReader(new FileReader(prependFile));
|
||||||
String line;
|
String line;
|
||||||
while ((line = definitionReader.readLine()) != null) {
|
while ((line = definitionReader.readLine()) != null) {
|
||||||
|
@ -293,7 +297,6 @@ public class ConfigDefinition {
|
||||||
if (startsWithToken(line, ReaderState.DEFINE)) {
|
if (startsWithToken(line, ReaderState.DEFINE)) {
|
||||||
processDefine(registry, line.substring(ReaderState.DEFINE.length()).trim());
|
processDefine(registry, line.substring(ReaderState.DEFINE.length()).trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue