Skip to content
Snippets Groups Projects
Commit 5fbee2a5 authored by david_williams's avatar david_williams
Browse files

283792 read properties for versioning tests

parent d7617c05
No related branches found
No related tags found
No related merge requests found
...@@ -512,12 +512,34 @@ public class BuildTests extends TestCase { ...@@ -512,12 +512,34 @@ public class BuildTests extends TestCase {
System.out.println("relengTestsPropertiesFile does not exist"); System.out.println("relengTestsPropertiesFile does not exist");
} }
ArrayList argsList = new ArrayList();
String[] args = new String[]{qualifierArg, testToReferenceArg, referenceIDArg, referenceURLArg, listToReferenceFileArg}; if (validValue(qualifierArg)) {
argsList.add(qualifierArg);
}
if (validValue(testToReferenceArg)) {
argsList.add(testToReferenceArg);
}
if (validValue(referenceIDArg)) {
argsList.add(referenceIDArg);
}
if (validValue(referenceURLArg)) {
argsList.add(referenceURLArg);
}
if (validValue(listToReferenceFileArg)) {
argsList.add(listToReferenceFileArg);
}
String[] args = (String[]) argsList.toArray(new String[]{});
return args; return args;
} }
private boolean validValue(String arg) {
if (arg != null)
return true;
return false;
}
/** /**
* This method does not really test anything, be itself (yet) it just uses * This method does not really test anything, be itself (yet) it just uses
* a URL connection to access the internet just to make sure it is logged. * a URL connection to access the internet just to make sure it is logged.
......
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