You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Johannes Echterhoff <Jo...@gmx.de> on 2007/03/01 09:11:23 UTC
Re: Namespace, Pre- and Suffix with Anttask?
Hi.
On a wild guess: include the xsdconfig in the files list of the anttask,
something like:
<xmlbean
destfile="${jar-fullpath}"
download="true"
failonerror="true"
classpath="../lib/xbean.jar"
...>
<fileset dir="${xsd.locations}">
<include name="**/*.xsd"/>
</fileset>
<fileset dir="xsdconfigdir" includes="your.xsdconfig"/>
</xmlbean>
As I said, I am not sure whether this works. Regards,
Johannes
Stefan Offermann schrieb:
> Hello,
>
> how can I create an anttask to compile an xmlbean and set the
> namespace, prefix and suffix like in an xsdconfig-file?
>
> example:
>
> <xb:config xmlns:xb="http://www.bea.com/2002/09/xbean/config">
> <xb:namespace uri="http://lehre.ifgi.de/idisplays2">
> <xb:prefix>Xml</xb:prefix>
> <xb:suffix>Bean</xb:suffix>
> </xb:namespace>
> </xb:config>
>
> My current ant-task:
>
> <target name="makebean" depends="clean">
> <mkdir dir="${deploy}" />
> <xmlbean
> schema="${schema-path}"
> destfile="${jar-fullpath}"
> download="true"
> failonerror="true"
> classpath="../lib/xbean.jar"
> />
> </target>
>
> Best regards, Stefan
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org