Startup
This commit is contained in:
@@ -292,6 +292,8 @@ public class TestingList extends Panel {
|
||||
public final Path TESTS_LOG_DEFAULT_DIR = Paths.get(".", "home", "script", "tests", "log", "TestsLog" + getnow() + ".txt");
|
||||
public static String TESTS_CONFIG_FILENAME = ".config";
|
||||
public static String TESTS_HELP_FILENAME = "help.html";
|
||||
public static String VALUE_SEPARATOR = "|";
|
||||
public static String PARAM_SEPARATOR = ";";
|
||||
|
||||
|
||||
/**
|
||||
@@ -2477,15 +2479,16 @@ public class TestingList extends Panel {
|
||||
HashMap mParameters = new HashMap(); // contains name and attributes
|
||||
HashMap mParameterAttributes = new HashMap(); //contians value and description
|
||||
String[] dsParameterAttributes = null;
|
||||
String[] dsParameters = parametersString.split(";");
|
||||
String[] dsParameters = parametersString.split(PARAM_SEPARATOR);
|
||||
for (String sParameter : dsParameters) {
|
||||
dsParameterAttributes = sParameter.split(":");
|
||||
dsParameterAttributes = sParameter.split(VALUE_SEPARATOR);
|
||||
if (dsParameterAttributes.length > 2) {
|
||||
mParameterAttributes = new HashMap();
|
||||
mParameterAttributes.put("value", (Object) dsParameterAttributes[1]);
|
||||
mParameterAttributes.put("description", dsParameterAttributes[2]);
|
||||
//add parameter name and attributes (value + description)
|
||||
mParameters.put(dsParameterAttributes[0], mParameterAttributes);
|
||||
System.out.println(dsParameterAttributes[0] + dsParameterAttributes[1] + dsParameterAttributes[2]);
|
||||
}
|
||||
}
|
||||
return mParameters;
|
||||
|
||||
Reference in New Issue
Block a user