gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ossf...@dubioso.net>
Subject validate script and Maven 2
Date Sun, 30 Dec 2007 08:25:19 GMT
Hi folks,

the validate script at [1] generates plenty of errors
for the project definitions that use the <mvn> tag.
Is it time to update the project.dtd [2]?

I got rid of all mvn-related errors by duplicating the
definition for the <maven> element as <mvn> and adding
attributes groupId and artifactId to the <depend> element.
See below for the patch. I'm also attaching it, in case
the longer lines get screwed up in the mail.

cheers,
  Roland

[1] https://svn.apache.org/repos/asf/gump/metadata/validate
[2] https://svn.apache.org/repos/asf/gump/metadata/dtd/project.dtd


Index: dtd/project.dtd
===================================================================
--- dtd/project.dtd	(revision 607521)
+++ dtd/project.dtd	(working copy)
@@ -22,10 +22,11 @@
     +-->

 <!ELEMENT module      ( url | description | nag | cvs | svn | p4 |
redistributable | project )* >
-<!ELEMENT project     ( ant | maven | nant | script | configure | make
+<!ELEMENT project     ( ant | maven | mvn | nant | script | configure | make
 | package | mkdir | depend | option | home | jar | delete | description |
work | license | nag | url | javadoc | junitreport | redistributable |
xmlreport )* >
 <!ELEMENT ant         ( property | depend | sysproperty | mkdir | jvmarg )* >
 <!ELEMENT maven       ( property | depend )* >
+<!ELEMENT mvn         ( property | depend )* >
 <!ELEMENT nag         ( regexp )* >
 <!ELEMENT javadoc     ( description )* >
 <!ELEMENT junitreport ( description )* >
@@ -81,6 +82,11 @@
   basedir   CDATA #IMPLIED
   goal      CDATA #IMPLIED >

+<!ATTLIST mvn
+  buildfile CDATA #IMPLIED
+  basedir   CDATA #IMPLIED
+  goal      CDATA #IMPLIED >
+
 <!ATTLIST script
   name      CDATA #IMPLIED
   basedir   CDATA #IMPLIED>
@@ -94,6 +100,8 @@
   basedir   CDATA #IMPLIED>

 <!ATTLIST depend
+  artifactId CDATA #IMPLIED
+  groupId    CDATA #IMPLIED
   id        CDATA #IMPLIED
   ids       CDATA #IMPLIED
   inherit   CDATA #IMPLIED

Mime
View raw message