When I compile a project with ant passing -Xlint:all to the compiler, even with ANT_TASKS=none I get the following error messages: [javac] warning: [path] bad path element "/usr/share/ant-core/lib/xml-apis.jar": no such file or directory [javac] warning: [path] bad path element "/usr/share/ant-core/lib/xercesImpl.jar": no such file or directory [javac] warning: [path] bad path element "/usr/share/ant-core/lib/xalan.jar": no such file or directory I guess this is because /usr/share/ant-core/lib/ant-bootstrap.jar contains the following line in its manifest: Class-Path: ant.jar xml-apis.jar xercesImpl.jar xalan.jar If I set ANT_TASKS=all, I get even more such warnings. /usr/share/xalan/lib/xalan.jar also references xercesImpl.jar and xml-apis.jar, while /usr/share/javacup/lib/javacup.jar references java-cup-11a-runtime.jar instead of javacup-runtime.jar. I don't know if there is any easy way to avoid these problems, if maybe simply modifying that manifest is an option. I do know, however, that enabling warnings is a good idea, and seeing warnings for every build is annoying and tends to get you used to ignoring warnings, which I consider a bad thing.
Created attachment 138479 [details] Demo build file Simple test file demonstrating the issue. Run in an otherwise empty dir, with whatever settings for GENTOO_VM or ANT_TASKS you like.
To solve this I think we need to automatically remove or rewrite the Class-Path entries in our eclasses so might take a while before anything gets implemented.
We not have dev-java/ant-core-1.7 in the tree anymore. Is this still in dev-java/ant-core-1.9.2?