Skip to content
Snippets Groups Projects
Commit 1c62203c authored by david_williams's avatar david_williams
Browse files

283792 read properties for versioning tests

parent 99258fb5
No related branches found
No related tags found
No related merge requests found
......@@ -6,3 +6,7 @@ qualifierArgValue=
referenceIDArgValue = R-3.1-20090616035105
referenceURLArgValue = http://archive.eclipse.org/webtools/downloads/drops/R3.1/R-3.1-20090616035105/versioningReference_R-3.1-20090616035105.xml
# omit to not test
testToReferenceArgValue=-testToReference
# omit to not list
listToReferenceFileArgValue=-listToReferenceFile
\ No newline at end of file
......@@ -494,10 +494,10 @@ public class BuildTests extends TestCase {
propertyStream = new FileInputStream(propFile);
testProperties.load(propertyStream);
qualifierArg = (String) testProperties.getProperty("qualifierArgValue", "");
testToReferenceArg = (String) testProperties.getProperty("testToReferenceArgValue", TEST_TO_REFERENCE);
testToReferenceArg = (String) testProperties.getProperty("testToReferenceArgValue", "");
referenceIDArg = (String) testProperties.getProperty("referenceIDArgValue", "");
referenceURLArg = (String) testProperties.getProperty("referenceURLArgValue", "");
listToReferenceFileArg = (String) testProperties.getProperty("listToReferenceFileArgValue", LIST_TO_REFERENCE_FILE);
listToReferenceFileArg = (String) testProperties.getProperty("listToReferenceFileArgValue", "");
}
catch (FileNotFoundException e) {
// just use defaults
......@@ -519,9 +519,6 @@ public class BuildTests extends TestCase {
if (validValue(testToReferenceArg)) {
argsList.add(testToReferenceArg);
}
else {
argsList.add(TEST_TO_REFERENCE);
}
if (validValue(referenceIDArg)) {
argsList.add(referenceIDArg);
}
......@@ -531,9 +528,6 @@ public class BuildTests extends TestCase {
if (validValue(listToReferenceFileArg)) {
argsList.add(listToReferenceFileArg);
}
else {
argsList.add(LIST_TO_REFERENCE_FILE);
}
String[] args = (String[]) argsList.toArray(new String[]{});
return args;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment