/**
* add the assertions to a list in a format suitable
* for adding to a command line
* @param commandIterator list of commands
*/
/**
* add the assertions to a list in a format suitable
* for adding to a command line
* @param commandList the command line to format
*/
public void applyAssertions( [[#variable111f5120]] [[#variablefe5f900]] [[#variablefdef660]]) {
getProject().log("Applying assertions", Project.MSG_DEBUG);
Assertions clause = getFinalReference();
//do the system assertions
if (Boolean.TRUE.equals(clause.enableSystemAssertions)) {
getProject().log("Enabling system assertions", Project.MSG_DEBUG);
[[#variablefdef660]].add("-enablesystemassertions");
}
else
if (Boolean.FALSE.equals(clause.enableSystemAssertions)) {
getProject().log("disabling system assertions", Project.MSG_DEBUG);
[[#variablefdef660]].add("-disablesystemassertions");
}
//now any inner assertions
Iterator it = clause.assertionList.iterator();
while (it.hasNext()) {
BaseAssertion assertion = (BaseAssertion) it.next();
String arg = assertion.toCommand();
getProject().log("adding assertion " + arg, Project.MSG_DEBUG);
[[#variablefdef660]].add(arg);
}
}
|