Adding dependencies to packages which install versioned JARs is tricky business. It involves requiring a specific version of the package, which isn't a good idea for packages which aren't slotted.
Created attachment 59179 [details] ant-contrib-1.0_beta1-r1.ebuild Renames the offending JAR files.
thanks, commited