ant « jaxb « Java XML Q&A

Home
Java XML Q&A
1.convert
2.Development
3.document
4.dom
5.dom4j
6.dtd
7.element
8.jaxb
9.jaxp
10.jdom
11.jsoup
12.namespace
13.Node
14.parse
15.parser
16.pdf
17.sax
18.schema
19.stax
20.tag
21.transform
22.Validation
23.xalan
24.xmlbeans
25.xpath
26.xsd
27.xslt
28.xstream
Java XML Q&A » jaxb » ant 

1. How to execute the JAXB compiler from ANT    stackoverflow.com

I am using JAXB on a project. the attraction of JAXB is that it is bundled with the JDK, I have been to use xjc.exe on the command line to generate ...

2. JAXB: how to get sources annotated by @generated by ant task?    stackoverflow.com

Is there a way to pass the option -mark-generated, which is applicable to xjc.bat:

%JAXB_HOME%\bin\xjc.bat -mark-generated c:\TEMP\my.xsd
to the corresponding ant task?
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
   <classpath refid="classpath" />
</taskdef>

<xjc schema="my.xsd" destdir="src" package="gen.example">
  ...

3. JAXB Ant Task - Where to get JARs?    stackoverflow.com

There is a number of sources, explaining the JAXB Ant Task. For example, Oracle itself: http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/1.6/jaxb/ant.html. Apparently however, none of the sources seem to provide the JAXB libraries, particularly jaxb-xjc.jar, ...

4. JAXB with Ant: How to make XJCTask respect     stackoverflow.com

we are using Jaxb with different schema files that include some common parts. To build this we are using the Ant XJCTask from the JAXB distribution:

<xjc classpath="bin" removeOldOutput="yes" schema="main-schema.xsd" target="src" extension="true">
  ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.