You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dominique Devienne <dd...@gmail.com> on 2006/06/23 15:42:18 UTC
Re: Looking for a custom task for classes generation using Oracle Jaxb
I do, one that used SUN's jaxb. But since it was using <java
fork="true"> internally, most of the processing done should be easily
applicable to Oracle's Jaxb I suppose. I posted it in BugZilla a while
back. --DD
On 6/22/06, Antoine Levy-Lambert <an...@gmx.de> wrote:
> Hi,
>
> in the makes I am taking care now, we are using a macrodef built around oracle.xml.jaxb.orajaxb. It has 3 disadvantages :
>
> - *not* really failing on error,
> - when the XSD's are wrong, the error message is laconic
> - processes one schema at a time, not a complete fileset
>
> Anyone has a custom task to do this ?
>
> Regards,
>
> Antoine
>
> sample error message :
> XML-32009: (Fatal Error) Failed to parse the input schema.
>
> <java classname="oracle.xml.jaxb.orajaxb"
> fork="true"
> failonerror="true"
> maxmemory="128m"
> classpathref="orajaxb.path"
> output="logs/jaxb.log"
> append="true"
> logError="true"
> >
> <!-- Have to split arguments because schema path has space in it. -->
> <arg value="-outputDir"/>
> <arg value="@{outputDir}"/>
> <arg value="-schema"/>
> <arg value="@{schema}"/>
> <arg value="-targetPkg"/>
> <arg value="@{targetPkg}"/>
> </java>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Re: Looking for a custom task for classes generation using Oracle
Jaxb
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Dominique,
thanks for your help.
I have found your bugzilla record :
http://issues.apache.org/bugzilla/show_bug.cgi?id=14640
Regards,
Antoine
-------- Original-Nachricht --------
Datum: Fri, 23 Jun 2006 08:42:18 -0500
Von: Dominique Devienne <dd...@gmail.com>
An: Ant Users List <us...@ant.apache.org>
Betreff: Re: Looking for a custom task for classes generation using Oracle Jaxb
> I do, one that used SUN's jaxb. But since it was using <java
> fork="true"> internally, most of the processing done should be easily
> applicable to Oracle's Jaxb I suppose. I posted it in BugZilla a while
> back. --DD
>
> On 6/22/06, Antoine Levy-Lambert <an...@gmx.de> wrote:
> > Hi,
> >
> > in the makes I am taking care now, we are using a macrodef built around
> oracle.xml.jaxb.orajaxb. It has 3 disadvantages :
> >
> > - *not* really failing on error,
> > - when the XSD's are wrong, the error message is laconic
> > - processes one schema at a time, not a complete fileset
> >
> > Anyone has a custom task to do this ?
> >
> > Regards,
> >
> > Antoine
> >
> > sample error message :
> > XML-32009: (Fatal Error) Failed to parse the input schema.
> >
> > <java classname="oracle.xml.jaxb.orajaxb"
> > fork="true"
> > failonerror="true"
> > maxmemory="128m"
> > classpathref="orajaxb.path"
> > output="logs/jaxb.log"
> > append="true"
> > logError="true"
> > >
> > <!-- Have to split arguments because schema path has
> space in it. -->
> > <arg value="-outputDir"/>
> > <arg value="@{outputDir}"/>
> > <arg value="-schema"/>
> > <arg value="@{schema}"/>
> > <arg value="-targetPkg"/>
> > <arg value="@{targetPkg}"/>
> > </java>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org