sentence: the british had long maintained a naval presence in the region , but the outbreak of the napoleonic wars in 1803 diverted much of the british strength in the indian ocean to the dutch colonies of the cape of good hope and java and the french bases on île bonaparte and île de france , leaving the persian gulf and arabian sea largely undefended .