users@jaxb.java.net

Specify output file name with schemagen ant

From: Jeevandra Sivarajah <jeevandras_at_hotmail.com>
Date: Wed, 5 Nov 2008 02:19:12 +0800

Hi,
I am trying to specify the filename output for ant schemagen, but I keep getting schemagen writing the schema into file schema1.xsd
The following is my ant entry

<target name="-post-compile">
        <!-- Empty placeholder for easier customization. -->
        <!-- You can override this target in the ../build.xml file. -->
        <schemagen srcdir="src/myfolder/ui/model" destdir="build/schemas" >
            <schema namespace="http://mydomain.com/ui/model" file ="DataInputUIModel.xsd"/>
        </schemagen>
        <schemagen srcdir="src/myfolder/data/model" destdir="build/schemas" >
            <schema file ="DataInputModel.xsd" namespace="http://mydomain.com/data/ui/model" />
        </schemagen>
 </target>

But I keep getting the following from my netbeans

Generating schema from 12 source files
Note: Writing C:\Program Files\NetBeans 6.1\schema1.xsd
Generating schema from 1 source file
Note: Writing C:\Program Files\NetBeans 6.1\schema1.xsd
 

Any idea whats wrong? Thanks!

Jeev

_________________________________________________________________
Easily publish your photos to your Spaces with Photo Gallery.
http://get.live.com/photogallery/overview