source: trunk/gsdl3/dist-resources/convert-build-xml-source.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: 2.1 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 <!-- delete the install-for-dist target-->
20 <xsl:template match="target[@name='install-for-dist']">
21 </xsl:template>
22
23 <!-- delete the unnecessary targets -->
24 <xsl:template match="target[starts-with(@name, 'prepare')]">
25 </xsl:template>
26 <xsl:template match="target[starts-with(@name, 'cvsupdate')]">
27 </xsl:template>
28 <xsl:template match="target[starts-with(@name, 'update')]">
29 </xsl:template>
30 <xsl:template match="target[starts-with(@name, 'checkout')]">
31 </xsl:template>
32
33 <!-- save the prepare-tomcat and prepare-mysql targets -->
34 <xsl:template match="target[@name='prepare-tomcat']">
35 <xsl:copy-of select="."/>
36 </xsl:template>
37 <xsl:template match="target[@name='prepare-tomcat-compat']">
38 <xsl:copy-of select="."/>
39 </xsl:template>
40 <xsl:template match="target[@name='prepare-mysql']">
41 <xsl:copy-of select="."/>
42 </xsl:template>
43 <xsl:template match="target[@name='prepare-web']">
44 <xsl:copy-of select="."/>
45 </xsl:template>
46 <!-- rename the 'prepare-for-source' target 'prepare' -->
47 <xsl:template match="target[@name='prepare-for-source']">
48 <target name="prepare">
49 <xsl:copy-of select="@depends|@description|@if|@unless|node()"/>
50 </target>
51 </xsl:template>
52
53
54 <xsl:template match="*">
55 <xsl:copy-of select="."/>
56 </xsl:template>
57
58 <xsl:template match="comment()">
59 <xsl:copy-of select="."/>
60 <xsl:text>
61</xsl:text>
62 </xsl:template>
63
64</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.