refactor(tasks): WIP - add tests for java and ant build, refactor tasks