Taiwan preparing for when — not if — China launches military attack: minister