what president was office during revolutionary war?