ClassGenerator clears output dir before generation.