CLASSPATH = "stuff" cd /somewhere/mycode && ant .... CLASSPATH won't affect ant as it only applies to the command it is part of, i.e. past the "&&" it's already forgotten. Reported upstream http://bugs.kde.org/show_bug.cgi?id=100813 (With a patch), but can be fixed locally with the same patch. Here's an ebuild which applies it and the patch.
Created attachment 64738 [details] Ebuild
Created attachment 64739 [details, diff] Patch
Sorry for the delay, the patch is now applied to kdevelop 3.2.3-r1 and 3.3.0_beta2-r1.