ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Jaxb task anyone?
Date Tue, 15 Oct 2002 19:24:10 GMT
Yes, I just realized that myself reading the doc... That just means we need
to switch all our DTDs to schemas!!! Hopefully the task is smart enough not
to re-generate the Java sources if the schema hasn't changed (do you know?).
Hard to say until I have schemas to test, since their task, as the rest of
the Jaxb code, is closed-source (except for the API classes though).

Again, thanks for the info. I can just scrap my own task (that's the second
task I write/augment that I have to scrap the same day, after Mkdir... Sigh)

--DD

PS: SUN shipping the Ant 1.5 JAR is not that great either IMHO.

-----Original Message-----
From: Glenn Kidd [mailto:GKidd@placeware.com] 
Sent: Tuesday, October 15, 2002 2:12 PM
To: 'Ant Users List'
Subject: RE: Jaxb task anyone?

The new release has drastic changes, no more dtd and xjs, instead they
switched to XML schemas...


Glenn

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Tuesday, October 15, 2002 12:08 PM
To: 'Ant Users List'
Subject: RE: Jaxb task anyone?


It's ironic I read your message seconds after the first commit of my very
own Jaxb task (see below).... Thanks! I'm checking out the SUN's task as I
write this. --DD 

/**
 * Compiles using SUN's JAXB Java &amp; XML Data Binding framework
 * a DTD with optionally a binding schema (XJS file).
 * <p>
 * Uses the &lt;dependset&gt; and &lt;java&gt; task internally to do most
 * of the work. Neither the DTD nor the binding schema are parsed, but
instead
 * the output of the Jaxb compiler is parsed to <em>learn</em> a posteriori
 * which files this combination of DTD and XJS files yields. This
information
 * is then cached for subsequent run to avoid unnecessary re-generation of
the
 * generated Java files. When lacking this cached information, this task
 * always runs the Jaxb compiler again.
 */
public class JaxbSchemaCompiler ...

-----Original Message-----
From: Glenn Kidd [mailto:GKidd@placeware.com] 
Sent: Tuesday, October 15, 2002 1:49 PM
To: 'Ant Users List'
Subject: RE: Jaxb task anyone?

This was posted 3 weeks ago.  I just noticed that sun releases a beta
implementation of JAXB (http://java.sun.com/xml/downloads/jaxb.html -
requires logon to download).  In it there is an ant task for the JAXB xjc.
Hope this helps.  


Glenn

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Tuesday, October 01, 2002 1:22 PM
To: 'ant-user@jakarta.apache.org'
Subject: Jaxb task anyone?


Has anyone wrapped SUN's jaxb com.sun.tools.xjc.Main into a task?
Or are people simply using <java> and/or <apply>?

Thanks, --DD

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message