fix ant build permissions setup, formatting