incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 10620 - incubator/depot/trunk/update/src/antlet/resources
Date Thu, 13 May 2004 07:45:22 GMT
Author: nickchalko
Date: Thu May 13 00:45:21 2004
New Revision: 10620

Added:
   incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl
Log:
Lower case filename.

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:45:21
2004
@@ -0,0 +1,103 @@
+<?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 mkdir"/>
+    <xsl:template match="/" xml:space="default">
+        <xsl:comment>$Id: $</xsl:comment>
+        <xsl:comment>This is a autogenerated file designed to be checked in to Source
Control</xsl:comment>
+        <project name="" default="get-all">
+            <property name="depot.home">
+                <xsl:attribute name="value">
+                    <xsl:text>${user.home}/.apache.depot</xsl:text>
+                </xsl:attribute>
+            </property>
+            <property name="repository.dir">
+                <xsl:attribute name="value">
+                    <xsl:text>${depot.home}/local-repository</xsl:text>
+                </xsl:attribute>
+            </property>
+            <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>
+                <path>
+                    <xsl:attribute name="id">
+                        <xsl:value-of select="/chachedresourceset/@id"/>
+                        <xsl:text>.fileset</xsl:text>
+                    </xsl:attribute>
+                    <fileset>
+                        <xsl:attribute name="dir">
+                            <xsl:text>${repository.dir}</xsl:text>
+                        </xsl:attribute>
+                        <xsl:for-each select="/chachedresourceset/resource">
+                            <include>
+                                <xsl:attribute name="name">
+                                    <xsl:value-of select="@name"/>
+                                    <xsl:text>/jars/</xsl:text>
+                                    <xsl:value-of select="@name"/>
+                                    <xsl:text>-</xsl:text>
+                                    <xsl:value-of select="@version"/>
+                                    <xsl:text>.jars</xsl:text>
+                                </xsl:attribute>
+                            </include>
+                        </xsl:for-each>
+                    </fileset>
+                </path>
+            </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>
+            <xsl:variable name="dest">
+                <xsl:text>${repository.dir}/</xsl:text>
+                <xsl:value-of select="@name"/>
+                <xsl:text>/jars/</xsl:text>
+            </xsl:variable>
+            <mkdir>
+                <xsl:attribute name="dir">
+                    <xsl:value-of select="$dest"/>
+                </xsl:attribute>
+            </mkdir>
+            <get usetimestamp="true" verbose="true">
+                <xsl:attribute name="dest">
+                    <xsl:value-of select="$dest"/>
+                    <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:value-of select="@href"/>
+                </xsl:attribute>
+            </get>
+        </target>
+    </xsl:template>
+</xsl:stylesheet>

Mime
View raw message