Joshua waged war with all these kings for a long time. 