sentence: following the outbreak of the napoleonic wars in 1803 , the british admiralty had made the security of these routes a priority , and by 1807 the dutch bases at the cape of good hope and java had been neutralised by expeditionary forces to prevent their use by enemy raiders .