Support 1.6 and above via ant trick