Customizing XSD type code generation to exclude types
You can customize the way PolicyCenter converts XSDs to internal bytecode, which is a process called code generation. By default, code generation happens for every XSD type. However, for better Studio performance, you can optionally omit code generation for some XSDs in some contexts or all contexts.
To customize XSD code generation, you can modify the following file:
PolicyCenter/modules/configuration/res/gwxmlmodule.xml
This one file controls code generation for all XSDs. The file contents look similar to the following:
<?xml version="1.0"?>
<module xmlns="http://guidewire.com/xml/module" name="ab-customer-build">
<dependencies>
<dependency name="pl"/>
<dependency name="ab"/>
</dependencies>
<settings>
<setting name="gx.product" value="ab"/>
<setting name="gx.use-gosu-enhancements" value="true"/>
</settings>
<excludes>
<!-- <pattern>path/to/schema.xsd</pattern> -->
</excludes>
<included-only>
<!-- <pattern>path/to/schema.xsd</pattern> -->
</included-only>
</module>
Gosu supports modifying the <excludes> and
<included-only> elements. All other changes are unsupported.
