Israel's defence minister says that the offensive in Gaza will continue 'as long as necessary to stop the Hamas rocket attacks.