You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2006/09/01 19:31:38 UTC
svn commit: r439391 - in /ant/antlibs/common/trunk: build.xml
contributors.xsl
Author: bodewig
Date: Fri Sep 1 10:31:38 2006
New Revision: 439391
URL: http://svn.apache.org/viewvc?rev=439391&view=rev
Log:
Add build.xml to source dist, create plain text version of contributors.xml on the fly
Added:
ant/antlibs/common/trunk/contributors.xsl (with props)
Modified:
ant/antlibs/common/trunk/build.xml
Modified: ant/antlibs/common/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/common/trunk/build.xml?rev=439391&r1=439390&r2=439391&view=diff
==============================================================================
--- ant/antlibs/common/trunk/build.xml (original)
+++ ant/antlibs/common/trunk/build.xml Fri Sep 1 10:31:38 2006
@@ -273,6 +273,7 @@
<include name="TODO"/>
<include name="WHATSNEW"/>
<include name="contributors.xml"/>
+ <include name="build.xml"/>
</fileset>
<fileset dir="common">
<include name="LICENSE"/>
@@ -288,11 +289,13 @@
<fixcrlf srcdir="${src.dist.dir}">
<include name="**/*.java"/>
</fixcrlf>
+
+ <xslt style="common/contributors.xsl" in="contributors.xml"
+ out="${src.dist.dir}/CONTRIBUTORS"/>
</target>
<target name="bin-dist" depends="checksum-target-jar,m2-pom">
<mkdir dir="${bin.dist.dir}"/>
- <mkdir dir="${bin.dist.dir}/etc"/>
<copy todir="${bin.dist.dir}">
<fileset dir=".">
@@ -310,9 +313,14 @@
<fileset file="${jarname}*"/>
<fileset file="${target.pom}"/>
</copy>
- <copy todir="${bin.dist.dir}/etc">
- <fileset dir="src/etc" excludes="testcases/"/>
+ <copy todir="${bin.dist.dir}/" includeemptydirs="false">
+ <fileset dir="src">
+ <include name="etc/"/>
+ <exclude name="etc/testcases/"/>
+ </fileset>
</copy>
+ <xslt style="common/contributors.xsl" in="contributors.xml"
+ out="${bin.dist.dir}/CONTRIBUTORS"/>
</target>
<target name="distribution" description="creates a complete distribution"
Added: ant/antlibs/common/trunk/contributors.xsl
URL: http://svn.apache.org/viewvc/ant/antlibs/common/trunk/contributors.xsl?rev=439391&view=auto
==============================================================================
--- ant/antlibs/common/trunk/contributors.xsl (added)
+++ ant/antlibs/common/trunk/contributors.xsl Fri Sep 1 10:31:38 2006
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output indent="no" method="text" encoding="ISO-8859-1"/>
+
+ <!-- the root node -->
+ <xsl:template match="/contributors">
+ <xsl:value-of select="introduction"/>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="name">
+ <xsl:value-of select="first"/>
+ <xsl:text> </xsl:text>
+ <xsl:if test="middle">
+ <xsl:value-of select="middle"/>
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="last"/>
+ </xsl:template>
+
+
+ <!-- dont copy the text and unmatched nodes as per default in xsl -->
+ <xsl:template match="*"/>
+
+</xsl:stylesheet>
Propchange: ant/antlibs/common/trunk/contributors.xsl
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org