bodewig 02/01/28 07:48:53
Modified: src/etc ant-update.xsl
Log:
make the stylesheet work for <ear> and <war> as well, use destfile
instead of file.
This needs to be checked by somebody who understands XSLT ;-)
Revision Changes Path
1.5 +14 -4 jakarta-ant/src/etc/ant-update.xsl
Index: ant-update.xsl
===================================================================
RCS file: /home/cvs/jakarta-ant/src/etc/ant-update.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ant-update.xsl 10 Jan 2002 10:13:11 -0000 1.4
+++ ant-update.xsl 28 Jan 2002 15:48:53 -0000 1.5
@@ -3,7 +3,7 @@
<!--
The Apache Software License, Version 1.1
- Copyright (c) 2001 The Apache Software Foundation. All rights
+ Copyright (c) 2001-2002 The Apache Software Foundation. All rights
reserved.
Redistribution and use in source and binary forms, with or without
@@ -70,16 +70,26 @@
-->
- <!-- jarfile and zipfile attributes are replaced by file in their
respective task -->
+ <!-- (zip|jar|war|ear)file attributes are replaced by destfile in their
respective task -->
<xsl:template match="zip">
- <zip file="[EMAIL PROTECTED]">
+ <zip destfile="[EMAIL PROTECTED]">
<xsl:apply-templates select="@*[not(name()='zipfile')]|node()"/>
</zip>
</xsl:template>
<xsl:template match="jar">
- <jar file="[EMAIL PROTECTED]">
+ <jar destfile="[EMAIL PROTECTED]">
<xsl:apply-templates select="@*[not(name()='jarfile')]|node()"/>
</jar>
+ </xsl:template>
+ <xsl:template match="war">
+ <war destfile="[EMAIL PROTECTED]">
+ <xsl:apply-templates select="@*[not(name()='warfile')]|node()"/>
+ </war>
+ </xsl:template>
+ <xsl:template match="ear">
+ <ear destfile="[EMAIL PROTECTED]">
+ <xsl:apply-templates select="@*[not(name()='earfile')]|node()"/>
+ </ear>
</xsl:template>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>