remove printStackTrace statements. Replace string concatenations with StringBuilder. move from ant to gradle