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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to