I had to create fully custom build.xml's for ant to include my regular java libraries which do not exist as jar (general-api, musescore-api), as well as the toplevel rules to use these.