Steps to reproduce: With dev-java/xjavac-20041208-r5 emerged: # emerge dev-java/xerces-2.9.1 Error message: /var/tmp/portage/dev-java/xerces-2.9.1/work/xerces-2_9_1/build.xml:14: taskdef class org.apache.xerces.util.XJavac cannot be found The jar containing the appropriate taskdef is "/usr/share/xjavac-1/lib/xjavac.jar"; modifying xerces' build.xml, ln. 16, "<pathelement location="${tools.dir}/bin/xjavac.jar" ></pathelement>" fixes the build. Note that xjavac is missing from the ebuild environment variable "EANT_GENTOO_CLASSPATH".
works fine here with icedtea6. what jdk are you using to build xerces? also, did you try to re-emerge xjavac? and what arch are you on?
I apologize that my bug report wasn't particularly thorough. I am using amd64, and I did try re-emerging xjavac and the problem persisted. I am using Sun JDK 1.6.0.22 [sun-jdk-1.6] (java-config -L confirms that it's selected)
i still cannot reproduce the issue. tested on ~amd64 with sun-jdk-1.6.0.23 and ant 1.8.1. xjavac ant task should be pulled on path by ant so modifying build.xml is not fix but rather workaround. what version of ant do you have?
(In reply to comment #0) > Steps to reproduce: > With dev-java/xjavac-20041208-r5 emerged: > # emerge dev-java/xerces-2.9.1 > > Error message: > /var/tmp/portage/dev-java/xerces-2.9.1/work/xerces-2_9_1/build.xml:14: > taskdef class org.apache.xerces.util.XJavac cannot be found > > The jar containing the appropriate taskdef is > "/usr/share/xjavac-1/lib/xjavac.jar"; modifying xerces' build.xml, ln. 16, > "<pathelement location="${tools.dir}/bin/xjavac.jar" ></pathelement>" fixes > the build. > > Note that xjavac is missing from the ebuild environment variable > "EANT_GENTOO_CLASSPATH". xjavac doesn't belong into EANT_GENTOO_CLASSPATH and this all should work as is. I faintly remember old taskdef task not liking non-existent jars, so I'm not sure about it. Either way, changed the taskdef to no reference a jar at all. *xerces-2.11.0 (26 May 2012) 26 May 2012; Ralph Sennhauser <sera@gentoo.org> +xerces-2.11.0.ebuild, +files/xerces-2.11.0-build.xml.patch: Security bump. #280611 Don't let taskdef point to non-existent jar. #351394