Use if statement instead of switch for older source level build using
ant