Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java xbean的inst2xsd:生成int而不是short/byte_Java_Xml_Xsd - Fatal编程技术网

Java xbean的inst2xsd:生成int而不是short/byte

Java xbean的inst2xsd:生成int而不是short/byte,java,xml,xsd,Java,Xml,Xsd,有人知道如何配置inst2xsd来生成int而不是byte或short吗? 我使用-simple内容类型智能默认选项 另见 10倍,尽快:-发布我的解决方案,因为需求量很大: generateXSD.bat: compile.bat: 蚂蚁目标: 现在回到我身边。我骑在马上 inst2xsd -outDir xsd -outPrefix mySchema my.xml scomp -compiler "path_to\javac" -src mySrcDir -out lib\mySchema

有人知道如何配置inst2xsd来生成int而不是byte或short吗? 我使用-simple内容类型智能默认选项

另见


10倍,尽快:-

发布我的解决方案,因为需求量很大:

generateXSD.bat: compile.bat: 蚂蚁目标: 现在回到我身边。我骑在马上

inst2xsd -outDir xsd -outPrefix mySchema my.xml
scomp -compiler "path_to\javac" -src mySrcDir -out lib\mySchema.jar xsd\mySchema.xsd xsdconfig\my.xsdconfig
<target name="xbean">
    <exec executable="cmd" dir="xbean">
        <arg value="/c"/>
        <arg value="generateXSD.bat"/>
        <arg value="-p"/>
    </exec>
    <replace file="xbean/xsd/mySchema.xsd" summary="yes">
        <replacefilter token="xs:byte" value="xs:int"/>
        <replacefilter token="xs:short" value="xs:int"/>
    </replace>
    <exec executable="cmd" dir="xbean">
        <arg value="/c"/>
        <arg value="compile.bat"/>
        <arg value="-p"/>
    </exec>
</target>