what american president was in the office during the revolutionary war?