[
https://jira.codehaus.org/browse/MJAXB-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283886#comment-283886
]
Lennart Jörelid edited comment on MJAXB-55 at 11/20/11 8:52 PM:
----------------------------------------------------------------
Attached a newer patch, providing support for configuring multiple schema
namespaces. For each namespace, the following can be set:
* changing the name of the output schema file
** The "schemaX.xsd" file name can be replaced by an arbitrary name. The ".xsd"
suffix is automatically appended, so not necessary to supply within the plugin
configuration.
** All schemaLocation attributes are altered within schema import elements to
refer to the new file names, as needed to keep consistency.
* changing the xmlns prefix within the XSD for each namespace
** The "nsX" namespace can be replaced by an arbitrary value. This yields
appropriate xmlns:[whatever]="[namespace uri]" definitions within the schema
header
** All namespace prefixes in elements are altered to keep consistency.
** All ref attribute values are altered to keep consistency.
Couldn't find the IDEA codestyle definition used by yourselves; please point me
in the right direction to find it.
Until found, you will need to reformat all source code within your IDEs.
The patch is diff'ed from trunk.
was (Author: [email protected]):
Better patch, dealing with the problems of multiple schemas, filenames and
prefixes.
> Provide means to set the file name of generated XML schema
> ----------------------------------------------------------
>
> Key: MJAXB-55
> URL: https://jira.codehaus.org/browse/MJAXB-55
> Project: Maven 2.x JAXB 2.1 Plugin
> Issue Type: New Feature
> Affects Versions: 1.3.1
> Environment: All
> Reporter: Lennart Jörelid
> Assignee: Anders Hammar
> Attachments: fileRenamePatch_v2.diff
>
>
> AbstractSchemagenMojo sneakily hard-codes the resulting filename for the
> generated schema file.
> This should really be configurable; provided a parameter to set the resulting
> file name, as well as an integration test.
> For reasons of somewhat misguided backwards compatibility, I set the default
> value of the parameter to its currently hardcoded value, "schema1.xsd".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email