Keep Your Powder Dry

What does the idiom “keep your powder dry” mean?

Definition: Do not attack until you are ready.

Example: There’s no point in launching the ad campaign while everyone’s out of town. Let’s keep our powder dry and wait until the campaign is in full swing.