You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ah...@apache.org on 2007/03/25 23:14:56 UTC

svn commit: r522351 - in /maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test: maven.xml src/main/mdo/model.mdo

Author: aheritier
Date: Sun Mar 25 14:14:55 2007
New Revision: 522351

URL: http://svn.apache.org/viewvc?view=rev&rev=522351
Log:
test xmlns and targetNamespace in generated schema

Modified:
    maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/maven.xml
    maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/src/main/mdo/model.mdo

Modified: maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/maven.xml
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/maven.xml?view=diff&rev=522351&r1=522350&r2=522351
==============================================================================
--- maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/maven.xml (original)
+++ maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/maven.xml Sun Mar 25 14:14:55 2007
@@ -47,6 +47,8 @@
   <goal name="testSite"  prereqs="site">
     <assert:assertFileExists file="${maven.gen.docs}/${maven_modello_model_id}.xml"/>
     <assert:assertFileExists file="${maven.gen.docs}/${maven_modello_model_id}-${maven.modello.version}.xsd"/>
+    <assert:assertFileContains file="${maven.gen.docs}/${maven_modello_model_id}-${maven.modello.version}.xsd" match="xmlns=&quot;http://maven.apache.org/POM/3.0.0&quot;" msg="xmlns invalid in schema"/>
+    <assert:assertFileContains file="${maven.gen.docs}/${maven_modello_model_id}-${maven.modello.version}.xsd" match="targetNamespace=&quot;http://maven.apache.org/POM/3.0.0&quot;" msg="targetNamespace invalid in schema"/>
     <assert:assertFileExists file="${maven.docs.dest}/${maven_modello_model_id}.html"/>
     <assert:assertFileExists file="${maven.docs.dest}/${maven_modello_model_id}-${maven.modello.version}.xsd"/>
   </goal>

Modified: maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/src/main/mdo/model.mdo
URL: http://svn.apache.org/viewvc/maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/src/main/mdo/model.mdo?view=diff&rev=522351&r1=522350&r2=522351
==============================================================================
--- maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/src/main/mdo/model.mdo (original)
+++ maven/maven-1/plugins-sandbox/trunk/modello/src/plugin-test/src/main/mdo/model.mdo Sun Mar 25 14:14:55 2007
@@ -23,7 +23,7 @@
  |   definition of these types
  |
  -->
-<model>
+<model xsd.namespace="http://maven.apache.org/POM/3.0.0" xsd.target-namespace="http://maven.apache.org/POM/3.0.0" jpox.column-prefix="COL_" jpox.table-prefix="TABLE_">
   <id>maven</id>
   <name>Maven</name>
   <description><![CDATA[