ARTEMIS-2109: Apply modified version of Franz artemis-dto xsd workaround from #2720
updated to only cause a change if the generated schema element found isnt prefixed, i.e modifies xsd only when needed and not all the time.
This commit is contained in:
parent
d2c46762e8
commit
36dbfd9ae6
|
@ -108,6 +108,13 @@
|
|||
<exclude name="**/.git/**" />
|
||||
<exclude name="**/.svn/**" />
|
||||
</schemagen>
|
||||
<condition property="schema-namespace-replace-token" value="xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema""
|
||||
else="xmlns:xs="http://www.w3.org/2001/XMLSchema"">
|
||||
<resourcecontains resource="${project.build.directory}/schema/org.apache.activemq/dto/activemq.xsd" substring="<schema elementFormDefault" />
|
||||
</condition>
|
||||
<replace file="${project.build.directory}/schema/org.apache.activemq/dto/activemq.xsd"
|
||||
token="xmlns:xs="http://www.w3.org/2001/XMLSchema""
|
||||
value="${schema-namespace-replace-token}"/>
|
||||
<copy todir="${project.build.directory}/classes">
|
||||
<fileset dir="${project.build.directory}/schema" />
|
||||
</copy>
|
||||
|
|
Loading…
Reference in New Issue