You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by ni...@apache.org on 2004/05/13 07:04:14 UTC
svn commit: rev 10618 - in incubator/depot/trunk/update/src/antlet: . resources
Author: nickchalko
Date: Thu May 13 00:04:13 2004
New Revision: 10618
Added:
incubator/depot/trunk/update/src/antlet/resources/
incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl
Removed:
incubator/depot/trunk/update/src/antlet/xbuild.xml
Log:
Progress on creating teh bootstrapable ant-get for getting needed jars.
Added: incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl Thu May 13 00:04:13 2004
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- $HeadURL: https://svn.apache.org/repos/asf/incubator/depot/trunk/Version/build_antlet.xml $ -->
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:param name="projectName"/>
+ <xsl:output indent="yes"/>
+ <xsl:strip-space elements="project target "/>
+ <xsl:template match="/">
+ <xsl:text>
+</xsl:text>
+ <xsl:comment>$Id: $</xsl:comment>
+ <xsl:text>
+</xsl:text>
+ <xsl:comment>This is a autogenerated file designed to be checked in to Source Control</xsl:comment>
+ <xsl:text>
+</xsl:text>
+ <project name="" default="get-all">
+ <target name="get-all">
+ <xsl:attribute name="depends">
+ <xsl:for-each select="/chachedresourceset/resource">
+ <xsl:text>get-</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:if test="not (position()=last())">
+ <xsl:text>,</xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:attribute>
+ </target>
+ <xsl:apply-templates/>
+ </project>
+ </xsl:template>
+ <xsl:template match="/chachedresourceset/resource">
+ <target>
+ <xsl:attribute name="name">
+ <xsl:text>get-</xsl:text>
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <get usetimestamp="true" verbose="true">
+ <xsl:attribute name="dest">
+ <xsl:text>lib/</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="@version"/>
+ <xsl:text>.jar</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="src">
+ <xsl:text>lib/</xsl:text>
+ <xsl:value-of select="@href"/>
+ </xsl:attribute>
+ </get>
+ </target>
+ </xsl:template>
+</xsl:stylesheet>