You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by st...@apache.org on 2004/10/06 10:02:52 UTC
cvs commit: gump/tools externals.xslt
stefano 2004/10/06 01:02:52
Modified: . validate
dtd project.dtd
profile gump.xml
Added: project jakarta-commons-sandbox-grant.xml
jakarta-commons-sandbox-vfs.xml
tools externals.xslt
Log:
added the ability to validate the external metadata as well.
forrest is the only ASF dataset that doesn't validate (has a lot of non-standard descriptive tags that are just not useful for gump today). the other three don't validate because of a limitation of the validation script (since they don't start with an XML declaration) I'll think about something smarter than 'sed' to apply the DOCTYPE on the fly tomorrow
Revision Changes Path
1.2 +9 -1 gump/validate
Index: validate
===================================================================
RCS file: /home/cvs/gump/validate,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- validate 6 Oct 2004 07:06:19 -0000 1.1
+++ validate 6 Oct 2004 08:02:52 -0000 1.2
@@ -20,7 +20,7 @@
xmllint --valid --noout ./tmp/$file
done
-echo " ======== Processing Projects ============ "
+echo " ======== Processing Local Projects ============ "
if [ ! -f ./tmp/project ] ; then
mkdir -p tmp/project
fi
@@ -28,6 +28,14 @@
sed -e '2i\
<!DOCTYPE module SYSTEM "../../dtd/project.dtd">' < $file > ./tmp/$file ;
xmllint --valid --noout ./tmp/$file
+done
+
+echo " ======== Processing External Projects ============ "
+for file in `xsltproc ./tools/externals.xslt ./profile/gump.xml | sed -e '1d'`; do
+ echo "fetching $file..."
+ curl -s $file | sed -e '2i\
+<!DOCTYPE module SYSTEM "../../dtd/project.dtd">' > ./tmp/project/`basename $file`
+ xmllint --valid --noout ./tmp/project/`basename $file`
done
rm -rf tmp
1.6 +4 -2 gump/dtd/project.dtd
Index: project.dtd
===================================================================
RCS file: /home/cvs/gump/dtd/project.dtd,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- project.dtd 6 Oct 2004 07:06:20 -0000 1.5
+++ project.dtd 6 Oct 2004 08:02:52 -0000 1.6
@@ -37,7 +37,8 @@
<!ATTLIST project
name CDATA #REQUIRED
fullname CDATA #IMPLIED
- language CDATA #IMPLIED >
+ language CDATA #IMPLIED
+ status CDATA #IMPLIED >
<!ATTLIST ant
target CDATA #IMPLIED
@@ -61,7 +62,8 @@
project CDATA #IMPLIED
property CDATA #IMPLIED
reference CDATA #IMPLIED
- runtime CDATA #IMPLIED >
+ runtime CDATA #IMPLIED
+ type CDATA #IMPLIED >
<!ATTLIST option
project CDATA #REQUIRED
1.409 +4 -6 gump/profile/gump.xml
Index: gump.xml
===================================================================
RCS file: /home/cvs/gump/profile/gump.xml,v
retrieving revision 1.408
retrieving revision 1.409
diff -u -r1.408 -r1.409
--- gump.xml 5 Oct 2004 17:54:18 -0000 1.408
+++ gump.xml 6 Oct 2004 08:02:52 -0000 1.409
@@ -84,8 +84,8 @@
<module href="project/jakarta-commons-codec-11.xml"/>
<module href="project/commons-httpclient-2.0-branch.xml"/>
<module href="project/jakarta-commons-sandbox.xml"/>
- <module href="http://cvs.apache.org/viewcvs/~checkout~/jakarta-commons-sandbox/grant/gump.xml"/>
- <module href="http://cvs.apache.org/viewcvs/~checkout~/jakarta-commons-sandbox/vfs/gump.xml"/>
+ <module href="project/jakarta-commons-sandbox-grant.xml"/>
+ <module href="project/jakarta-commons-sandbox-vfs.xml"/>
<module href="project/jakarta-ecs.xml"/>
<module href="project/jakarta-hivemind.xml"/>
<module href="project/jakarta-jetspeed.xml"/>
@@ -104,7 +104,6 @@
<module href="project/jakarta-slide.xml"/>
<module href="project/struts.xml"/>
<module href="project/jakarta-tapestry.xml"/>
- <!--module href="http://cvs.apache.org/viewcvs/~checkout~/jakarta-tapestry/support/gump.xml"/-->
<module href="project/jakarta-taglibs.xml"/>
<module href="project/jstl-jsp-12.xml"/>
<module href="project/jakarta-turbine-2.xml"/>
@@ -177,7 +176,6 @@
<!-- SourceForge -->
-
<module href="project/beanshell.xml"/>
<module href="project/beepcore.xml"/>
<module href="project/checkstyle.xml"/>
@@ -219,8 +217,8 @@
<module href="project/xmlunit.xml"/>
<module href="project/xml-im-exporter.xml"/>
<module href="project/junit-addons.xml"/>
- <module href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ant-contrib/ant-contrib/src/etc/gump-descriptor.xml?content-type=text/xml&rev=HEAD" />
- <module href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ant-contrib/cpptasks/src/etc/gump-descriptor.xml?content-type=text/xml&rev=HEAD" />
+ <module href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/ant-contrib/ant-contrib/src/etc/gump-descriptor.xml" />
+ <module href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/ant-contrib/cpptasks/src/etc/gump-descriptor.xml" />
<!--module href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ldapd/ldapd-common/gump.xml?rev=HEAD&content-type=text/xml"/-->
<!-- module href="http://cvs.werken.com/viewcvs.cgi/werkz/gump.xml?rev=HEAD&cvsroot=werkz"/ -->
1.1 gump/project/jakarta-commons-sandbox-grant.xml
Index: jakarta-commons-sandbox-grant.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<module name="commons-grant">
<description>Commons Grant</description>
<url href="http://jakarta.apache.org/commons/sandbox/grant/"/>
<cvs module="jakarta-commons-sandbox/grant" repository="jakarta"/>
<project name="commons-grant">
<ant buildfile="build.xml" target="dist">
<property name="final.name" value="commons-grant-@@DATE@@"/>
</ant>
<package>org.apache.commons.grant</package>
<depend project="jakarta-ant"/>
<depend project="junit"/>
<depend project="xml-xerces"/>
<work nested="target/classes"/>
<home nested="target"/>
<jar name="commons-grant-@@DATE@@.jar"/>
<javadoc module="jakarta-commons-sandbox" nested="target/docs/apidocs"/>
<nag to="commons-dev@jakarta.apache.org" from="commons-grant development <commons-dev@jakarta.apache.org>"/>
</project>
</module>
1.1 gump/project/jakarta-commons-sandbox-vfs.xml
Index: jakarta-commons-sandbox-vfs.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<module name="commons-vfs">
<description>Commons VFS</description>
<url href="http://jakarta.apache.org/commons/sandbox/vfs/"/>
<cvs module="jakarta-commons-sandbox/vfs" repository="jakarta"/>
<project name="commons-vfs">
<ant buildfile="build.xml" target="dist">
<property name="final.name" value="commons-vfs-@@DATE@@"/>
</ant>
<package>org.apache.commons.vfs</package>
<depend project="ant"/>
<depend project="junit"/>
<depend project="xml-xerces"/>
<depend project="commons-logging"/>
<depend project="commons-collections"/>
<depend project="commons-compress"/>
<option project="commons-httpclient-2.0-branch"/>
<option project="commons-net"/>
<option project="slide-webdavclient" ids="client-webdavlib"/>
<option project="jcifs"/>
<option project="jsch"/>
<work nested="target/classes"/>
<home nested="target"/>
<jar name="commons-vfs-@@DATE@@.jar"/>
<javadoc module="jakarta-commons-sandbox" nested="target/docs/apidocs"/>
<nag to="commons-dev@jakarta.apache.org" from="commons-vfs development <commons-dev@jakarta.apache.org>"/>
</project>
</module>
1.1 gump/tools/externals.xslt
Index: externals.xslt
===================================================================
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output type="text"/>
<xsl:template match="module[contains(@href,'http://')]">
<xsl:value-of select="@href"/><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="text()"/>
</xsl:stylesheet>