make 'b' and 'cl' better - use functions to build for either ant or maven