Changeset 13379 for trunk/gsdl3/dist-resources/convert-build-xml-source.xsl
- Timestamp:
- 2006-11-29T17:00:33+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/dist-resources/convert-build-xml-source.xsl
r10911 r13379 10 10 <xsl:copy> 11 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 12 <xsl:apply-templates/> 16 13 </xsl:copy> 17 14 </xsl:template> 15 16 <!-- delete the unnecessary targets --> 17 <xsl:template match="target[starts-with(@name, 'prepare')]"></xsl:template> 18 <xsl:template match="target[starts-with(@name, 'cvsupdate')]"></xsl:template> 19 <xsl:template match="target[starts-with(@name, 'update')]"></xsl:template> 20 <xsl:template match="target[starts-with(@name, 'checkout')]"></xsl:template> 21 <xsl:template match="target[starts-with(@name, 'rename-gs2build')]"></xsl:template> 22 <xsl:template match="target[@name='test']"></xsl:template> 23 <xsl:template match="target[@name='get-macos-extra']"></xsl:template> 24 <xsl:template match="target[@name='get-windows-binaries']"></xsl:template> 18 25 19 < !-- delete the install-for-dist target-->20 <xsl:template match="target[@name='install-for-dist']">26 <xsl:template match="property[@name='install-command']"> 27 <property name="install-command" value="ant [options] install"/> 21 28 </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> 29 30 <xsl:variable name="install-for-dist" select="document('dist-build.xml')/project/target[@name='install-for-source-dist']"/> 32 31 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()"/> 32 <!-- copy in our new install target --> 33 <xsl:template match="target[@name='install']"> 34 <target name="install"> 35 <xsl:copy-of select="$install-for-dist/@depends|$install-for-dist/@description|$install-for-dist/@if|$install-for-dist/@unless|$install-for-dist/node()"/> 50 36 </target> 51 37 </xsl:template> 52 53 38 54 39 <xsl:template match="*">
Note:
See TracChangeset
for help on using the changeset viewer.