Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188009 - dev-java/ant-jaxb: new package
Summary: dev-java/ant-jaxb: new package
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL: https://jaxb.dev.java.net/2.1.4/docs/...
Whiteboard:
Keywords:
Depends on: 566232
Blocks:
  Show dependency tree
 
Reported: 2007-08-07 13:09 UTC by Martin von Gagern
Modified: 2016-03-08 22:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ant-jaxb-2.1.4.ebuild Version 1 (ant-jaxb-2.1.4.ebuild,980 bytes, text/plain)
2007-08-07 18:05 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2007-08-07 13:09:19 UTC
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_
Comment 1 Martin von Gagern 2007-08-07 13:18:43 UTC
Cross references:
bug 188007 about bumping jaxb to 2.1.4
bug 188011 about adding the schemagen command line tool
Comment 2 Martin von Gagern 2007-08-07 18:05:47 UTC
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.
Comment 3 Martin von Gagern 2007-08-07 18:29:51 UTC
(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.
Comment 4 Patrice Clement gentoo-dev 2015-01-25 11:06:46 UTC
Any update since 2007? Do we want this ebuild to make it into the tree? You know the drill: comment or close.
Comment 5 Patrice Clement gentoo-dev 2016-03-08 22:58:42 UTC
jaxb has been removed.