}
System.out.println("Disclaimer: Not all devices support all actions!");
while(iter.hasNext()){
i++;
// move iterator on forward
IBuildStatusIndicator ibsi = (IBuildStatusIndicator) iter.next();
// two distinct different usecases: 1) test ALL devices 2) test the matching one
if(all == true || i == toMatch) {
if(action == null) {
// iterate through all colors and name the device
System.out.println("Testing eXtreme Feedback Device: ["+toMatch+"] "+ibsi.getComponentId() + ":" + ibsi.getIndicatorId());
System.out.println(ibsi.toString());
// invoke the device...
indicate(StatusAction.SUCCESS, ibsi, true);
indicate(StatusAction.WARNING, ibsi, true);
indicate(StatusAction.BUILDING, ibsi, true);
indicate(StatusAction.FAILURE, ibsi, true);
indicate(StatusAction.OFF, ibsi, true);
} else {
// only show one specific status action
System.out.println("indicating " + action + " on eXtreme Feedback Device: "+toMatch);
ibsi.indicate(StatusAction.get(action));
}
// the match is relevant, no matter where we are
match = true;
if(!all){
// prevent the break out of the loop in case we iterate through all