You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2020/06/15 13:27:59 UTC

[activemq-artemis] 03/08: ARTEMIS-2109: Apply modified version of Franz artemis-dto xsd workaround from #2720

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit 36dbfd9ae65cc457c6ee4f6345c8d21f7071c5bb
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Tue Jun 9 16:51:57 2020 +0100

    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.
---
 artemis-dto/pom.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/artemis-dto/pom.xml b/artemis-dto/pom.xml
index 7646375..1f2bf55 100644
--- a/artemis-dto/pom.xml
+++ b/artemis-dto/pom.xml
@@ -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>