Skip to content

Commit

Permalink
ARTEMIS-2109: Apply modified version of Franz artemis-dto xsd workaro…
Browse files Browse the repository at this point in the history
…und 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.
  • Loading branch information
gemmellr committed Jun 11, 2020
1 parent d2c4676 commit 36dbfd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions artemis-dto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@
<exclude name="**/.git/**" />
<exclude name="**/.svn/**" />
</schemagen>
<condition property="schema-namespace-replace-token" value="xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;"
else="xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;">
<resourcecontains resource="${project.build.directory}/schema/org.apache.activemq/dto/activemq.xsd" substring="&lt;schema elementFormDefault" />
</condition>
<replace file="${project.build.directory}/schema/org.apache.activemq/dto/activemq.xsd"
token="xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;"
value="${schema-namespace-replace-token}"/>
<copy todir="${project.build.directory}/classes">
<fileset dir="${project.build.directory}/schema" />
</copy>
Expand Down

0 comments on commit 36dbfd9

Please sign in to comment.