source: trunk/gsdl3/dist-resources/convert-build-xml.xsl@ 10911

Last change on this file since 10911 was 10911, checked in by kjdon, 18 years ago

need to delete the checkout targets

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5 <!-- we basically want to copy everything except for a few targets that no longer apply -->
6 <xsl:output method="xml"/>
7
8 <!-- for some reason, the default copy-of doesn't copy empty attributes, so have this to get the empty arg1 in equals-->
9 <xsl:template match="project|condition|and|isset|equals|not|or">
10 <xsl:copy>
11 <xsl:copy-of select="@*"/>
12 <!--<xsl:for-each select="@*">
13 <xsl:attribute name="name()"><xsl:value-of select="."/></xsl:attribute>
14 </xsl:for-each>-->
15 <xsl:apply-templates/>
16 </xsl:copy>
17 </xsl:template>
18
19 <!-- rename the 'install-for-dist' target 'install' -->
20 <xsl:template match="target[@name='install-for-dist']">
21 <target name="install">
22 <xsl:copy-of select="@depends|@description|@if|@unless|node()"/>
23 </target>
24 </xsl:template>
25
26 <!-- delete the old install target-->
27 <xsl:template match="target[@name='install']">
28 </xsl:template>
29
30 <!-- delete the unnecessary targets -->
31 <xsl:template match="target[starts-with(@name, 'prepare')]">
32 </xsl:template>
33 <xsl:template match="target[starts-with(@name, 'cvsupdate')]">
34 </xsl:template>
35 <xsl:template match="target[starts-with(@name, 'update')]">
36 </xsl:template>
37 <xsl:template match="target[starts-with(@name, 'checkout')]">
38 </xsl:template>
39
40 <xsl:template match="property[@name='install-command']">
41 <property name="install-command" value="ant [options] install"/>
42 </xsl:template>
43
44 <xsl:template match="*">
45 <xsl:copy-of select="."/>
46 </xsl:template>
47
48 <xsl:template match="comment()">
49 <xsl:copy-of select="."/>
50 <xsl:text>
51</xsl:text>
52 </xsl:template>
53
54</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.