There are two ant tasks included in the binary release of jaxb which are not installed with dev-java/jaxb or dev-java/jaxb-tools. It seems like the sources for this are not included in the source jar files but only in the workspace snapshot zip bundle. So those tiny little tasks would need a 21MB source file whereas the existing jaxb packages build from 3.5MB source. The ant tasks are implemented in the classes com.sun.tools.xjc.XJCTask and com.sun.tools.jxc.SchemaGenTask References: https://jaxb.dev.java.net/2.1.4/docs/xjcTask.html https://jaxb.dev.java.net/2.1.4/docs/schemagenTask.html https://jaxb.dev.java.net/2.1.4/ https://jaxb.dev.java.net/2.1.4/jaxb-ri-2_1_4.src.zip https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html#Where_s_XJC_ant_task_
Cross references: bug 188007 about bumping jaxb to 2.1.4 bug 188011 about adding the schemagen command line tool
Created attachment 127188 [details] ant-jaxb-2.1.4.ebuild Version 1 There are only six files needed to compile these two ant tasks. The necessary 6kB tarball can be extracted from the 21MB zipfile like this: wget https://jaxb.dev.java.net/2.1.4/jaxb-ri-2_1_4.src.zip unzip jaxb-ri-2_1_4.src.zip jaxb-ri/xjc/facade/\*.java tar cvjf ant-jaxb-2.1.4.tar.bz2 jaxb-ri The attached ebuild uses the resulting tarball. As the nearest build file would be one level up and rather complex, with no single target for the ant tasks, I'd rather compile the sources manually.
(In reply to comment #2) > unzip jaxb-ri-2_1_4.src.zip jaxb-ri/xjc/facade/\*.java Maybe we should append jaxb-ri/docs/\* -x \*/CVS\* to include the whole documentation directory except for CVS dirs. Or package it into some extra jaxb-docs ebuild, since it contains interlinked documentation for different jaxb stuff. I'm not sure what would be the best approach here.
Any update since 2007? Do we want this ebuild to make it into the tree? You know the drill: comment or close.
jaxb has been removed.